Notes & documents · 4 steps

Test a self-hosted wiki restore before trusting backups

Use an isolated copy to check pages, attachments and configuration together.

Explore the related profiles and plans

Source-based steps · A trial for you, not our hands-on product test

Goal and scope of this exercise
The goal of your trial

What you will find out

A restore record covering content, files and the configuration needed to use them.

An editorial walkthrough, not a completed hands-on test. Use a copy or fictional data. Check the exact edition and current provider documentation.

Scope the test

Start with a disposable installation and fictional content. Include a page, image, attached file and restricted page. Write down the application version and who would perform recovery in a real incident.

Identify all the components

BookStack’s backup instructions cover database records, uploaded files and instance configuration. Treat configuration and keys as sensitive. A folder of exported pages is a different thing from a complete instance backup.

Restore into a separate environment

Follow the exact documentation for your version and deployment method, using a new destination. Never rehearse by overwriting the working service. Check that the restored system is isolated from real notifications and external actions.

Inspect what matters

Open content and attachments, inspect access restrictions and record any broken links. Record what was restored, elapsed effort and remaining gaps. A successful archive command alone is not proof that the application can be recovered.

Examples, checklist, notes and sources
Work through a concrete example

A disposable BookStack with four fictional items and a restore log

The example checks whether a database dump plus the instance files bring back pages, images, attachments and access rules in a separate installation.

Official documentation reviewed: 2026-12-02. Run the trial below yourself; this is not a completed product test report.

Choose your starting point

The test installation runs at a different address than the original.

Set APP_URL in .env to exactly the new base URL and run php artisan bookstack:update-url with the old and new address. Adjust any web server configuration that names the old URL.

BookStack stores absolute URLs, such as image paths, in the database. The update-url command does not change APP_URL itself.

You restore into a newer BookStack version than the one you backed up.

Skip php artisan migrate during the fresh install, import the database, then run php artisan migrate afterwards.

BookStack's restore steps say to skip migrate on the fresh install and to run it after the import when the version is newer.
Four fictional items, two archives and a restore log

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 [email protected] 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.

Run the trial

  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.

Check the result

  • 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 or recover when

  • 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.

Take the trial worksheet with you

Download a blank worksheet with these steps and checks. Complete it locally; your answers are not sent.

Download trial worksheet (.md) ↓

Questions you may have

Is a folder of exported pages a good enough backup?

No. BookStack's backup instructions cover a database dump plus .env, public/uploads for images, storage/uploads for attachments and the themes folder.

BookStack: backup and restore
After a restore, images still point to the old address. What now?

Run php artisan bookstack:update-url with the old and new URL after taking a database backup. The command does not change APP_URL, so update that in .env as well.

BookStack: commands
Can the restored copy send mail or webhooks?

Yes, if they are configured. Mail settings such as MAIL_DRIVER and MAIL_HOST live in .env, and webhooks are set up in the web interface under Settings - Webhooks. Check both before the copy goes live.

BookStack: email and webhooks

Limits of this guide

  • Perkufo has not restored a BookStack instance for this guide.
  • The steps follow the general BookStack instructions. Docker images and installer scripts can differ, so follow the documentation for your own deployment method.
  • A successful trial with four items says nothing about restore time for a large instance or about backups stored off site.

Sources for this practical section

  1. BookStack: backup and restore ↗ · 2026-12-02
  2. BookStack: commands ↗ · 2026-12-02
  3. BookStack: email and webhooks ↗ · 2026-12-02
Check for yourself

When is your trial useful?

0 / 3 checked

Checkmarks stay only on this page. Record your findings below to download them.

Write your own decision note

Your text stays on this page and is not included in share links. Nothing is saved or sent to Perkufo.

Sources and scope

Reviewed: 2026-10-22. Provider instructions support the described product steps. The trial and assessment questions are editorial.

BookStack: backup and restore ↗

Keep the next step small

From trial to decision

Explore software in this category →Calculate your plan costs →Google Workspace vs Microsoft 365: follow one small-team handover →Airtable vs Notion: test linked records and the exit →

Did this help you?

Your answer counts anonymously for this page. No account or written explanation needed.