Restore
Restoring from a backup creates a new operation record with full audit trail. Previewing a restore is a separate non-mutating planning call.
CLI Usage
# Restore from a specific backup
daoflow backup restore --backup-run-id bkp_run_123 --yes
# Preview restore plan through the planning lane
daoflow backup restore --backup-run-id bkp_run_123 --dry-run --json
Restore Process
- Preview — use
--dry-runto fetch thebackupRestorePlanpreview without creating a restore record - Validate — verify the backup run exists, succeeded, and has an artifact path
- Queue — create a restore request record with full audit trail
- Fetch — resolve the backup artifact from the configured destination
- Execute — run the restore workflow and record status updates
- Verify — capture completion or failure in restore metadata
- Record — keep the restore request and source backup run immutable
Approval Gates
Approval requests are modeled separately from restore execution:
# Preview the restore with a read-only token
daoflow backup restore --backup-run-id bkp_run_123 --dry-run --json
# If your operating procedure requires a human gate, create a separate approval request
# through the `requestApproval` API procedure using the dry-run plan as the input template.
# Queue the restore only when you intend to execute it
daoflow backup restore --backup-run-id bkp_run_123 --yes
Required Scopes
backup:read— to preview a restore plan with--dry-runbackup:restore— to queue and execute a restoreapprovals:create— only for a separaterequestApprovalflow if your operators gate restores manually
Safety
--dry-runuses the API planning lane and does not create a restore record- Restoring creates a new operation record (never modifies existing)
- The original backup artifact is never modified
- Restore status is recorded even when application-specific rehydration still requires operator follow-through
- All restores appear in the audit trail