Restore SwOS Backup
restore_swos_backupRestore a SwOS backup file to a switch, replacing its configuration and rebooting it. Saves the current backup first and supports dry-run checks before applying.
Instructions
Restore a backup.swb file from the server's SwOS folder onto the switch, as the web UI's Restore Backup does. The switch replaces its whole configuration and reboots, so it is unreachable for a while, and its address may change to the one in the backup. By default the current configuration is saved first. dryRun defaults to true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Backup file in the server's SwOS folder (from save_swos_backup). | |
| force | No | Restore a backup that came from another switch or model, or whose origin cannot be told (no sidecar from save_swos_backup and not named by it). | |
| dryRun | No | Check the file and the switch without restoring. | |
| routerId | No | Router ID; omit to use the default router. | |
| saveCurrentFirst | No | Save the switch's current backup before restoring, so the restore can be undone. | |
| confirmationToken | No | Token from a prior APPROVAL_REQUIRED response. Re-submit the identical call with this token to confirm the destructive action. |