Dominevo
ReferenceHTTP API

backup

The backup router: 20 methods of the backup capability, with tier, scope, input and output.

Capability backup · scope system · mode singleton · source packages/types/src/capabilities/backup.cap.ts:327.

Every method is called at /trpc/backup.<method> — queries with GET, mutations with POST. See How to call and Authorization.

MethodKindTierToken scopeViewer
listDestinationsqueryadminadmin onlyno
triggermutationadminadmin onlyno
listRunsqueryadminadmin onlyno
cancelmutationadminadmin onlyno
listqueryadminadmin onlyno
listLocationsqueryadminadmin onlyno
getEntriesqueryadminadmin onlyno
restoremutationadminadmin onlyno
getEncryptionqueryadminadmin onlyno
setupEncryptionmutationadminadmin onlyno
disableEncryptionmutationadminadmin onlyno
checkBackupKeymutationadminadmin onlyno
deletemutationadminadmin onlyno
listArchivesqueryadminadmin onlyno
upsertDestinationPolicymutationadminadmin onlyno
previewSchedulequeryprotectedviewno
listSchedulesqueryadminadmin onlyno
listAvailableDatabasesqueryadminadmin onlyno
upsertSchedulemutationadminadmin onlyno
deleteSchedulemutationadminadmin onlyno

backup.listDestinations

  • Kind: query — GET /trpc/backup.listDestinations
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=backup.listDestinations on your hub

Input

void

Output

BackupDestinationInfoSchema[]

Shapes: BackupDestinationInfoSchema

backup.trigger

  • Kind: mutation — POST /trpc/backup.trigger
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=backup.trigger on your hub

Input

{ destinations?: string[]; locations?: string[]; label?: string; retentionCount?: number; databases?: DataStoreDatabaseSchema[] }?

Output

BackupTriggerResultSchema

Shapes: DataStoreDatabaseSchema · BackupTriggerResultSchema

backup.listRuns

  • Kind: query — GET /trpc/backup.listRuns
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=backup.listRuns on your hub

Input

void

Output

BackupRunSchema[]

Shapes: BackupRunSchema

backup.cancel

  • Kind: mutation — POST /trpc/backup.cancel
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=backup.cancel on your hub

Input

{ runId: string }

Output

{ cancelled: boolean }

backup.list

  • Kind: query — GET /trpc/backup.list
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=backup.list on your hub

Input

void

Output

BackupEntrySchema[]

Shapes: BackupEntrySchema

backup.listLocations

  • Kind: query — GET /trpc/backup.listLocations
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=backup.listLocations on your hub

Input

void

Output

LocationStatSchema[]

Shapes: LocationStatSchema

backup.getEntries

  • Kind: query — GET /trpc/backup.getEntries
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=backup.getEntries on your hub

Input

{ destinationId: string; backupId: string }

Output

ArchiveManifestSchema | null

Shapes: ArchiveManifestSchema

backup.restore

  • Kind: mutation — POST /trpc/backup.restore
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=backup.restore on your hub

Input

{ destinationId: string; backupId: string; locations?: string[]; backupSecretKey?: string }

Output

void

backup.getEncryption

  • Kind: query — GET /trpc/backup.getEncryption
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=backup.getEncryption on your hub

Input

void

Output

BackupEncryptionStatusSchema

Shapes: BackupEncryptionStatusSchema

backup.setupEncryption

  • Kind: mutation — POST /trpc/backup.setupEncryption
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=backup.setupEncryption on your hub

Input

{}

Output

{ keyId: string; secretKey: string; publicKey: string; createdAt: number; replacedKeyId: string | null }

backup.disableEncryption

  • Kind: mutation — POST /trpc/backup.disableEncryption
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=backup.disableEncryption on your hub

Input

{}

Output

{ disabledKeyId: string | null }

backup.checkBackupKey

  • Kind: mutation — POST /trpc/backup.checkBackupKey
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=backup.checkBackupKey on your hub

Input

{ backupSecretKey: string }

Output

{ valid: boolean; keyId: string | null; known: boolean; active: boolean; error?: string }

backup.delete

  • Kind: mutation — POST /trpc/backup.delete
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=backup.delete on your hub

Input

{ destinationId: string; backupId: string }

Output

void

backup.listArchives

  • Kind: query — GET /trpc/backup.listArchives
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=backup.listArchives on your hub

Input

{ destinationId: string }

Output

({ id: string; filename: string; createdAt: number; sizeBytes: number; label?: string; locations: string[]; encryption?: BackupArchiveEncryptionSchema; databases?: DataStoreDatabaseSchema[] })[]

Shapes: BackupArchiveEncryptionSchema · DataStoreDatabaseSchema

backup.upsertDestinationPolicy

  • Kind: mutation — POST /trpc/backup.upsertDestinationPolicy
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=backup.upsertDestinationPolicy on your hub

Input

{ locationId: string; enabled: boolean; retentionCount: number; label?: string }

Output

void

backup.previewSchedule

  • Kind: query — GET /trpc/backup.previewSchedule
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability backup, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=backup.previewSchedule on your hub

Input

{ cron: string; count?: number }

Output

{ ok: boolean; error?: string; nextRuns: number[] }

backup.listSchedules

  • Kind: query — GET /trpc/backup.listSchedules
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=backup.listSchedules on your hub

Input

void

Output

({ id: string; label: string; cron: string; enabled: boolean; locationIds: string[]; retentionCount: number; dataSources?: string[]; databases?: DataStoreDatabaseSchema[]; lastAttemptAt?: number; lastSuccessAt?: number; lastError?: string; nextRunAt?: number })[]

Shapes: DataStoreDatabaseSchema

backup.listAvailableDatabases

  • Kind: query — GET /trpc/backup.listAvailableDatabases
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=backup.listAvailableDatabases on your hub

Input

void

Output

{ answered: boolean; databases: DataStoreDatabaseSchema[] }

Shapes: DataStoreDatabaseSchema

backup.upsertSchedule

  • Kind: mutation — POST /trpc/backup.upsertSchedule
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=backup.upsertSchedule on your hub

Input

{ id?: string; label: string; cron: string; enabled: boolean; locationIds: string[]; retentionCount: number; dataSources?: string[]; databases?: DataStoreDatabaseSchema[] }

Output

{ id: string; label: string; cron: string; enabled: boolean; locationIds: string[]; retentionCount: number; dataSources?: string[]; databases?: DataStoreDatabaseSchema[]; lastAttemptAt?: number; lastSuccessAt?: number; lastError?: string; nextRunAt?: number }

Shapes: DataStoreDatabaseSchema

backup.deleteSchedule

  • Kind: mutation — POST /trpc/backup.deleteSchedule
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=backup.deleteSchedule on your hub

Input

{ id: string }

Output

void