mirror of
https://github.com/J3vb/OwnCord.git
synced 2026-09-03 03:50:00 +03:00
The restore handler was overwriting the live SQLite database while the old *sql.DB handle remained open. Now: broadcasts server_restart to clients, checkpoints WAL, closes the DB connection, then copies the backup file over the closed database. Server must restart after restore.