Já to mám nějak takto.
#
:local email "
nejaky@email.cz"
/export show-sensitive file=zaloha
:delay 2s
/system backup save name=zaloha
:delay 2s
:local date [/system clock get date]
:local time [/system clock get time]
:local info [/system identity get name]
:local serial [/system routerboard get serial-number]
:local files "zaloha.rsc,zaloha.backup"
/tool e-mail send to="$email" subject="Mikrotik: Zaloha $info $serial" file=$files body="Automaticka zaloha $info $serial at $date $time."
:delay 20s
/file remove zaloha.rsc
/file remove zaloha.backup
/log info "Backup e-mail sent."
Pokud chceš s heslem uprav na
/system backup save password=nejaketajneheslo encryption=aes-sha25 name=zaloha;
Export bez uložených hesel.
odstranit show-sensitive