Skip to content

General (not docker)

Bernard Spil edited this page Jul 11, 2021 · 2 revisions

Backup

Things to include in your backup:

  • The environment file used when starting Vaultwarden
  • The data directory
  • The Vaultwarden database
    • SQLite database is stored in the data directory by default
    • Use the database backup features of MariaDB/PostgreSQL/MySQL to create a backup

Make sure you document the procedure and locations where backups are stored!

Restore

  • Install Vaultwarden
  • (Not for SQLite) Restore your database from backup
  • Restore the environment file
  • Restore your data directory to the correct location

Platform specific

FreeBSD port

Item Location
Environment /usr/local/etc/rc.conf.d/vaultwarden
Data /usr/local/www/vaultwarden/data

MariaDB / MySQL

See e.g. MariaDB - Backup and Restore Overview

Clone this wiki locally