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

Restore

  1. Run:
    cd /opt/vaultwarden
    docker compose stop vaultwarden
  2. 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.
  3. Rename your database backup to db.sqlite3.
  4. 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.
  5. 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
  6. Log in with a test client and open an item with an attachment.

Gotchas

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.

  1. Use a spare machine and the same image tag you run in production (for example vaultwarden/server:1.37.5).
  2. 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.
  3. Check the database before you start the container: sqlite3 db.sqlite3 "PRAGMA integrity_check" should print ok.
  4. 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.
  5. 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.
  6. 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.
  7. Stop and delete the test container and its data folder, then record the date of the test.

Check the restore worked

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:

  1. Proxmox VE
  2. Vaultwarden (this page)
  3. Caddy
  4. Home Assistant
  5. Nextcloud AIO
  6. Immich
  7. Paperless-ngx
  8. 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

Sources

Part of Lab Lifeboat, the free offline homelab disaster recovery planner from HomelabWise. How we research