[GH-ISSUE #596] Backup option in the admin panel not available in Docker #396

Closed
opened 2026-03-03 01:28:42 +03:00 by kerem · 4 comments
Owner

Originally created by @Skaronator on GitHub (Aug 31, 2019).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/596

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.

image

Looks like this check results in a false:
github.com/dani-garcia/bitwarden_rs@026f9da035/src/api/admin.rs (L39-L41)

since sqlite isn't available in the container:
github.com/dani-garcia/bitwarden_rs@469318bcbd/docker/amd64/sqlite/Dockerfile (L32-L35)

I tried the following docker images:

  • bitwardenrs/server:alpine
  • bitwardenrs/server:latest

Currently running version 1.10.0-469318bc

Originally created by @Skaronator on GitHub (Aug 31, 2019). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/596 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. ![image](https://user-images.githubusercontent.com/2886913/64064124-428a4380-cbfe-11e9-85b6-4cbaad9384af.png) Looks like this check results in a `false`: https://github.com/dani-garcia/bitwarden_rs/blob/026f9da035dcbf5ff12387600162841f94b47154/src/api/admin.rs#L39-L41 since sqlite isn't available in the container: https://github.com/dani-garcia/bitwarden_rs/blob/469318bcbdca68ca58735f7cc58dd1e943e4da1e/docker/amd64/sqlite/Dockerfile#L32-L35 I tried the following docker images: - bitwardenrs/server:alpine - bitwardenrs/server:latest Currently running version 1.10.0-469318bc
kerem closed this issue 2026-03-03 01:28:43 +03:00
Author
Owner

@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.27 becomes 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)

<!-- gh-comment-id:527831213 --> @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.27` becomes 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)
Author
Owner

@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 INTO support)
After that is out, we have to wait for Diesel to support it as libsqlite-sys 0.17 has a few breaking changes.

<!-- gh-comment-id:536491833 --> @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 INTO` support) After that is out, we have to wait for Diesel to support it as libsqlite-sys 0.17 has a few breaking changes.
Author
Owner

@mprasil commented on GitHub (Sep 30, 2019):

I've created PR #638 to use the binary in the meantime.

<!-- gh-comment-id:536550513 --> @mprasil commented on GitHub (Sep 30, 2019): I've created PR #638 to use the binary in the meantime.
Author
Owner

@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.

<!-- gh-comment-id:537385997 --> @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#396
No description provided.