From 629cd1d2c0f76b2a269fede8e6925adc858dc8f1 Mon Sep 17 00:00:00 2001 From: Teo-CD Date: Sun, 8 May 2022 20:17:17 +0100 Subject: [PATCH] Add Tandoor containers stop/start for backups --- VPS/restic-backup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/VPS/restic-backup.sh b/VPS/restic-backup.sh index b92cbe2..adc31ad 100755 --- a/VPS/restic-backup.sh +++ b/VPS/restic-backup.sh @@ -45,6 +45,8 @@ sqlite3 /home/bitwarden/data/db.sqlite3 ".backup $backup_origin/temp/BitWarden_d echo "Backing up Firefly db..." sqlite3 /var/www/firefly-iii/storage/database/database.sqlite ".backup $backup_origin/temp/Firefly_db.sqlite" +systemctl stop tandoor + # Backup apt package list and keys ( cd temp @@ -98,4 +100,6 @@ if [ -n "$error_message" ]; then exit 1 fi +systemctl start tandoor + exit 0