Skip to content

ScheduleStartupRestore

ScheduleStartupRestore

Description: Schedules a restore of every store of a full backup run at the next server start. Nothing is restored by the command itself: the server replaces the store files when it starts, before any module is loaded. See Restore at server start.

Access Control

SESSION_ADMIN, SESSION_MANAGER, scope access_backoffice, permission run_backup

Request Parameters

Field Type Required Description
run_id string Yes Source backup run identifier
force bool No Bypass the maintenance/update mode guard; default is false

Request Example

{
  "command": "ScheduleStartupRestore",
  "extID": "1",
  "data": {
    "run_id": "20260629-121045-000001",
    "force": false
  }
}

Response Parameters

Field Type Description
scheduled bool Always true on success
run_id string Source backup run identifier
requested_by string Who scheduled the restore, manager:<id>
requested_at int Unix timestamp of the request
restart_required bool Always true: the restore runs only when the server starts

Response Example

{
  "scheduled": true,
  "run_id": "20260629-121045-000001",
  "requested_by": "manager:7",
  "requested_at": 1782728400,
  "restart_required": true
}

Rules

  • The server must be in maintenance/update mode (liveupdate_mode != 0), or force: true must be passed.
  • The run must be a full run with status completed (or partial for older runs), published under backups/completed, and its artifacts must pass validation (size, SHA-256, storage integrity).
  • A new request replaces the previous one. The request is stored on disk and survives a restart.
  • While the request exists, its run cannot be deleted by retention, DeleteBackupRun or an ImportRemoteBackupRun overwrite.
  • To apply the request, restart the server with RestartServer or the service manager.

Errors

Error HTTP Code Description
INVALID_DATA 400 run_id is missing or force is not a bool
BACKUP_RUN_NOT_FOUND 404 Run was not found
STARTUP_RESTORE_REJECTED 409 The run cannot be restored at server start; message holds the reason