From 827ad10d11f2b382d474524d9ad90b1eb10cc3d4 Mon Sep 17 00:00:00 2001 From: Alwin Lohrie <46248939+niwla23@users.noreply.github.com> Date: Tue, 2 Aug 2022 15:26:05 +0200 Subject: [PATCH] SQLite databases should be properly backed up as all other databases, lost data because of not doing it right multiple times --- General-(not-docker).md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/General-(not-docker).md b/General-(not-docker).md index 95cf28d..b961de0 100644 --- a/General-(not-docker).md +++ b/General-(not-docker).md @@ -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/) \ No newline at end of file +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) \ No newline at end of file