View difference between Paste ID: 3XbAN5Ys and AZ31zqXg
SHOW: | | - or go back to the newest paste.
1
#Script auto backup mikrotik kirim ke akun g-mail
2
#Sebelum copas di new terminal, silahkan sesuaikan akun g-mail nya ya....
3
4
5
/tool e-mail
6
set address=74.125.127.109 from=<Mikrotik_Nubie> password="nubie" \
7
    port=587 start-tls=yes user=nubie
8
9
/system script
10
add comment=backup_system name=backup_system owner=admin policy=\
11
    ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="/sy\
12
    stem backup save name=(\"Backup - \" . [/system identity get name] . \"-\" .\
13
    \_[:pick [/system clock get date] 7 11] . [:pick [/system clock get date] 0 \
14
    3] . [:pick [/system clock get date] 4 6]); /tool e-mail send to=\"nubie@\
15
    gmail.com\" from=\"nubie@gmail.com\" server=\"74.125.127.109\" subject=([\
16
    /system identity get name] . \" Backup \" . [/system clock get date] . \"-\"\
17
    \_. [/system clock get time]) file=(\"Backup - \" . [/system identity get na\
18
    me] . \"-\" . [:pick [/system clock get date] 7 11] . [:pick [/system clock \
19
    get date] 0 3] . [:pick [/system clock get date] 4 6] . \".backup\"); :delay\
20
    \_10; /file rem [/file find name=(\"Backup - \" . [/system identity get name\
21
    ] . \"-\" . [:pick [/system clock get date] 7 11] . [:pick [/system clock ge\
22
    t date] 0 3] . [:pick [/system clock get date] 4 6] . \".backup\")]; :log in\
23
    fo (\"System Backup emailed at \" . [/sys cl get time] . \" \" . [/sys cl ge\
24
    t date])"
25
26
/system scheduler
27
add comment=backup_system interval=1w name=backup_system on-event=backup_system \
28
    policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
29
    start-date=apr/5/2017 start-time=09:00:00