diff --git a/.metadata b/.metadata index 5ebd60e..25b1fd1 100644 Binary files a/.metadata and b/.metadata differ diff --git a/tools/backup.d/configs_backup.sh b/tools/backup.d/configs_backup.sh index fa19fda..7f2ca8c 100755 --- a/tools/backup.d/configs_backup.sh +++ b/tools/backup.d/configs_backup.sh @@ -5,6 +5,8 @@ # # Author: Kovács Zoltán # License: GNU/GPL v3+ (https://www.gnu.org/licenses/gpl-3.0.en.html) +# 2026-04-28 v0.3 +# mod: now includes all files (not only YMLFILE) in the base folder. # 2024-03-07 v0.2 # fix: tar now dereferences the symlinks (if any). # 2021-09-03 v0.1 Initial release @@ -26,7 +28,7 @@ MSG_NONWRITE="The target directory isn't writable" # Checks the dependencies. TR=$(which tr 2>/dev/null) if [ -z "$TR" ]; then echo "$MSG_MISSINGDEP tr."; exit 1 ; fi -for item in date dirname hostname readlink tar +for item in date dirname find hostname readlink tar do if [ -n "$(which $item)" ] then export $(echo $item | "$TR" '[:lower:]' '[:upper:]' | "$TR" '-' '_')=$(which $item) @@ -72,8 +74,8 @@ if [ -w "$BACKUPDIR" ]; then BACKUP_NAME="configs.$("$DATE" '+%Y%m%d_%H%M%S').$("$HOSTNAME")" ( cd "$BASE_DIR" "$TAR" czhf "$BACKUPDIR/$BACKUP_NAME.tgz" \ - "$YMLFILE" configs docker \ - 2>>"$BACKUPDIR/$BACKUP_NAME.log" + $("$FIND" -maxdepth 1 -type f) configs docker \ + 2>>"$BACKUPDIR/$BACKUP_NAME.log" ) fi