mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
Can't backup database file from docker container #124
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 @ghost on GitHub (Nov 13, 2018).
Running this inside container gets me error:
@geimist commented on GitHub (Nov 13, 2018):
Mount /data/ on Host and run sqlite-Backup from there. It works fine here.
@ghost commented on GitHub (Nov 13, 2018):
It should not works like this, sqlite3 command should be running inside the container, I dont't want to mount anything on my host or instal any apps
@mprasil commented on GitHub (Nov 13, 2018):
@Haxy89 as I've suggested in #247, you should backup from another container that will have sqlite3 installed. This way you don't have to install anything on the host. Something like this image should work. You should be able to just run this to create backup:
This wasn't tested, so it's probably not exactly right, but I hope you get the idea how to proceed from here.
I understand it might complicate the setup a bit in some cases, (like yours) but I'm trying to keep the image as minimal as possible.
@ghost commented on GitHub (Nov 13, 2018):
@mprasil
I understand you are trying to keep the image as minimal as possible but I don't think adding one package (sqlite3) will increase size too much.
Despite this I will try to setting another container only for backup bitwarden database.
Thanks for bitwarden and docker image, great work.
@mprasil commented on GitHub (Nov 13, 2018):
Actually while the size is somewhat a concern, but mostly I'd like to get to a stage where we will be building "distroless" images, so there will be absolutely no packages to install.
I'm thinking that maybe we could create "fat" version of the image with cron, nginx and sqlite present that would do a lot of things for you. But I guess the first step is to agree on what should be in such image as people have quite different expectations.
@ghost commented on GitHub (Nov 13, 2018):
Create the 'fat' version is something we should consider for sure.
For me would be great to have cron, sqlite and nginx proxy for notification already configured inside
@strayer commented on GitHub (Nov 13, 2018):
To be fair, this is what many people consider as using Docker containers the wrong way. Its easy to use the bitwarden_rs image in a docker-compose (or Kubernetes) environment and adding dedicated containers with their own images for nginx and cron+sqlite and wiring them up with volumes and networks.
@ghost commented on GitHub (Nov 13, 2018):
Its not always easy to use docker-compose or Kubernetes.
For me I am limited by my docker host process - Qnap NAS