Compare commits

...

2 commits

Author SHA1 Message Date
60ed46689c fix: use unescaped %I in ntfy failure notification script
%i passes the escaped unit name which systemctl status cannot resolve,
causing "Failed to mangle name" errors.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 15:39:08 +02:00
a6736c2ac1 fix(sgx): treat rsync exit code 24 as success in backup
Files vanishing during transfer is expected for mail directories
where messages are constantly moved.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 15:39:08 +02:00
2 changed files with 5 additions and 1 deletions

View file

@ -117,7 +117,7 @@ in
${cfg.ntfy.url}/${cfg.ntfy.topic}
'';
};
scriptArgs = "%i";
scriptArgs = "%I";
};
})
]);

View file

@ -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
'';
};