kubernetes-bitwarden_rs icon indicating copy to clipboard operation
kubernetes-bitwarden_rs copied to clipboard

Backups

Open vitobotta opened this issue 5 years ago • 3 comments

Hi! I have a Docker installation of Bitwarden_rs that I want to migrate to Kubernetes. How would I go about implementing scheduled backups? I use Velero for everything, how could I integrate the two? Thanks!

vitobotta avatar Jul 03 '19 13:07 vitobotta

On the off chance that you are still looking... Here is how I implemented backups.. https://github.com/wizardlyEinstein/vault/blob/main/backup.yaml

LelandSindt avatar Oct 15 '22 20:10 LelandSindt

Thanks @LelandSindt. I looked through your backup.yaml I see that you tar the entire /data/ folder, encrypt it, and push encrypted backup to storage via a cron job but could not find how you generate that export.json from vaultwarden application.

I am interested in backing just my data that is exported via the application. Would you please advise? Thanks.

lvnilesh avatar Oct 23 '22 03:10 lvnilesh

Found a different method to use Bitwarden-cli to export the entire data

bw config server https://vault.example.com
bw login [email protected] --method 2

bw unlock

To unlock your vault, set your session key to the `BW_SESSION` environment variable. ex:

export BW_SESSION="token"
	
bw get password google.com
bw export --format json --output vaultwarden.json

Now I wonder what are the pros and cons of the two methods of backup.

lvnilesh avatar Oct 26 '22 17:10 lvnilesh