mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[GH-ISSUE #205] Configuring SQLite3 backup #103
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#103
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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 (Oct 1, 2018).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/205
(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
@shauder commented on GitHub (Oct 1, 2018):
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 (Oct 1, 2018):
Yes, I am trying to run it from inside the container. Should I run it on the Docker host?
@fbartels commented on GitHub (Oct 1, 2018):
Yes, you can safely run it from outside the container.
@jaapvdv commented on GitHub (Oct 1, 2018):
Will do. Thanks.