Configuration Export and Import: General Information
Configuration Export and Import: General Information
General Information
Summary
Configuration export feature is used to dump the part or whole RouterOS configuration. Then it can
be edited and imported to the same or to an another router.
Specifications
Related Documents
• Package Management
• IP Addresses and ARP
• Configuration Backup and Restore
Description
The configuration export can be used for dumping out MikroTik RouterOS configuration to the
console screen or to a text (script) file, which can be downloaded from the router using ftp. The
configuration import can be used to import the router configuration script from a text file.
The export command prints a script that can be used to restore configuration. The command can
be invoked at any menu level, and it acts for that menu level and all menu levels below it. If the
argument from is used, then it is possible to export only specified items. In this case export does
not descend recursively through the command hierarchy. export also has the argument file, which
allows you to save the script in a file on the router to retrieve it later via ftp.
The root level command /import file_name restores the exported information from the specified
file. This is used to restore configuration or part of it after a /system reset event or anything that
causes configuration data loss.
Note that it is impossible to import the whole router configuration using this feature. It can only be
used to import a part of configuration (for example, firewall rules) in order to spare you some
typing.
For backing up configuration to a binary file and restoring it without alterations, please refer to the
configuration backup and restore section of the MikroTik RouterOS Manual.
To export the setting on the display use the same command without the file argument:
Description
Example
© Copyright 1999-2006, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are
trademarks of Mikrotikls SIA. Other trademarks and registered trademarks mentioned herein are
properties of their respective owners.