Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Script auto backup mikrotik kirim ke akun g-mail
- #Sebelum copas di new terminal, silahkan sesuaikan akun g-mail nya ya....
- /tool e-mail
- set address=74.125.127.109 from=<Mikrotik_Nubie> password="nubie" \
- port=587 start-tls=yes user=nubie
- /system script
- add comment=backup_system name=backup_system owner=admin policy=\
- ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="/sy\
- stem backup save name=(\"Backup - \" . [/system identity get name] . \"-\" .\
- \_[:pick [/system clock get date] 7 11] . [:pick [/system clock get date] 0 \
- 3] . [:pick [/system clock get date] 4 6]); /tool e-mail send to=\"nubie@\
- gmail.com\" from=\"nubie@gmail.com\" server=\"74.125.127.109\" subject=([\
- /system identity get name] . \" Backup \" . [/system clock get date] . \"-\"\
- \_. [/system clock get time]) file=(\"Backup - \" . [/system identity get na\
- me] . \"-\" . [:pick [/system clock get date] 7 11] . [:pick [/system clock \
- get date] 0 3] . [:pick [/system clock get date] 4 6] . \".backup\"); :delay\
- \_10; /file rem [/file find name=(\"Backup - \" . [/system identity get name\
- ] . \"-\" . [:pick [/system clock get date] 7 11] . [:pick [/system clock ge\
- t date] 0 3] . [:pick [/system clock get date] 4 6] . \".backup\")]; :log in\
- fo (\"System Backup emailed at \" . [/sys cl get time] . \" \" . [/sys cl ge\
- t date])"
- /system scheduler
- add comment=backup_system interval=1w name=backup_system on-event=backup_system \
- policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
- start-date=apr/5/2017 start-time=09:00:00
Add Comment
Please, Sign In to add comment