Page 1 of 1

Backup script

Posted: Sat Nov 01, 2008 11:50 am
by nightstar
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!

Re: Backup script

Posted: Wed Nov 05, 2008 2:31 pm
by fosben
/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 ;)