hello everybody ;
is there a way to set a rule or something to send back up to email automatically like everyday ? and does it send a backup even if the password of mikrotik has changed ?
in Tools-Email put credentials to e-mailhello everybody ;
is there a way to set a rule or something to send back up to email automatically like everyday ? and does it send a backup even if the password of mikrotik has changed ?
/export file="config"
/tool e-mail send to=email_to_send@domain.com subject="config export " file="config.rsc"
/system script
add name="Daily Backup" owner=Admin policy=ftp,read,policy,test,sensitive \
source="# Policies needed: ftp, read, policy, sensitive, test\r\
\n# Policies NOT needed: password, reboot, write, sniff, romon\r\
\n:log info \"Starting daily backup\";\r\
\n/system backup save name=RB750-1_Daily\r\
\n:delay 00:00:01\r\
\n/tool e-mail send file=RB750-1_Daily.backup to=\"my_E-Mail@address\" body=\"\
Router #1 daily backup file attached.\" \\\r\
\n subject=\"RB750-1 \$[/system clock get date] at \$[/system clock get\
\_time] Backup\"\r\
\n/ export file RB750-1_Daily\r\
\n:delay 00:00:10\r\
\n/tool e-mail send file=RB750-1_Daily.rsc to=\"my_E-Mail@address\" body=\"Rou\
ter #1 daily script file attached.\" \\\r\
\n subject=\"RB750-1 \$[/system clock get date] at \$[/system clock get\
\_time] Script\"\r\
\n:log info \"Daily backup script completed\"\r\
\n"
/tool e-mail
set address=smtp.gmail.com from="Router #1" password=Redacted port=587 \
start-tls=yes user=The_sending_address@gmail.com
/system scheduler
add interval=1d name="Daily backup" on-event="Daily Backup" policy=\
ftp,read,write,policy,test,password,sniff,sensitive start-date=\
jul/12/2016 start-time=22:31:00
yes, you can't read user password because of security reasons.so even if i got the backup i can't read it ?
Sorry for the delay - busy weekend...and K6ccc do i have to use these 3 scripts ? or the 1st one would do it ?
and where to paste it ? in terminal ?
Agreed that backing up via E-Mail has some issues. In my case, it's just my two routers at home, and the backups are going through my own mail server, so your three limitations listed are not really much of an issue - at least for me.Sending backups to email is bad for multiple reasons.
Security, scalability, management (imagine you need to change the email address, or email credentials on 100 devices), etc.