Setup guide
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 Wandy RouterOS Manual.
The Export Command
Command name: export
Example
[admin@Wandy] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 10.1.0.172/24 10.1.0.0 10.1.0.255 bridge1
1 10.5.1.1/24 10.5.1.0 10.5.1.255 ether1
[admin@Wandy] >
To make an export file:
[admin@Wandy] ip address> export file=address
[admin@Wandy] ip address>
To make an export file form olny one item:
[admin@Wandy] ip address> export file=address1 from=1
[admin@Wandy] ip address>
To see the files stored on the router:
[admin@Wandy] > file print
# NAME TYPE SIZE CREATION-TIME
0 address.rsc script 315 dec/23/2003 13:21:48
1 address1.rsc script 201 dec/23/2003 13:22:57
[admin@Wandy] >
To export the setting on the display use the same command without the file argument:
[admin@Wandy] ip address> export from=0,1
# dec/23/2003 13:25:30 by RouterOS 2.8beta12
# software id = MGJ4-MAN
#
/ ip address
add address=10.1.0.172/24 network=10.1.0.0 broadcast=10.1.0.255 \
interface=bridge1 comment="" disabled=no
add address=10.5.1.1/24 network=10.5.1.0 broadcast=10.5.1.255 \
interface=ether1 comment="" disabled=no
[admin@Wandy] ip address>
The Import Command
import