RouterOS export and send by mail config file

Posted by Carles Loriente on December 27, 2019 · 1 min read
Updated on December 25, 2024

If you have some hardware from Mikrotik, or use a virtual/cloud appliance that runs RouterOS, this little script could be very handy, exports and send by email the device configuration.


/export file=export
/tool e-mail send to="REPLACEME@WITHYOURMAIL.COM" subject=([/system identity get name] . " Export " . [/system clock get date]) body="([/system clock get date] configuration file)" file=export.rsc

Download the GitHub Gist mikrotik-routeros_export-config-file-and-sent-email.rsc

Tags:#routeros#mikrotik


Found a snippet that saved your day? Consider dropping a tip!