updated backup scripts

This commit is contained in:
2025-11-19 20:59:53 +01:00
parent 916faa68fd
commit a120d54b30
2 changed files with 3 additions and 3 deletions

View File

@@ -32,10 +32,10 @@ backupRootDirectory /etc/docker/daemon.json $BACKUP_DIR_ROOT/docker/
### upload backup ### ### upload backup ###
##################### #####################
if [[ "$1" == "--noupload" ]]; then if [[ $# > 0 && "$1" == "--noupload" ]]; then
exit 0; exit 0;
fi fi
sd rsync_backup -e "ssh -i /home/edi/.ssh/id_ed25519" --filter="P /home/docker" /sync/backup/ fabian@garrus:/citadel/backup/edi/ sd rsync_backup -e "ssh -i /home/edi/.ssh/id_ed25519" /sync/backup/ fabian@garrus:/citadel/backup/edi/
sd rsync_backup -e "ssh -i /home/edi/.ssh/id_ed25519" /home/edi/docker/ fabian@garrus:/citadel/backup/edi/home/docker/ sd rsync_backup -e "ssh -i /home/edi/.ssh/id_ed25519" /home/edi/docker/ fabian@garrus:/citadel/backup/edi/home/docker/
echo "Note: remember to keep /citadel in sync!" echo "Note: remember to keep /citadel in sync!"

View File

@@ -20,7 +20,7 @@ backupDirectory $HOME/.ssh/ $BACKUP_DIR_HOME/.ssh/
### upload backup ### ### upload backup ###
##################### #####################
if [[ "$1" == "--noupload" ]]; then if [[ $# > 0 && "$1" == "--noupload" ]]; then
exit 0; exit 0;
fi fi