[systembackup] fix excludes, add exit trap

This commit is contained in:
Gero Müller 2017-04-15 13:24:03 +10:00
parent 6a247d72dc
commit 7afaf894f0

View File

@ -57,7 +57,7 @@ fi
# ----------------------------------------------------------------------------
set -e
trap cleanup SIGHUP SIGINT SIGTERM
trap cleanup SIGHUP SIGINT SIGTERM EXIT
if [ "y" == "$MYSQL" ]; then
create_snapshot
@ -83,7 +83,7 @@ BORG_PASSPHRASE=$PASSPHRASE /usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 borg cre
--exclude '/media' \
--exclude 'lost+found' \
--exclude '/var/cache/apt/archives/' \
--exclude '/var/lib/lxcfs'
--exclude '/var/lib/lxcfs' \
--exclude '/var/lib/mysql'