Export Config
export_configExport a MikroTik RouterOS configuration as a RouterOS script, returning it inline or saving it as an .rsc file on the router; use compact mode for non-default values.
Instructions
Export the router configuration as a RouterOS script. When no file is specified, returns the script text inline. When a file is specified, saves it as .rsc on the router's filesystem. Supports compact mode to show only non-default values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Save the export to a file on the router (without extension); omit to return inline | |
| compact | No | Export only non-default settings (compact format) | |
| routerId | No | Router ID; omit to use the default router. | |
| confirmationToken | No | Token from a prior APPROVAL_REQUIRED response. Re-submit the identical call with this token to confirm the destructive action. |