Add the VardKey backup definition
This commit is contained in:
1 parent
7402d2e97a
commit
052155eaf2
1 file changed
+9
@@ -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'),
|
||||
)
|
||||
Reference in new issue
Block a user