Bookstack Backup
Example shell script to backup Bookstack content:
# must be run as root
cd /var/www/bookstack
mysqldump -u root bookstack > bookstack-$(date +"%Y-%m-%d").sql
git add -A && git commit -m "backup" && git push
Assumes:
- The MariaDB (or MySQL) database is named "bookstack"
/var/www/bookstack
is the bookstack root directory- The bookstack root directory has been initialized as a
git
repository - A
git
remote
has been set
No Comments