GetStartupRestore¶
GetStartupRestore
Description: Returns the restore scheduled for the next server start and the last request that the server rejected when it started.
Access Control¶
SESSION_ADMIN,SESSION_MANAGER, scopeaccess_backoffice, permissionsee_backup
Request Parameters¶
No parameters required.
Request Example¶
{
"command": "GetStartupRestore",
"extID": "1",
"data": {}
}
Response Parameters¶
| Field | Type | Description |
|---|---|---|
scheduled |
bool | Whether a restore is scheduled |
run_id |
string | Source backup run identifier; empty when nothing is scheduled |
requested_by |
string | manager:<id> or cli; empty when nothing is scheduled |
requested_at |
int | Unix timestamp of the request; 0 when nothing is scheduled |
has_failure |
bool | Whether a rejected request is stored |
last_failure |
object | The rejected request: run_id, requested_by, requested_at, reason; empty values when has_failure is false |
interrupted |
bool | Whether the last restore at server start was interrupted (crash or power loss during the store swap) |
last_interrupted |
object | The interrupted restore: restore_id, run_id, time (Unix seconds), reason; empty values when interrupted is false |
A rejected request means that the server started on the previous stores and
nothing was changed. It is cleared by the next successful restore at server
start and by a new ScheduleStartupRestore.
An interrupted restore means the server found an unfinished store swap at start,
moved the previous stores back and refused to start until the operator ran
server restore-run <run_id> or server restore-cancel; see
Restore at Server Start. The record is
cleared by the next successful restore at server start.
Response Example¶
{
"scheduled": true,
"run_id": "20260629-121045-000001",
"requested_by": "manager:7",
"requested_at": 1782728400,
"has_failure": false,
"last_failure": {
"run_id": "",
"requested_by": "",
"requested_at": 0,
"reason": ""
},
"interrupted": false,
"last_interrupted": {
"restore_id": "",
"run_id": "",
"time": 0,
"reason": ""
}
}