Community discussions

MikroTik App
 
nightstar
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 62
Joined: Sun Jun 29, 2008 12:28 am

Backup script

Sat Nov 01, 2008 11:50 am

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!
 
fosben
Frequent Visitor
Frequent Visitor
Posts: 81
Joined: Thu Dec 14, 2006 4:50 pm

Re: Backup script

Wed Nov 05, 2008 2:31 pm

/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 ;)

Who is online

Users browsing this forum: No registered users and 12 guests