/export |
/system backup save |
|
|---|---|---|
| Format | .rsc text: RouterOS commands |
binary .backup, encrypted with a password |
| What’s inside | changes relative to the factory config | everything, including MAC addresses, users, certificates |
| Passwords | hidden; included with show-sensitive |
always included |
| Human-readable | yes | no |
| To another router | yes, after fixing port names | no |
| In git | yes (Server configs in git) | no |
The export is short: a hAP with a guest network and PPPoE is about a hundred lines.
/export file=hap-2026-10-19
/system backup save name=hap-2026-10-19 password="backup password"
/file print
# # NAME TYPE SIZE
# 0 hap-2026-10-19.rsc script 6.1KiB
# 1 hap-2026-10-19.backup backup 41.3KiB
Take both files off the router: drag them out of Files in Winbox, or scp [email protected]:hap-2026-10-19.rsc ..
A copy that lives only on the router dies with it.
Before a big change, make an export, and another one after: the difference between the two files shows exactly what changed.
diff hap-before.rsc hap-after.rsc
The export’s first line is the date and RouterOS version, so it will always differ.
If it doesn’t work
Restored a .backup onto a new router — an address conflict on the network, the second router vanished
- Cause
- A
.backupholds the interfaces’ MAC addresses: the new router got the same MACs as the old one. - Fix
- Move
/export, not.backup, to another router. If you already restored it:/interface ethernet reset-mac-address [find].
/import on another model stops halfway
- Cause
- The export has interfaces this model doesn’t have (
ether6,sfp1,wifi3), or parameters its hardware doesn’t know, such ashw-offload=yes. - Fix
- Edit the file before importing: port names for the new model, extras removed. Import runs line by line and stops at the first error: everything above it is already applied.
The export has no Wi-Fi or PPPoE passwords
- Cause
- Since RouterOS 7,
/exporthides secrets by default. - Fix
/export show-sensitiveincludes them. Store such a file like a password; put the version withoutshow-sensitivein git (A secret in a commit).