From bfec48d1186916161ac4ec11c5503aebf3a98ffe Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 1 Nov 2017 11:05:55 -0400 Subject: [PATCH] on prem backup article --- _articles/hosting/backup-on-premise.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 _articles/hosting/backup-on-premise.md diff --git a/_articles/hosting/backup-on-premise.md b/_articles/hosting/backup-on-premise.md new file mode 100644 index 00000000..295f975c --- /dev/null +++ b/_articles/hosting/backup-on-premise.md @@ -0,0 +1,24 @@ +--- +layout: article +title: Backing up your on-premise hosted data +categories: [hosting] +featured: false +popular: false +tags: [hosting, docker, backup] +--- + +With the public cloud version of bitwarden, we automatically handle backing up your data for you. However, when self-hosting bitwarden you must implement your own backup procedures in order to keep your data safe. + +Bitwarden's Docker containers use volume mapping to keep all important data persisted on the host machine. You can find this data in the `./bwdata` directory relative to your bitwarden installation. The Docker containers themselves are to be considered ephemeral and do not persist data or state. + +You should back up and keep the entire `./bwdata` directory safe. In the event of data loss you will need all or parts of data contained in this directory to restore your installation. + +Some particularly important parts of the `./bwdata` directory are: + +- `./bwdata/mssql/data` - database data +- `./bwdata/core/attachments` - vault item attachments +- `./bwdata/env` - environment variables, including database and certificate passwords + +## Nightly database backups + +Bitwarden will automatically take nightly backups of the `mssql` container database. These database backups are kept in the `./bwdata/mssql/backups` directory. Nightly database backups are kept in this directory for 30 days. In the event of data loss, you can restore one of these daily backups. You can read more about SQL Server backup restoration at .