From cd894d843c65135c2b2909b1efb8db4186d7ab23 Mon Sep 17 00:00:00 2001 From: Bernard Spil Date: Sun, 11 Jul 2021 22:36:40 +0200 Subject: [PATCH] Create backup documentation --- General-(not-docker).md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 General-(not-docker).md diff --git a/General-(not-docker).md b/General-(not-docker).md new file mode 100644 index 0000000..95cf28d --- /dev/null +++ b/General-(not-docker).md @@ -0,0 +1,31 @@ +## 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](https://mariadb.com/kb/en/backup-and-restore-overview/) \ No newline at end of file