radio sam sve po uputstvu ali nece da mi posalje fajl na email...
u log-u ispise ovo:
-backup procedure started
-sending binary backup to email
ali nikada se ne pojavi da je zavrsio... verovatno nisam dobro uneo nesto...
i nije mi jasno kako nigde netreba uneti sifru za mail posiljaoca...
mozda i treba ali ja ne znam gde
{
:local RecipientEmail tandrkalo(at)gmail.com
:local SenderEmail milanerg(at)gmail.com
:local SMTPServer smtp.gmail.com
:log info "Backup procedure started"
:local Date ([:pick [/system clock get date] 7 11] . "-" \
. [:pick [/system clock get date] 0 3] . "-" \
. [:pick [/system clock get date] 4 6])
:local backupfile ("MikroTik-" \
. [/system identity get name] . "-" \
. $Date . "-" \
. [/system clock get time])
:local backupfilebin ($backupfile . "-bin")
:local backupfilecmd ($backupfile . "-cmd")
:put "Creating binary backup"
/system backup save name=$backupfilebin
:put "Creating command backup"
/export file=$backupfilecmd
:delay 10s
:log info "Sending binary backup to email"
:put "Emailing binary backup"
/tool e-mail \
send to=$RecipientEmail \
subject=("Binary backup: " . $backupfilebin) \
from=$SenderEmail \
file=$backupfilebin \
server=$SMTPServer
:put "Emailing command backup"
/tool e-mail \
send to=$RecipientEmail \
subject=("Command backup: " . $backupfilecmd) \
from=$SenderEmail \
file=$backupfilecmd \
server=$SMTPServer
:put "Backup sent"
:log info "Backup procedure finished"
}ovo je moja skripta...
da li mozda treba jos nesto podesiti?
skripta pravi fajlove ali ih ne posalje...
hvala unapred na odgovoru