Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I hve two remote servers : suppose A and B

i hve my own local desktop through which i want to transfer my file simultaneously to Server A and B. Is there any way or any tool through which i can do this?????

share|improve this question

closed as unclear what you're asking by MadHatter, mdpc, Jenny D, Ward, HBruijn Aug 7 at 10:46

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
It might help if you identify which OS you are actually using... –  user48838 Sep 5 '10 at 16:07

2 Answers 2

It depends.

If you use ftp, and if by "simultaneously" you mean "with a single command", then just use curl to upload the file to several ftp servers

$ curl -T my_local_file -u userid:password ftp://servera/path/ ftp://serverb/path/

For small size files this will be near enough simultaneous anyway.

If the files are larger, or you really need closer synchronization, you could run several instances of curl in the background

$ for srv in servera serverb; do curl -T my_local_file -u userid:password ftp://${srv}/path& done
share|improve this answer

If you're using ssh, then parallel-ssh will do it.
(debian package pssh)

If you really are using ftp, then I suggest thinking about using ssh.

Most windows ftp clients will let you script them. example: http://winscp.net/eng/docs/scripting

share|improve this answer