Export Config
export_configExport RouterOS configuration as a script, optionally saving to a file on the router. Use compact mode to show only non-default settings.
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. |