Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 1.43 KB

README.md

File metadata and controls

19 lines (15 loc) · 1.43 KB

Description

These are the scripts I use to set up a BookStack server on a fresh Debian 12 server.

  • bookstack-install.sh - Modified version of the official Ubuntu 24.04 script that adds a backup restore option and migrates data to a new domain if necessary. It also runs Certbot at the end if you use an HTTPS domain. It uses MariaDB instead of MySQL.

  • bookstack-backup.sh - A cronjob script to create backups that follows the official backup process. The backups can be restored using the bookstack-install.sh script on a new machine. Edit the top config lines with your details, then place the script in your root user's crontab.

  • bookstack-update.sh - An update helper script that automates the official update process. This is meant to be run manually after confirming that a new release does not require additional steps. The BookStack directory can be configured in the script if it is different from the default. Do not use this without a recent backup available!

  • bookstack-urlchange.sh - Changes your BookStack URL in both the .env file and database in case you switch IP addresses or domains. The BookStack directory can be configured in the script if it is different from the default. Do not use this without a recent backup available!