Backup script
RouterOS Scripting and API

2 posts   •   Page 1 of 1
nightstar
Frequent Visitor
Frequent Visitor
 
Posts: 62
Joined: Sun Jun 29, 2008 12:28 am

Backup script

by nightstar » Sat Nov 01, 2008 12:50 pm

Hi!

I need to create script that will backup my access points every week on the night.
I created simple script, but i need backup to be sent to remote location automaticaly.

How this can be done, i tried something from wiki mikrotik, but nothing happens:

/system script
add name=Fetch source=/tool fetch address=192.168.1.2 user=admin password=admin123 path="xyz.backup"
mode=ftp

:?

Best regards!



I founded that in RouterOS 3.X tool/fetch is introduced, so i have some routerboards that use 2.9.X, can i somehow use ftp to transfer backup files from that routerboards? or some other way? (not over mail server)

Thanks!
I' l do my best, i promise you that!

fosben
Frequent Visitor
Frequent Visitor
 
Posts: 81
Joined: Thu Dec 14, 2006 5:50 pm

Re: Backup script

by fosben » Wed Nov 05, 2008 3:31 pm

Code: Select all
/tool fetch mode=ftp port=21 address=x.x.x.x user=ftpuser password=ftpuserpassword src-path="filetodownload.txt" dst-path="downloadedfile.txt"



Change the values as needed.. Runs fine between ros 3.x but it fails with action error (6) when trying to connect to a 2.9.x rb

edit: works from 3.x to 2.9.x too, I had some firewall issue ;)

2 posts   •   Page 1 of 1

Who is online

Users browsing this forum: firassadi and 11 guests

It is currently Mon Dec 22, 2014 1:35 pm