diff --git a/systembackup b/systembackup index 6c75403..2197dfa 100755 --- a/systembackup +++ b/systembackup @@ -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'