Export Config
export_configExport the MikroTik router configuration as a RouterOS script. Supports compact mode for non-default settings and saving to a file on the router.
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 |
|---|---|---|---|
| routerId | No | Router ID; omit to use the default router. | |
| compact | No | Export only non-default settings (compact format) | |
| file | No | Save the export to a file on the router (without extension); omit to return inline |