bundles/backup-client: add backup-pre-hooks (fixes #24)
This commit is contained in:
parent
a8690b13b8
commit
0d1e987a6f
3 changed files with 41 additions and 21 deletions
|
@ -9,6 +9,14 @@ then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
run-parts --exit-on-error -- /etc/backup-pre-hooks.d
|
||||
exitcode=$?
|
||||
if [[ $exitcode != 0]]
|
||||
then
|
||||
echo "hook $exitcode" > "$statusfile"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
rsync_errors=""
|
||||
% for path in sorted(paths):
|
||||
rsync -zaAP --numeric-ids --delete --relative \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue