Community discussions

MikroTik App
 
imirsay
just joined
Topic Author
Posts: 22
Joined: Fri Jul 28, 2023 12:47 pm

send a file to 2 servers

Mon May 06, 2024 8:52 am

I want to send a file to 2 servers using ftp. How do I do this with a command?
tool/fetch address=1.1.1.1 src-path=1 mode=ftp  user=user password=pass dst-path=1 upload=yes
 
User avatar
nichky
Forum Guru
Forum Guru
Posts: 1399
Joined: Tue Jun 23, 2015 2:35 pm

Re: send a file to 2 servers

Mon May 06, 2024 9:23 am

:local nama "$[/system identity get name]";
/system backup save name=$nama;
/too fetch address=x.x.x.x src-path="/$nama.backup" user=admin password="" dst="$nama.backup" port=21 mode=ftp upload=yes
/export file=$nama;
/too fetch address=x.x.x.x src-path="/$nama.rsc" user=admin password="" dst="$nama.rsc" port=21 mode=ftp upload=yes
 
Boulder08
just joined
Posts: 19
Joined: Thu Oct 12, 2023 10:37 am

Re: send a file to 2 servers

Mon May 06, 2024 1:51 pm

Can the same be done over SMB to a network share?