]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Fix rsync backup failures
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 18 Nov 2022 23:52:47 +0000 (00:52 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 9 Apr 2023 15:16:30 +0000 (17:16 +0200)
flakes/rsync_backup/flake.nix

index 6d5cbef69722cf4302f1eabfaf3bed9653a63485..d81d1762318f26b579fc1a5485d6e9ff2afe7c16 100644 (file)
                   if [ "$skip" != "$DEST" ]; then
                 '';
               backup_profile_tail = name: profile: ''
-                  ssh -o UserKnownHostsFile=/dev/null -o CheckHostIP=no -i ${ssh_key} -p $PORT $DEST sh -c "date > .cache/last_backup"
+                  ssh -o UserKnownHostsFile=/dev/null -o CheckHostIP=no -i ${ssh_key} -p $PORT $DEST sh -c "date > .cache/last_backup" || true
                 fi # [ "$skip" != "$DEST" ]
                 ##### End ${name} #####
               '';