Vaultwarden backup and restore checklist
How to restore Vaultwarden from a backup, as a printable checklist: the files you need (database, attachments, config.json, rsa_key), the safe restore order for the SQLite database, the WAL-file gotcha, and how to check it worked.
Written for Vaultwarden 1.37.5, checked against the official docs on 2026-11-11. Always restore the same version you backed up.
Open this in Lab Lifeboat Quarterly restore-drill reminder (.ics)
Lab Lifeboat fills in your own paths, hosts and backup locations, adds your other apps in restore order, and works offline. Free, no account, nothing leaves your browser. Example paths below (under /opt and /mnt) are placeholders: use yours. Print this page with your browser’s Print command.
What to back up
- The database backup: a dated db_*.sqlite3 from /vaultwarden backup (or sqlite3 .backup).
- The attachments folder (required if you use attachments). Recommended: config.json and the rsa_key* files. Optional: sends/. The icon_cache can be skipped.
- Your docker-compose.yml with the vaultwarden/server:1.37.5 image, and your DOMAIN setting.
- config.json and rsa_key* can hold secrets in plain text: keep that backup encrypted.
Restore
- Run:
cd /opt/vaultwarden docker compose stop vaultwarden - Move the current /opt/vaultwarden/vw-data folder aside (keep it until the restore works), then copy the backup files into /opt/vaultwarden/vw-data.
- Rename your database backup to db.sqlite3.
- If the backup came from /vaultwarden backup, sqlite3 .backup or VACUUM INTO, delete any existing db.sqlite3-wal before starting. A stale WAL file can corrupt the restored database.
- If you instead copied db.sqlite3 together with its matching db.sqlite3-wal while the server was idle, restore both. You never need db.sqlite3-shm.
docker compose up -d - Log in with a test client and open an item with an attachment.
Gotchas
- A stale
db.sqlite3-walnext to a restored database can corrupt it. Delete it when the backup came from/vaultwarden backup,sqlite3 .backuporVACUUM INTO. - The database alone is not everything: the attachments folder is required if you use attachments, and config.json and the rsa_key* files are recommended.
- Without the rsa_key* files the restore still works, but every user is logged out and has to log in again.
- config.json and rsa_key* can hold secrets in plain text, so keep that backup encrypted.
- Your password manager holds your other passwords. Keep the key or passphrase for this backup somewhere you can reach without the vault, such as a printed sheet.
How to test your Vaultwarden backup (restore drill)
A backup you have never restored is a guess. Run this drill on a spare machine every few months; it never touches your live server.
- Use a spare machine and the same image tag you run in production (for example
vaultwarden/server:1.37.5). - Copy the backup into a new data folder there, rename the database backup to db.sqlite3 and delete any stale db.sqlite3-wal, as in the restore steps above.
- Check the database before you start the container:
sqlite3 db.sqlite3 "PRAGMA integrity_check"should printok. - Start it bound to localhost only, for example
docker run -d --name vw-test -v /srv/vw-test:/data -p 127.0.0.1:8081:80 vaultwarden/server:1.37.5, and open http://localhost:8081 on that machine. The web vault needs a secure context, and browsers treat localhost as one, so no certificate is needed for the test. - A restored config.json overrides environment variables, so the test copy uses your real admin settings, including SMTP: it can send real emails. Keep the test short.
- Log in, check the item count, open a few entries and one attachment, and check an organization collection if you use them. A security key for two-step login is tied to your real domain and may not work on localhost, so use another two-step method or a test account.
- Stop and delete the test container and its data folder, then record the date of the test.
Check the restore worked
- If clients show "failed to fetch", check HTTPS and the DOMAIN value (see Vaultwarden errors).
- If everyone is logged out, the rsa_key* files were not restored. Users just log in again.
- Set the daily backup job up again on the new host: docker exec vaultwarden /vaultwarden backup, then copy the files offsite.
- Write down today's date as the last restore test.
Where Vaultwarden fits in a full homelab restore
Restore the hypervisor first, then the password manager (it holds the other secrets), then the reverse proxy, then the apps:
- Proxmox VE
- Vaultwarden (this page)
- Caddy
- Home Assistant
- Nextcloud AIO
- Immich
- Paperless-ngx
- Jellyfin
FAQ
How do I restore a Vaultwarden backup?
Stop the container, move the current data folder aside, copy the backup files in, rename the database backup to db.sqlite3, delete any stale db.sqlite3-wal, then start the container and log in with a test client.
What files does a Vaultwarden backup need?
The SQLite database (for example from /vaultwarden backup), the attachments folder if you use attachments, and ideally config.json and the rsa_key* files. sends/ is optional and icon_cache can be skipped.
Why is everyone logged out after restoring Vaultwarden?
The rsa_key* files were not restored, so existing sessions are no longer valid. Users just log in again; vault data is not lost.
How do I test a Vaultwarden backup safely?
Restore it on a spare machine with the same image tag, run PRAGMA integrity_check on db.sqlite3, start the container bound to 127.0.0.1 and log in at http://localhost. Browsers allow the web vault on localhost without HTTPS. Delete the test copy afterwards.
Related guides
- Vaultwarden backup and restore (full guide)
- Vaultwarden with Docker and HTTPS
- Vaultwarden errors and fixes
Sources
- Vaultwarden wiki: Backing up your vault (checked 2026-11-11)
- Vaultwarden wiki: Configuration overview (config.json overrides other settings) (checked 2026-11-11)
- Vaultwarden wiki: Enabling HTTPS (web vault needs a secure context) (checked 2026-11-11)
- MDN: Secure contexts (localhost counts as secure) (checked 2026-11-11)
- SQLite: PRAGMA integrity_check (checked 2026-11-11)
Part of Lab Lifeboat, the free offline homelab disaster recovery planner from HomelabWise. How we research

