From 7afaf894f0db2801876f28f8226f020d2e03d8f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gero=20M=C3=BCller?= Date: Sat, 15 Apr 2017 13:24:03 +1000 Subject: [PATCH] [systembackup] fix excludes, add exit trap --- systembackup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'