Community discussions

MikroTik App
 
maxeschm
newbie
Topic Author
Posts: 36
Joined: Thu Jan 29, 2009 9:58 pm

Script to transfer Files from one router to the other

Fri Feb 04, 2011 1:05 pm

Hi@all,

for redudancy reasons we try to transfer usermanagement-backup files from on router to the other. For the backup of the database file and also for the import i have scripts and all works fine. But is it also possible to transfer files from one router to the other by using a script. I only know that is possible to sending the files by email or ftp-downlaod/upload by an external PC with FTP Client but what i need is a direct transfer fron router A to B.

rg,
maxeschm
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7056
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Script to transfer Files from one router to the other

Fri Feb 04, 2011 1:09 pm

In v5 it is possible with /tool fetch


/tool fetch upload=yes address=10.5.101.1 mode=ftp password=""
user="admin" src-path=ca.crt dst-path=ca.crt
 
maxeschm
newbie
Topic Author
Posts: 36
Joined: Thu Jan 29, 2009 9:58 pm

Re: Script to transfer Files from one router to the other

Fri Feb 04, 2011 5:57 pm

Thx a lot for help.
 
freddy
just joined
Posts: 1
Joined: Thu Apr 14, 2011 2:31 pm

Re: Script to transfer Files from one router to the other

Thu Apr 14, 2011 5:48 pm

In v5 it is possible with /tool fetch


/tool fetch upload=yes address=10.5.101.1 mode=ftp password=""
user="admin" src-path=ca.crt dst-path=ca.crt
Hello,
it is also possible to check the content of the remote MT file section and than fetch just the unfounded files?

Let me explain:
I would like to copy different files from my AP to all the clients when they are connected. First I would to check if the files are there, second copy all the files with just one command and not different fetch command because i don't want to create a fetch script for any single file.

Is it possible to use special characters such as * ?

Thanks
Federico

Who is online

Users browsing this forum: No registered users and 33 guests