Features Title Here. Consectetur adipisicing

Features Content Here. Sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Email Auto backup mikrotik

Thursday, 25 October 2012


/system script
add name=backup policy=ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source=":log info \"backup beginning now\"\r\
\n:global backupfile ([/system identity get name] . \"-\" . [/system clock get time])\r\
\n/system backup save name=\$backupfile\r\
\n:log info \"backup pausing for 60s Adeelkml.com\"\r\
\n:delay 60s\r\
\n:log info \"backup being emailed\"\r\
\n/tool e-mail send to=\"dil515283@yahoo.com\" subject=(\" Backup Winbox _ \" . [/system clock get date] . \" - \" . [/system clock get time]) tls=yes file=\$backupfile\r\
\n:log info \"backup pausing for 60s adeelkml.com\"\r\
\n:delay 60s\r\
\n/file remove \$backupfile\r\
\n:log info \"Fileremoved\"\r\
\n:log info \"backup finished\""
add name=backup-USER policy=ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source=":log info \"backup beginning now\"\r\
\n:global backupfile ([/system identity get name] . \"-\" . [/system clock get time])\r\
\n/tool user-manager database save name=\$backupfile\r\
\n:log info \"backup pausing for 60s\"\r\
\n:delay 60s\r\
\n:log info \"backup being emailed\"\r\
\n/tool e-mail send to=\"dil515283@yahoo.com\" subject=(\" Backup Winbox _ \" tls=yes . [/system clock get date] . \" - \" . [/system clock get time]) tls=yes file=\$backupfile\r\
\n:log info \"backup pausing for 60s\"\r\
\n:delay 60s\r\
\n/file remove \$backupfile\r\
\n:log info \"Fileremoved\"\r\
\n:log info \"backup finished\""

/system scheduler
add comment="" disabled=no interval=1w name=sched_backup on-event=backup policy=ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive start-date=jan/01/1970 \
start-time=07:30:00
add comment="" disabled=no interval=1w name=backup-USER on-event=backup-USER policy=ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive start-date=jan/01/1970 \
start-time=07:30:00

1 comments:

Post a Comment