You are here
Home mikrotik export configuration

Mikrotik Export Configuration Page

Exported scripts are generated in the correct order (interfaces first, then IP addresses, then firewall). However, if you manually edit the script, you might break dependencies. Example: adding a firewall rule that references a non-existent address list. Test edited scripts in a lab or virtual CHR first.

The terse flag outputs the configuration without property names, making it harder for humans but easier for basic parsing scripts. Most users will prefer compact over terse.

By default, RouterOS hides sensitive information like passwords, PSKs for wireless, and VPN secrets. They appear as "..." in the export. The show-sensitive flag reveals this information in plain text.

Syntax:

/export show-sensitive file=full-config-with-passwords

Warning: This file, if leaked, grants full access to your network. Always encrypt or store it in a secure, access-controlled vault.

To save the export directly to the router's internal storage:

/export file=my-config

This creates /my-config.rsc on the router. You can download it via Files in WinBox or using SCP/FTP. mikrotik export configuration

To restore from an exported .rsc file:

Note: Running an import adds configuration. To restore a complete device, first reset the device to defaults:

/system reset-configuration

Then import your script.

set servers=8.8.8.8,8.8.4.4

/ip dns static add address=192.168.88.1 name=router.lan

/ip firewall filter