[systembackup] fix excludes, add exit trap
This commit is contained in:
parent
6a247d72dc
commit
7afaf894f0
@ -57,7 +57,7 @@ fi
|
|||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
trap cleanup SIGHUP SIGINT SIGTERM
|
trap cleanup SIGHUP SIGINT SIGTERM EXIT
|
||||||
|
|
||||||
if [ "y" == "$MYSQL" ]; then
|
if [ "y" == "$MYSQL" ]; then
|
||||||
create_snapshot
|
create_snapshot
|
||||||
@ -83,7 +83,7 @@ BORG_PASSPHRASE=$PASSPHRASE /usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 borg cre
|
|||||||
--exclude '/media' \
|
--exclude '/media' \
|
||||||
--exclude 'lost+found' \
|
--exclude 'lost+found' \
|
||||||
--exclude '/var/cache/apt/archives/' \
|
--exclude '/var/cache/apt/archives/' \
|
||||||
--exclude '/var/lib/lxcfs'
|
--exclude '/var/lib/lxcfs' \
|
||||||
--exclude '/var/lib/mysql'
|
--exclude '/var/lib/mysql'
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user