This guide puts a HAIMDALL installation back to the state of a backup: after a failed server, a bad upgrade, or to prove your backups work on a test server. It uses the two backups described in Backups: the database dump and the data volume archive, taken at the same time.
To move a help site from the editor's System › Backups download into a new installation instead, see Restoring a System › Backups download at the end.
Warning
Restoring replaces everything in the installation you restore into: every article, account, setting and uploaded file made since the backup is lost. If you're restoring into a live installation, take a fresh backup of it first, in case you need to go back.
Before you start
A server with HAIMDALL installed and running, using the same
docker-compose.ymland.envas before (see Installing HAIMDALL). For a disaster recovery, install on the new server first.The same HAIMDALL version the backup came from, or a newer one. A newer version updates the restored database when it starts; an older version can't read a newer database.
The two backup files copied onto the server, in the folder with
docker-compose.yml. Below they're calledhaimdall-2026-11-21.dumpandhaimdall-data-2026-11-21.tar.gz: use your own file names.The data volume's name, from
docker volume ls(for examplehaimdall_app-data).
Step 1: Stop HAIMDALL
Stop the application, but leave the database running:
docker compose stop appReaders and editors can't reach HAIMDALL until step 4.
Step 2: Restore the database
Replace the database with the one in the dump:
docker compose exec -T postgres dropdb -U postgres help_file_site
docker compose exec -T postgres createdb -U postgres help_file_site
docker compose exec -T postgres pg_restore -U postgres -d help_file_site --no-owner < haimdall-2026-11-21.dumppg_restore lists any problems it meets. Messages about objects that already exist are harmless; anything else, stop and check before going on.
If you use your own PostgreSQL server instead of the Compose database, restore the dump into it with your usual tools, into the database named in DATABASE_URL.
Step 3: Restore the data volume
Empty the volume, then unpack the archive into it:
docker run --rm -v haimdall_app-data:/data -v "$PWD":/backup alpine sh -c "find /data -mindepth 1 -delete && tar -xzf /backup/haimdall-data-2026-11-21.tar.gz -C /data"Use your data volume's name in place of haimdall_app-data.
Step 4: Start HAIMDALL
Start the application in a new container, so it rebuilds its pre-built article pages from the restored content:
docker compose up -d --force-recreate appWhen it starts, HAIMDALL brings the database up to date with its version, then rebuilds the pages and checks the search index in the background. That takes a few minutes on a large help site; the help site works meanwhile.
Step 5: Check it worked
Sign in. Accounts and passwords are as they were when the backup was taken.
Open System › Health. Every section should say Healthy; Background jobs & search may show work in progress for a few minutes.
Open a few articles in the editor, and the same articles on the help site, including one with images or file downloads.
If the restored installation is on a new server, check the address settings on Customer site › Domain and point your DNS at the new server.
Restoring a System › Backups download
The zip an admin downloads from System › Backups restores into a new, empty installation only: a new server, or a copy to try things on. It never replaces or merges into a help site that has content, so it isn't the way back from a bad upgrade (use the steps above for that).
Install HAIMDALL (see Installing HAIMDALL): the same version the backup came from, or a newer one. Create the first admin as usual, but don't add any content.
Copy the backup into the application container:
docker compose cp haimdall-backup-2026-11-21-10-00-00.zip app:/tmp/backup.zipCheck it without changing anything:
docker compose exec app node tools/restore-backup.cjs /tmp/backup.zip --dry-runRestore it:
docker compose exec app node tools/restore-backup.cjs /tmp/backup.zipIt lists what it restored, the people who need a new password, and anything you must enter again. If anything goes wrong, nothing is changed.
Restart the application. It rebuilds the article pages and the search index in the background, which takes a few seconds for a typical help centre:
docker compose restart appCheck it worked, as in Step 5: Check it worked above. Then finish off:
Passwords: a backup never holds them. The admin who set up the new installation keeps theirs; give everyone else a new one with Access › People › Reset password. People who sign in with single sign-on sign in as before.
The tool refuses a backup into an installation that already has articles or folders, and a backup made by a newer version of HAIMDALL than the one installed (upgrade first).