Hi everyone, in this post I want to show you how to backup and restore a MikroTik configuration. A router configuration that is already working well should always have a copy saved somewhere. When you make a configuration mistake, the router breaks, or you need to move to new hardware, a backup file turns recovery into a few clicks instead of typing everything again from scratch.
The lab I am using is a MikroTik CHR running RouterOS 7.25.2 that has been configured throughout this series, starting from the basic configuration and the bridge, all the way to static routing. I will practice both types of backup, prove that restore works by deliberately breaking the configuration, and then move the configuration of a second router using an rsc file after a reset.
The Difference Between a Backup File and an RSC Export
MikroTik has two ways to save a configuration, and each one has a different purpose.
.backup : binary file, contains the whole configuration including users and passwords
restore is only reliable on the same device
.rsc : text file from export, contains commands you can read and edit
good for moving to another device, does not contain users and passwordsThe MikroTik documentation says a backup file can only be reliably restored on the device where it was created and on the same RouterOS version, because the file also stores the MAC addresses of the original device. To move to another router, use export and import instead. My advice is to save both every time you finish an important configuration change.
Backing Up the Configuration in WinBox
Open the Files menu

Click Files. In WinBox 4 there is an Actions panel on the right with Backup, Restore, Upload, and Download. The konfigurasi-dasar.backup and .rsc files you see here come from the basic configuration article, while auto-before-reset.backup was created automatically by the router during a reset.
Create the backup file

Click Backup. Click the plus sign next to Name and type a file name. I used lab-r1-2026-11-29 so the date is obvious. Click the plus sign next to Password if you want the file to be encrypted, then click Backup Config.
In this lab I did not set a password. According to the MikroTik documentation, a backup without a password is stored unencrypted, even though it contains the entire configuration including the router users and passwords. For a production router, set a password and keep that password somewhere safe, because without it the backup file cannot be restored.
Check the backup file

The file lab-r1-2026-11-29.backup, 23.1 KiB in size, shows up in the list. The terminal version of this step is:
/system backup save name=lab-r1-2026-11-29Add password=your-secret if you want the file to be encrypted.
Download it to your computer

A file that only lives on the router is not safe yet, because if the router dies the file goes with it. Select the backup file, click Download, and then choose a destination folder on your computer. Another way is to drag the file from the Files window into a folder in Windows Explorer.
Since the FTP service is enabled by default on this router, you can also grab the file from the Windows Command Prompt. This is what I used, and the 23,660 byte file was saved to the D:\MikroTik-Lab\backup folder.
curl -u admin:your-password ftp://192.168.56.10/lab-r1-2026-11-29.backup -o lab-r1-2026-11-29.backupFTP sends the password without encryption. For a production network it is better to disable FTP in IP Services and use SFTP instead, for example with the command scp admin@192.168.56.10:/lab-r1-2026-11-29.backup . which is already available in Windows 10 and 11.
Exporting the Configuration to an RSC File
Look inside the rsc file

An rsc file is plain text, so you can open it in Notepad. It contains RouterOS commands grouped by menu, such as /ip address, /ip firewall filter, and /ip route. In RouterOS 7, export only shows the settings you changed from their default values, so the file stays compact. Also notice there is no /user section, which means users and passwords are not included in the export.
Export from the terminal

Open New Terminal and run the following commands.
/export file=lab-r1-export
/file print where name~"lab-r1"The file lab-r1-export.rsc, 2033 bytes in size, is saved next to the backup file. Without the file parameter, the export output is printed straight to the terminal.
Some useful export variations:
/export show-sensitive file=lengkap : also shows sensitive data such as secrets
/export verbose file=semua : also shows default values
/ip firewall export file=firewall : only the firewall sectionBy default, export hides sensitive data. Only use show-sensitive if the file will be stored somewhere safe.
Testing a Restore from the Backup File
Simulate a configuration mistake

To prove the backup really works, I deliberately broke the configuration: I changed the identity to Router-Rusak (which means “broken router”) and removed the static route to the R2 LAN.
/system identity set name=Router-Rusak; /ip route remove [find comment="ke LAN R2"]; /ip route print where staticThe name in the WinBox title and status bar changes right away, and the static route list is empty.
Select the file and Restore

In Files, select lab-r1-2026-11-29.backup and click Restore. Make sure the Backup File is the right one, fill in Password if the backup is encrypted, then click Restore.
Confirm the reboot

A prompt asks whether you want to restore configuration and reboot. Click OK. The router reboots immediately and WinBox reconnects once the router is back up. The terminal version:
/system backup load name=lab-r1-2026-11-29Check the restore result

/system identity print; /ip route print where staticThe identity is back to MikroTik-Lab and the static route to 192.168.20.0/24 is active again. The uptime in the status bar is 00:00:47, which proves the router really did just reboot and load the configuration from the backup file. In this lab the whole process, from clicking Restore until WinBox reconnected, took less than a minute.
Moving a Configuration with RSC Import
An rsc file is most useful for moving a configuration to a new router or bringing a router back after a full reset. I practiced this on the second router in the lab, MikroTik-R2.
Test the file with dry-run

/export file=r2-export
/import file-name=r2-export.rsc verbose=yes dry-runThe dry-run parameter can only be used together with verbose=yes. The router reads the file line by line without executing it, then reports No syntax errors found in the import file. This step matters before importing to another router, because a normal import stops halfway if any line has an error.
My experience: While reading the dry-run output, I noticed the DHCP server line did not include the lease-time=30m I set when I created R2. It turns out 30m is the default value in RouterOS 7, so the compact export simply does not write it. So do not be surprised if a setting seems to be missing from the rsc file, first check whether its value is just the default. If you want everything written out, use export verbose.
Reset and run the rsc file

/system reset-configuration no-defaults=yes skip-backup=yes run-after-reset=r2-export.rscType y to confirm. no-defaults leaves the router empty without the default configuration, skip-backup skips creating auto-before-reset.backup, and run-after-reset runs the rsc file as soon as the router boots. This is the cleanest way to import, because the old configuration does not get mixed with the new one. The reset itself is explained in the article on how to reset MikroTik.
Check the configuration after the reset

After logging in again, the MikroTik-R2 identity, both IP addresses, and the two static routes are back as they were. Since the reset also returns the users to default, the router asks for a new password at login. Remember, export does not save users, so any extra users have to be created again after the import.
If you use the rsc file on a router with a different number of ports, open the file in Notepad first and adjust the interface names, for example ether4 if it does not exist on the target router. To find out which line has an error, run the import with verbose=yes.
Common Problems and How to Fix Them
Restoring a backup on another router messes up the interfaces
The backup file carries the MAC addresses of the original device. Use export and import to move between devices, not the backup file.
Import stops halfway with the message expected end of command
A line is broken or refers to an interface that does not exist. Run /import file-name=name.rsc verbose=yes to see the line number with the error, fix it in Notepad, and try again after a reset.
You forgot the backup file password
An encrypted backup file cannot be restored without its password. This is exactly why you should always keep an rsc file as a second copy.
The backup file disappears after the router reboots
On some models with a RAM disk, the file has to be saved in the flash folder, for example name=flash/backup-kantor. Always download the file to your computer or other storage.
Cloud Backup does not work
The Cloud Backup tab in Files needs access to the MikroTik server and requires a password. On CHR this feature is only available with a paid license.
That is it, we now have two types of configuration backup, know how to restore them, and have proven that both of them work. In the next article we will cover how to upgrade MikroTik RouterOS, and before any upgrade you should always make a backup like the one in this article. If you have your own habit of automatic backups with the scheduler, feel free to share it in the comments.












