Add the VardKey backup definition

This commit is contained in:
ai-bot committed 2026-10-11 10:44:47 +00:00
1 parent 7402d2e97a
commit 052155eaf2
1 file changed
+9
+9
View File
@@ -0,0 +1,9 @@
import { sdk } from './sdk'
// Back up the "main" volume, which holds the SQLite database. StartOS stops the
// service for the duration of a backup (and restarts it afterwards only if it
// was running), so the database file is quiescent while it is copied and no
// separate snapshot hook is needed. See README.md — Backups and Restore.
export const { createBackup, restoreInit } = sdk.setupBackups(
async ({ effects }) => sdk.Backups.ofVolumes('main'),
)