mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-01 11:19:52 +03:00
Bitwarden_rs sqlite backup: error running command #414
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @luciano-fiandesio on GitHub (Sep 9, 2019).
I'm trying to follow the wiki for vault backup:
https://github.com/dani-garcia/bitwarden_rs/wiki/Backing-up-your-vault
The command:
sqlite db.sqlite3 ".backup 'backup/backup.sqlite3'"exit with an error:Unable to open database "db.sqlite3": file is encrypted or is not a databaseIs there a different way to backup the database?
@Ayitaka commented on GitHub (Sep 9, 2019):
Remove the apostrophes around
'backup/backup.sqlite3', they are not needed.Here is the script I cobbled together and run once a day via cron to backup my database and remove backups older than 30 days... adjust to your setup if you'd like. :) Hope it helps!