Include sqlite3 binaries in Docker images #998

Closed
opened 2026-04-06 01:32:50 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @capi on 8/12/2024

I understand that the runtime docker images are trimmed down for size. Regardless, I think that it makes sense to have the sqlite3 binaries as part of the images because it makes backups way easier without having to resort to other images/containers or having sqlite installed on the docker host.

A cron-driven backup on the Docker host would then just be similar to the following cronjob (assuming a running container named vaultwarden)

0 0 * * * root /usr/bin/docker exec vaultwarden sqlite3 /data/db.sqlite3 "VACUUM INTO '/backup/db-$(date '+%Y%m%d-%H%M').sqlite3'"

If size of the images is more important, I understand, please decline the PR.

*Originally created by @capi on 8/12/2024* I understand that the runtime docker images are trimmed down for size. Regardless, I think that it makes sense to have the sqlite3 binaries as part of the images because it makes backups way easier without having to resort to other images/containers or having sqlite installed on the docker host. A cron-driven backup on the Docker host would then just be similar to the following cronjob (assuming a running container named `vaultwarden`) ``` 0 0 * * * root /usr/bin/docker exec vaultwarden sqlite3 /data/db.sqlite3 "VACUUM INTO '/backup/db-$(date '+%Y%m%d-%H%M').sqlite3'" ``` If size of the images is more important, I understand, please decline the PR.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#998