Skip to content

Commit

Permalink
Have the backup script back things up!
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
akkornel committed Dec 1, 2023
1 parent a5f83f6 commit 4c53d10
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions root/etc/periodic/15min/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4c53d10

Please sign in to comment.