From 4c53d102b4504535aaad3ac645baae1b675b6231 Mon Sep 17 00:00:00 2001 From: "A. Karl Kornel" Date: Thu, 30 Nov 2023 17:48:28 -0800 Subject: [PATCH] Have the backup script back things up! Specifically, the following are backed up: * The App key * The two SQL dumps * Everything in `keys` and `letsencrypt` * Everything in `www/files`, `www/images`, `www/themes`, and `www/uploads`. --- root/etc/periodic/15min/backup.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/root/etc/periodic/15min/backup.sh b/root/etc/periodic/15min/backup.sh index 9073d59..61fe57f 100755 --- a/root/etc/periodic/15min/backup.sh +++ b/root/etc/periodic/15min/backup.sh @@ -25,3 +25,9 @@ mysqldump --host=${MYSQL_HOST} --password=$(cat $DB_PASS_FILE) --databases mysql mysqldump --host=${MYSQL_HOST} --password=$(cat $DB_PASS_FILE) --databases ${DB_DATABASE} > /bookstack/backups/bookstack.sql # PART 2: Run a Restic backup of the Bookstack directory +restic backup \ + /bookstack/BOOKSTACK_APP_KEY.txt \ + /bookstack/backups/mysql.sql /bookstack/backups/bookstack.sql \ + /bookstack/keys/ /bookstack/letsencrypt/ \ + /bookstack/www/files /bookstack/www/images /bookstack/www/themes \ + /bookstack/www/uploads