Community discussions

MikroTik App
 
proxy
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Wed Dec 15, 2004 1:18 am

Script to make backup and send to e-mail

Wed Oct 05, 2005 9:40 pm

hello all , i wanted to create a script on my MT , that sends backups evryday at the same time., ex. monday , at 12:00 am.
can anybody help me to create that script?
thnx
best regards.
 
changeip
Forum Guru
Forum Guru
Posts: 3830
Joined: Fri May 28, 2004 5:22 pm

Wed Oct 05, 2005 11:57 pm

check the manual its in there.

Sam
 
proxy
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Wed Dec 15, 2004 1:18 am

Thu Oct 06, 2005 12:41 am

can u paste it here plz..
 
Kowallus
just joined
Posts: 1
Joined: Thu May 19, 2005 11:25 am
Location: Poland

Thu Oct 06, 2005 9:52 am

:local File
/system backup save
:foreach i in=[/file find type="backup"] do={
:set File [/file get $i name]}
/tool e-mail send file=$File from=email@adres.com to=email1@adres.com server=xx.xx.xx.xx subject=([/system identity get name] . " " . [/system clock get time] . " " . [/system clock get date] . " Backup")
 
proxy
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Wed Dec 15, 2004 1:18 am

Thu Oct 06, 2005 4:17 pm

and in what time does this script makes the backup??
because i want to make the backup example at 12:00 and send it to e-mail
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26380
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Thu Oct 06, 2005 4:25 pm

this is only a script. the script will be executed by the `/system scheduler` tool, you can set any time or interval you like. i strongly suggest you to visit the manual, it is all written there.

Who is online

Users browsing this forum: No registered users and 38 guests