Automatic Backup Sent by Email
The router emails its backup file and .rsc export every day/week, so the configuration is safe even if the router breaks or is reset.
The script makes a .backup file (to restore the same router) and an .rsc export (readable text, usable on another router), emails them and deletes the files from the router. A scheduler runs it regularly. v6 and v7 differ in the email TLS setting, backup encryption, and v7's export hides passwords unless asked. The old date format (nov/11/2026, v6 and v7 before 7.10) is converted automatically because slashes cannot be in a file name.
- Test it once without waiting: /system script run backup-email, then /log print for email errors.
- The router clock must be right (Clock & NTP generator) so file names and the schedule are correct.
- Routers with a flash/ folder (old RouterBOARDs) keep files in flash/. If the email has no attachment, change the file name in the script to flash/backup-….
- v6 below 6.44: the SMTP server must be an IP, not a domain name.
- A .backup file only restores the same router (or the same model). To move to another router use the .rsc.
How to use: Copy the script, open Winbox → New Terminal, paste. Or Download .rsc, upload it in Files, then run /import file-name=backup-email.rsc.
RouterOS v6.44+ / v7 · added 11 November 2026
readyRouterOS v6.44+ / v7
Terminal <backup-email>
More in Monitoring