Compare commits
2 commits
9e212934dd
...
60ed46689c
| Author | SHA1 | Date | |
|---|---|---|---|
| 60ed46689c | |||
| a6736c2ac1 |
2 changed files with 5 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ in
|
|||
${cfg.ntfy.url}/${cfg.ntfy.topic}
|
||||
'';
|
||||
};
|
||||
scriptArgs = "%i";
|
||||
scriptArgs = "%I";
|
||||
};
|
||||
})
|
||||
]);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue