feat(backup): manual-snapshot CLI + host-side backup.sh and restore.sh (safe restore)

This commit is contained in:
Jannis Braun
2026-06-20 02:34:30 +02:00
parent 9407e48293
commit 70da1ede64
3 changed files with 77 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
import { getRawDb } from '../db/index.js';
import { createSnapshot, pruneSnapshots } from '../utils/backup.js';
const p = createSnapshot(getRawDb(), 'manual');
pruneSnapshots();
console.log('Manual snapshot written: ' + p);