Network Services

Wednesday, March 21, 2012

Send backup Mikrotik to Email

# How to Send backup Mikrotik to Mile ?

In the bottom scrit Helps you to send Backup for your mail

Send Bacbkup config Mikrotik

Send Bacbkup Usermanger  Mikrotik



/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\"\r\
\n:delay 60s\r\
\n:log info \"backup being emailed\"\r\
\n/tool e-mail send to=\"knzey_man@yahoo.com\" subject=(\" Backup Winbox _ \" . [/system clock get date] . \" - \" . [/system clock get time]) 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\""
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=\"knzey_man@yahoo.com\" subject=(\" Backup Winbox _ \" . [/system clock get date] . \" - \" . [/system clock get time]) 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\""

There are some words Red Balloon change them to data Your Email


This script is responsible for the time
Time


/system scheduler
add comment="" disabled=no interval=12h 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=22h 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




/tool e-mail
set from=WinBox@kenzey.com password="" server=212.103.160.58:25 username=""

You will receive a letter of the name "WinBox@kenzey.com"  
Change them to what you love


See you in the next lesson

with you

Mohamed Samir

0 comments:

Post a Comment