What you will read?
To back up your MikroTik router configuration, you have two main options: using the Winbox GUI or the command-line interface (CLI). Below is a detailed guide for both methods.
Backup via Winbox
-
Open Winbox and log in to your MikroTik router.
-
Go to the Files menu from the left sidebar.
-
Click on Backup at the top of the Files window.
-
A small window appears. You can set a name for your backup file, and if needed, set a password for encrypted backups.
-
Click Backup.
After a few seconds, a .backup
file will appear in the list. You can drag and drop it to your PC or right-click > Download to save it.
- Note:
.backup
files include sensitive data such as user passwords and are encrypted with the router’s hardware ID. They may not work on other devices.
Backup via Terminal (CLI)
You can also back up your configuration using MikroTik’s terminal. Log in via Winbox Terminal, SSH, or Telnet and run:
/system backup save name=myrouter_backup
This will generate a file named myrouter_backup.backup
. You can download it using:
/tool fetch address=192.168.88.1 src-path=myrouter_backup.backup user=admin mode=ftp password=yourpassword
Replace address
, user
, and password
with your actual FTP server details.
Exporting Configuration to Text File
If you prefer a human-readable backup (useful for versioning or reviewing configurations), use:
/export file=config_export
This creates a .rsc
file (RouterOS Script) in the Files list. You can download it the same way as .backup
.
- Unlike
.backup
,.rsc
files can be edited and imported on other MikroTik devices, making them ideal for migration or templating.
Automating Backups with Scheduler
You can automate daily or weekly backups using the scheduler. Here’s a script to export the config daily:
/system scheduler add name="daily_backup" start-time=01:00:00 interval=1d on-event="/export file=daily_config"
And if you want to email the backup automatically:
/tool e-mail send to="[email protected]" subject="MikroTik Backup" file=daily_config.rsc
Make sure email settings are configured correctly under:
/tool e-mail
Set SMTP server, from address, and authentication before using this feature.
Secure Your Backups
Keep your .backup
and .rsc
files secure. Avoid storing them on shared devices. If you’re uploading them to cloud storage, make sure it supports encryption or set a strong password during backup creation.
Also consider renaming the backups with timestamps for version control:
/system backup save name=router_2025_06_17