From 5b0b5ae2d35303647d1aaa2d96001a93c3613b64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20Zolt=C3=A1n?= Date: Sat, 2 May 2026 23:12:36 +0200 Subject: [PATCH] configs_backup.sh now saves all root files (not only the docker-compose.yml). --- .metadata | Bin 22712 -> 22712 bytes tools/backup.d/configs_backup.sh | 8 +++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.metadata b/.metadata index 5ebd60eeef2322cae3f62a329e2f3006b578503e..25b1fd180789716d5228b27192715a54269c1d8a 100644 GIT binary patch delta 79 zcmdn7k#WaH#tq9jcrFTl&13)q=H(lhCT}#e+WdxtMTUnx;~QA?;;{!(oByc9>hNem bMWU7d3r;@BB04#NQD}0!1pnsQfwJrXa)KK6 delta 79 zcmdn7k#WaH#tq9jc(w|B&13+AB%igqlQ)`KZGOYSBEz!b>dVy0jA0^^9eCI_^Qn64 i@Vsp?$pERdo3TN0@ # 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