Selfhosted Vaultwarden NON-DOCKER Backup? reddit / selfhosted ---------------------------------------------------------------------- LinuxIsFree · 2023-09-30 15:57 I'd like to back up my vaultwarden passwords every night to two machines (one on-site, one offsite) using syncthing. I do not run in docker, so I cant just save the entire instance. I run through Yunohost. Which files/folders should I be backing up? Just the /home/yunohost.app/vaultwarden folder, or also data in /var/www? ---------------------------------------------------------------------- thekrautboy · 2023-09-30 16:01 Simply run a backup of the sqlite database, the file is probably called `db.sqlite3` and if you want to do it the proper way, one example: `sqlite3 db.sqlite3 ".timeout 1000" ".backup db.sqlite3.backup" Then store the `db.sqlite3.backup` wherever you want. ---------------------------------------------------------------------- LinuxIsFree · 2023-09-30 21:23 That's great! How would I recover that if I had a fresh isntall down the road or something? ---------------------------------------------------------------------- thekrautboy · 2023-09-30 21:30 I would simply install Vaultwarden fresh and start it once, then shut it down, replace the db file and start it again? ---------------------------------------------------------------------- LinuxIsFree · 2023-09-30 21:39 Okay great! I didnt know if it needed any other certs ---------------------------------------------------------------------- thekrautboy · 2023-09-30 21:57 Any other certs? Why dont you simply ask https://github.com/dani- garcia/vaultwarden/discussions i would bet the answers are already there. ---------------------------------------------------------------------- LinuxIsFree · 2023-10-01 00:10 Because I didnt know they had a discussion, that's great, I'll check it out there. ---------------------------------------------------------------------- Zedris · 2023-10-01 10:10 So question for this. The command bellow do you type it irectly in the ssh of say your nas or the cli of the docker image in say potainer? I had an issue with my vaultwarden database which is in docker how to make a backup. ---------------------------------------------------------------------- thekrautboy · 2023-10-01 13:35 https://www.reddit.com/r/selfhosted/search?q=backup+vaultwarden&restri ct_sr=on&include_over_18=on&sort=relevance&t=all ---------------------------------------------------------------------- asdf12311 · 2023-10-03 04:36 [https://github.com/dani-garcia/vaultwarden/wiki/Backing-up-your- vault](https://github.com/dani-garcia/vaultwarden/wiki/Backing-up- your-vault) ​ Their wiki goes over backups, which folders to backup and how to restore a backup.