Replies: 1 comment 2 replies
-
Not sure if this is a good thing, in terms of security. And I'm not 100% sure this is really needed based on Navidrome's use of SQLite3. I've successfully backed up my DB by simply zipping all Just to give you a proof that this is indeed secure, until version 0.48.0 Navidrome didn't close the DB when stopped, basically shutting down the SQLite3 engine without merging the DB and WAL files. And I never received any corrupted data report because of this. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As in title. It would be extremely useful to add an endpoint (such as
/admin/backup
) that returns a snapshot-in-time dump of the database. This would enable consistent backups without having to shutdown/restart Navidrome, e.g. I could hit the endpoint in a daily cron job.SQLite has the Backup API. A GET to the endpoint could simply return a binary blob.
Everything under
/admin
would obviously require the user to be an admin.I just took a crack at this, however I'm not familiar with beego, and I'm not entirely sure how (and even if) it can use SQLite's backup API.
(Alternatively, if Navidrome supported Postgres this would be moot, as I could do it as part of my existing database backup ;))
Beta Was this translation helpful? Give feedback.
All reactions