backups: add backup daemon to run every n minutes, keep x most recent backups

This commit is contained in:
Harvey Tindall
2023-12-21 13:03:16 +00:00
parent c0c91b4aad
commit 733ab37539
5 changed files with 162 additions and 1 deletions

View File

@@ -112,6 +112,9 @@ func (app *appContext) loadConfig() error {
app.MustSetValue("telegram", "show_on_reg", "true")
app.MustSetValue("backups", "every_n_minutes", "1440")
app.MustSetValue("backups", "path", filepath.Join(app.dataPath, "backups"))
app.config.Section("jellyfin").Key("version").SetValue(version)
app.config.Section("jellyfin").Key("device").SetValue("jfa-go")
app.config.Section("jellyfin").Key("device_id").SetValue(fmt.Sprintf("jfa-go-%s-%s", version, commit))