Page 1 of 1

send a file to 2 servers

Posted: Mon May 06, 2024 8:52 am
by imirsay
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

Re: send a file to 2 servers

Posted: Mon May 06, 2024 9:23 am
by nichky
: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

Re: send a file to 2 servers

Posted: Mon May 06, 2024 1:51 pm
by Boulder08
Can the same be done over SMB to a network share?