From 49fc32096aed0b94f2d3cd197f413340926e35c4 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 29 Sep 2026 14:26:34 -0700 Subject: [PATCH] Add database backups and two-digit disc numbers Disc numbers: the organizer writes two-digit disc numbers by default (Disc 01, 01-04 Title, {disc}), with an option for the plain style (Disc 2, 2-04). Migration 8 adds the per-pair setting. Backups (Settings -> Backups), similar to Sonarr: - A backup is a zip with a consistent snapshot of the database (VACUUM INTO, safe while running) and backup.json. Configurable folder, schedule (off/1/3/7/14 days) and retention for scheduled backups; manual backups are kept until deleted. List, download, delete. - Restore from a listed backup or an uploaded zip: validated first (integrity check, playlink tables, not a newer schema), staged next to the live database, then the server restarts; at startup the staged database is swapped in and the previous one kept as playlink.db.pre-restore-