MikroTik Backup and Restore Procedure

MikroTik Backup and Restore Procedure

I know this topic has been covered elsewhere but I want to provide clear and concise steps on how to backup a MikroTik router.  I will also publish a video that covers these steps.

Config Backup .backup Binary File

  1. Connect to router with Winbox
  2. Click on Files
  3. Click Backup, Check or uncheck [ ] Don’t Encrypt
  4. Sort file list by creation time and find newly created backup file
  5. Drag the .backup file to a folder on your PC to copy it.

Text Config Backup .rsc Text File

  1. Connect to router with Winbox
  2. Click “New Terminal
  3. Issue the command export file=myconfig.cfg
  4. Close Terminal
  5. Click on Files and find the newly created mybackup.cfg.rsc backup file.
  6. Drag the file out of Winbox and drop into a folder on the PC to copy it.

You can also open the .rsc file in a text editor to very its contents.

Config Restore with Winbox

  1. Power on new router and connect laptop
  2. Allow the router to boot and connect with Winbox
  3. In Winbox, click on the Neighbors tab and connect to the new unconfigured router.
  4. Once connected, insure that the router firmware the same version as the router you are replacing.
  5. Click Files and drag the .backup file from your PC into the files window. This will copy the config to the router.
  6. Next, highlight the config backup file and click Restore.
  7. The router will reboot

Note: If the config was originally encrypted you must first set the same admin password and reboot the new router before attempting to Restore.

Important: When restoring a binary backup file to a new Mikrotik Router the backup will change the mac addresses of all interface to match the previous router. This usually is not a problem unless you are using a backup to configure a second router. If you were to connect say ether1 between the old and new router they would both have the same mac-address on ether1 causing them to not communicate. You can use the Reset Mac Address button on each interface to revert back to the factory hardware mac address.

 

Text Config Restore .rsc Text File

WARNING: These steps will erase any existing configuration setting on the router.

  1. Edit the .rsc file and add :delay 15s at the top of the file
  2. Copy the file to the router’s flash folder
  3. In Winbox choose System | Reset Configuration
  4. Check the box “No Default Configuration” and choose the config file from the “Run After Reset” dropdown.
  5. Click the Reset Configuration button

For the best way to restore MikroTik Configs use my perfectrestore script.

I hope you found this MikroTik Tutorial on RouterOS Configuration Management useful. If it helped you out, please leave a comment below and checkout my other MikroTik Tutorials!

NetScout LinkRunner G2

LinkRunner G2 is the ultimate network cable test tool


CAT5 Cable Tester, Measure Cable Length,
PoE Voltage, Network Connectivity, Switch Port ID
Optional Wireless & Fiber Optics Modules
Check Price on Amazon

12 Replies to “MikroTik Backup and Restore Procedure”

  1. Muchas gracias, me ayudaste con un gran dolor de cabeza, bendiciones y saludos desde Colombia.

    Translation

    Thank you very much, you helped me with a big headache, blessings and greetings from Colombia

  2. Thank you for the tutorial. One question, do you connect the computer to the router with a ethernet cable or a DB9 serial cable?

  3. Thanks for this very clear guide. I followed it to copy configuration of a router to a new one. Reset MAC address worked fine, but wlan1, wlan2 on the original router became wlan3, wlan4 on the new one. Any idea why?

  4. Thank you this was helpful information. After copying a backup to another Access Point i though i had duplicated the Mac address permanently but this article was helpful in informing me that that is the interface Mac that was changed and there was an option to reset the Mac address of the interface to factory defaults. You saved the day. Thank you.

  5. Following the advice has cost me 6hrs so far. cAP ac is now reset with no config. Error in log on reset:

    “error while running run-after-reset script: failure: cannot change builtin”

    Stay away from this advice and look elsewhere.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.