mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-01 11:19:52 +03:00
Backup option in the admin panel not available in Docker #394
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 @Skaronator on GitHub (Aug 31, 2019).
Hi!
Just saw in the changelog that you can now backup the SQLite Database in the admin web interface but saidly it looks like that option isn't available for me.
Looks like this check results in a
false:026f9da035/src/api/admin.rs (L39-L41)since sqlite isn't available in the container:
469318bcbd/docker/amd64/sqlite/Dockerfile (L32-L35)I tried the following docker images:
Currently running version 1.10.0-469318bc
@mprasil commented on GitHub (Sep 4, 2019):
Those lines you linked are for the build container, the final image never had sqlite bundled in. The PR #475 was merged with the understanding that there will be better option than running external command once the sqlite
3.27becomes more common.So right now, you can build your own version of the image with sqlite bundled in. Or we can discuss bundling in another binary or we can see if newer sqlite library and built-in backup functionality would be an option now. (the latest would be the ideal solution IMO)
@TheMardy commented on GitHub (Sep 30, 2019):
@mprasil
I'm afraid we will have to wait for a few more months for the ideal solution.
We will need a libsqlite-sys 0.17 crate (that version uses SQLite 3.27 for
VACUUM INTOsupport)After that is out, we have to wait for Diesel to support it as libsqlite-sys 0.17 has a few breaking changes.
@mprasil commented on GitHub (Sep 30, 2019):
I've created PR #638 to use the binary in the meantime.
@mprasil commented on GitHub (Oct 2, 2019):
The latest images should have sqlite bundled in and the backup option should be present in the admin interface. I'm going to resolve this.