mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-22 09:49:20 -07:00
SQLite databases should be properly backed up as all other databases, lost data because of not doing it right multiple times
@@ -5,15 +5,14 @@ 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
|
||||
- Use the database backup features of MariaDB/PostgreSQL/MySQL/SQLite 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 your database from backup
|
||||
- Restore the environment file
|
||||
- Restore your `data` directory to the correct location
|
||||
|
||||
@@ -26,6 +25,7 @@ Make sure you document the procedure and locations where backups are stored!
|
||||
| Environment | `/usr/local/etc/rc.conf.d/vaultwarden` |
|
||||
| Data | `/usr/local/www/vaultwarden/data` |
|
||||
|
||||
### MariaDB / MySQL
|
||||
### Database Backups
|
||||
|
||||
See e.g. [MariaDB - Backup and Restore Overview](https://mariadb.com/kb/en/backup-and-restore-overview/)
|
||||
See e.g. [MariaDB - Backup and Restore Overview](https://mariadb.com/kb/en/backup-and-restore-overview/)
|
||||
[SQLite](https://stackoverflow.com/questions/25675314/how-to-backup-sqlite-database)
|
||||
Reference in New Issue
Block a user