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

One Reply 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

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.