RouterOS export and send by mail config file
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
Found a snippet that saved your day? Consider dropping a tip!