Backing Up RouterOS and Restoring from Backup on Mikrotik router

Published on
Updated on
Platforma

How to Create a Backup of the Current RouterOS Configuration

  • Navigate to the Files section
  • Open the save window by clicking on the Backup button
    • Name: Choose the name for the backup file, typically "RouterIdentifier_date"
    • Don't Encrypt: Choose whether you want the file to be encrypted or not
      • Password: Password for decryption
      • Encryption: Encryption method
    • After clicking the Backup button in the Files section, the backup file will appear.
    • Download your created backup file by clicking on the Download button.

Binary Backup vs. Text Export

  • Binary backup (.backup) contains the complete state including users and passwords. It is meant for restoring on the same device (or the same model); its content cannot be read or edited.
  • Text export (.rsc) is a readable list of commands. It is useful for documentation, comparing changes and moving the configuration to another router. RouterOS 7 leaves sensitive data (passwords, keys) out of the export unless you add show-sensitive.
/system backup save name=router-backup password=StrongPassword
/export file=router-export

Automatic Backup

Set up a regular backup with the scheduler:

/system scheduler add name=weekly-backup interval=7d on-event="/system backup save name=auto-backup password=StrongPassword; /export file=auto-export"

The files stay in the router's storage – if the device fails, you lose them. Download them off the router regularly (manually via Files, or automatically, e.g. by sending them by e-mail via /tool e-mail).

How to Restore RouterOS Settings from a Backup

  • Navigate to the Files section
  • Use the Choose File button from the Upload menu to select and upload the backup file.
  • Click on your uploaded backup file.
    • In the file window, click on the Restore button.
    • Confirm the restoration

Need a secure network setup?

We design, secure and document networks and servers.

Servers & Networks