12 lines
406 B
TypeScript
12 lines
406 B
TypeScript
// Backup & restore.
|
|
//
|
|
// Everything important lives in the `main` volume (SQLite DB, which in turn
|
|
// contains the signing key). StartOS's default backup mechanism captures
|
|
// the whole volume, so we don't need custom backup logic — we just opt in.
|
|
|
|
import { sdk } from './sdk'
|
|
|
|
export const { createBackup, restoreBackup } = sdk.setupBackups(async ({ effects }) => [
|
|
sdk.Backups.volumes('main'),
|
|
])
|