mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-10 01:10:09 +03:00
Configuring SQLite3 backup #2310
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 @jaapvdv on GitHub.
(using mprasil/bitwarden:latest)
I am trying to setup a cronjob to automate a daily backup of the bitwarden-rs data-folder. For that purpose I have added two volumes to the docker run command:
-v /mnt/data/:/data/
-v /mnt/backup/:/backup/
Both are visible when executing the shell inside the container.
When I try to test the backup command:
sqlite3 /$DATA_FOLDER/db.sqlite3 ".backup '/backup/backup.sq3'"
I get the error:
bash: sqlite3: command not found
How can I backup my database if (apparently) sqlite3 is not installed/available in the container?
BTW: I also tried crontab -e :
bash: crontab: command not found
@jaapvdv commented on GitHub:
Will do. Thanks.
@shauder commented on GitHub:
Are you running the command from inside the container or your host system?
The error message you show says that it cannot find the sqlite3 binary. Make sure you have sqlite3 installed.
@jaapvdv commented on GitHub:
Yes, I am trying to run it from inside the container. Should I run it on the Docker host?
@fbartels commented on GitHub:
Yes, you can safely run it from outside the container.