diff --git a/systems/x86_64-linux/sgx/backup.nix b/systems/x86_64-linux/sgx/backup.nix index 1380e40..3338254 100644 --- a/systems/x86_64-linux/sgx/backup.nix +++ b/systems/x86_64-linux/sgx/backup.nix @@ -29,6 +29,10 @@ in ]; backupPrepareCommand = '' HOME=/root ${pkgs.rsync}/bin/rsync -e "${pkgs.openssh}/bin/ssh" --exclude-from /root/excludelist --no-specials --no-devices --numeric-ids --delete-after --partial -axz backup@mx.surfsite.org:/{etc,var,home,root} ${backup_new_path} + rc=$? + # exit code 24 = files vanished during transfer (normal for mail dirs) + if [ $rc -eq 24 ]; then exit 0; fi + exit $rc ''; };