Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backups #4

Open
vitobotta opened this issue Jul 3, 2019 · 3 comments
Open

Backups #4

vitobotta opened this issue Jul 3, 2019 · 3 comments

Comments

@vitobotta
Copy link

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!

@LelandSindt
Copy link

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

@lvnilesh
Copy link
Contributor

lvnilesh commented Oct 23, 2022

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants