/ tool e-mail
set server=1.2.3.4 from="EMAIL@EMAIL-your.COM"
/system script
add name=ebackup policy=ftp,reboot,read,write,policy,test,winbox,password,sniff source="/\
system backup save name=([/system identity get name] . \"-\" . \\\r\
\n[:pick [/system clock get date] 7 11] . [:pick [/system clock get date] 0 3] . [:pi\
ck [/system clock get date] 4 6]); \\\r\
\n/tool e-mail send to=\"EMAIL@EMAIL-your.COM\" subject=([/system identity get name\
] . \" Backup \" . \\\r\
\n[/system clock get date]) file=([/system identity get name] . \"-\" . [:pick [/syst\
em clock get date] 7 11] . \\\r\
\n[:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6] . \".ba\
ckup\");:delay 10; \\\r\
\n/file rem [/file find name=([/system identity get name] . \"-\" . [:pick [/system c\
lock get date] 7 11] . \\\r\
\n[:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6] . \".ba\
ckup\")]; \\\r\
\n:log info (\"Backup terkirim pada \" . [/sys cl get time] . \" \" . [/sys cl ge\
t date])"
/system scheduler
add comment="" disabled=no interval=1w name=sched_backup_mail on-event=\
ebackup start-date=jan/01/1970 start-time=07:30:00
Tuesday, June 07, 2011
Backup Mikrotik Autimatic Via Email
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment