Greetings,
I have been searching in this forum and a bit around duckduckgo-ing… could not exactely find what I need.
I hope I have some help here.
I would like to automate the Export vault on a daily basis.
I cant find the way to do that. INFO:
I self host vaultwarden in a docker in an Ubuntu server. I created a stack in Portainer.
I do use a password and TOTP to access my vault.
I need to backup the vault for me and my family (4 users total)
QUESTIONS:
Is it possible to backup the vault?
If yes: is it possible in .json or best in one of the other formats? (for future restore in case of catastrophic event)
How can I do that? (CLI, already existing tools -mind I am in a docker).
And if possible to export it to (example) nextcloud? (I assume is possible to choose an encrypted or not export).
Then, also daily, the replica server (at home) stops the container, fetches the sqlite3 file, overwriting the local one, and restarts the vaultwarden container.
This way there’s always a local copy (and I can log in there even if the “master” server is down for any reason).
AFAIK the sqlite3 database has everything you need in terms of backup.
Thank you.
I will look into this technique. Basically you clone the cloud version of (docker) vaultwarden from the cloud to local (I also have mine in a cloud).
If I understand right, you dont directly backup your vault (or export it) but you do backup the DB that in turn has what you need.
Your ‘disaster’ strategy would then be that if the cloud server is compromised/broken/unreachable, you connect locally t o your local clone and you can still use it, correct?
It is something I will explore. good idea.
It is certainly more elaborated and complex than automate a vault export. I am no expert and the above technique will take quite sometimes to be implemented (eventually it will).
It is most important to keep a backup when you run your own server/services. If a machine dies and One rely on it… it becomes a real catastrophic event. (specially about passwords).
now, with the new passkey system, probably more than ever.
thank you for your help