Send Mikrotik config via email

This script will export the config from your mikrotik router and email it to your email address. The scheduled time between exports and email sending can be decided by you. The exported file will take the name of your system identity ending in the extension .rsc

/export file="$[/system identity get name]"
/tool e-mail send to="" subject="$[/system identity get name] export" \
body="$[/system clock get date] $[/system identity get name] configuration file" file="$[/system identity get name].rsc"