# A disposable BookStack with four fictional items and a restore log

Editorial trial protocol. Not a completed test report. Use fictional data.

## Prepare
- A shelf 'Trial shelf' with a book 'Project Lantern handbook' and a page that contains an image you made yourself.
- A page with an attached file sample.txt containing the sentence 'Attachment restore test'.
- A page that only the role 'Demo testers' can see, and a user Demo Tester with demo@example.invalid in that role.
- A restore log with the BookStack version, deployment method, start time and the name of who would restore in a real incident.

## Steps
1. Back up the trial database with mysqldump and archive .env, public/uploads, storage/uploads and themes, for example with tar. Store both away from the server.
2. Install a fresh BookStack on a separate host or container, but skip the php artisan migrate step. With Docker, restore the database before you start the BookStack container.
3. Import the SQL file with mysql, extract the file archive into the BookStack folder and reset the folder permissions so the web server can write where it needs to.
4. Merge the .env files and keep the APP_KEY from the original. Before you open the site, check the MAIL settings in .env and plan to review Settings - Webhooks.
5. Open the restored site, disable or redirect any webhooks that point to real endpoints, and set APP_URL and run update-url if the address changed.
6. Log in as Demo Tester and as an admin, inspect all four items and write the results and the time spent in the restore log.

## Checks
- The page image displays and its address points to the test installation, not the old host.
- sample.txt downloads and contains the expected sentence.
- The restricted page is visible to Demo Tester but not to a user outside the role.
- Login still works for an account with multi-factor authentication, which shows that APP_KEY was kept.
- The restore log names every gap, such as missing themes or a search that needs rebuilding.

## Stop rules
- Never rehearse by importing into the working database. Stop if the import target is not the new, separate installation.
- Stop and fix .env if APP_KEY differs from the original. BookStack warns that changing it can break features such as multi-factor authentication.
- Do not leave the restored copy running with mail settings or webhooks that can reach real people or services.

## Your observations

### Version and deployment
BookStack version, Docker or manual install, and host.

…

### Backup components
Database dump and which folders and files were archived.

…

### Isolation measures
Mail settings, webhooks and address of the test copy.

…

### Items restored
Page, image, attachment and restricted page, each with result.

…

### Commands run after restore
For example migrate, update-url or a search rebuild.

…

### Effort and gaps
Time spent, who did it and what is still missing.

…

## Sources
- BookStack: backup and restore: https://www.bookstackapp.com/docs/admin/backup-restore/ (2026-12-02)
- BookStack: commands: https://www.bookstackapp.com/docs/admin/commands/ (2026-12-02)
- BookStack: email and webhooks: https://www.bookstackapp.com/docs/admin/email-webhooks/ (2026-12-02)
