Add Tandoor containers stop/start for backups
This commit is contained in:
parent
64a678b53b
commit
629cd1d2c0
1 changed files with 4 additions and 0 deletions
|
@ -45,6 +45,8 @@ sqlite3 /home/bitwarden/data/db.sqlite3 ".backup $backup_origin/temp/BitWarden_d
|
||||||
echo "Backing up Firefly db..."
|
echo "Backing up Firefly db..."
|
||||||
sqlite3 /var/www/firefly-iii/storage/database/database.sqlite ".backup $backup_origin/temp/Firefly_db.sqlite"
|
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
|
# Backup apt package list and keys
|
||||||
(
|
(
|
||||||
cd temp
|
cd temp
|
||||||
|
@ -98,4 +100,6 @@ if [ -n "$error_message" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
systemctl start tandoor
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue