This is what I am using:
#Add a system script to make sure the router is backed up.
/system script
add name=backup
policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive
source=":global sysname [/system identity get name]\r\
\n:local datetime [/system clock get date]\r\
\n\r\
\n:log info \"\$datetime \$sysname Backup Started\";\r\
\n\r\
\n/export file=export.rsc\r\
\n/system backup save name=backup.backup dont-encrypt=yes\r\
\n\r\
\n:delay 20s\r\
\n\r\
\n/tool e-mail send to=\"[email protected]\" subject=\"FOOOO Export
\$sysname \$[/system clock get date]\" [email protected]
file=export.rsc start-tls=yes \r\
\n\r\
\n:delay 20s\r\
\n\r\
\n/tool e-mail send to=\"[email protected]\" subject=\"FOOOO Backup
\$sysname \$[/system clock get date]\" [email protected]
file=backup.backup start-tls=yes \r\
\n\r\
\n:log info \"\$datetime \$sysname Backup Ended\";"
ryan
On 4/16/15 3:31 PM, Josh Luthman wrote:
My backup script seems to not work on v6 anymore. I keep getting an
invalid BODY error. The server is just GMail's SMTP server (first MX
record).
It's nothing more than this:
/tool e-mail send server=64.233.191.27 file=backupfilehere.rsc to="
[email protected]" subject=([/system identity get name] . "
Backup") body="nothing here
Does anyone have a command that works on v6 (specifically 6.23+) already so
I don't have to research/test to find a working method?
Josh Luthman
Office: 937-552-2340
Direct: 937-552-2343
1100 Wayne St
Suite 1337
Troy, OH 45373
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.butchevans.com/pipermail/mikrotik/attachments/20150416/5b21e76f/attachment.html>
_______________________________________________
Mikrotik mailing list
[email protected]
http://mail.butchevans.com/mailman/listinfo/mikrotik
Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS
--
D. Ryan Spott | Iron Goat Networks, llc
broadband | telco | colo | community
PO Box 1232 / 603 W. Stevens Sultan, WA 98284
360-799-0552 | gtalk: [email protected]
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.butchevans.com/pipermail/mikrotik/attachments/20150416/70156a41/attachment.html>
_______________________________________________
Mikrotik mailing list
[email protected]
http://mail.butchevans.com/mailman/listinfo/mikrotik
Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS