import { sdk } from './sdk'

/**
 * Back up the entire `main` volume. StartOS handles snapshotting everything
 * under /data (app.db, sidecar WAL/SHM files, future additions), matching
 * the 0.3.5 backup semantics.
 */
export const { createBackup, restoreInit } = sdk.setupBackups(
  async () => sdk.Backups.ofVolumes('main'),
)
