Can scp be used to send a single file to multiple remote servers at the same time? If so, how? If not, what's the alternative?
|
|
For example, if you had a group called 'webservers' in Similarly,
pdsh commands and pdcp copies are executed in parallel (with limits and timeouts to prevent overloading of the originating system). When the command being run produces multi-line output, it can get quote confusing to read. Another program in the after seeing all your comments, it's possible that pdsh & pdcp may be overkill for your needs...it's really designed to be a system admin's tool rather than a normal non-root user's tool. It may be that writing a simple shell script wrapper around scp may be good enough for you. e.g. here's an extremely simple, minimalist version of such a wrapper script.
|
|||||||||||
|
|
Instead of sending a file to multiple targets at the same time you could read it multiple times at the same time. Transfer your file to NFS, mount that filesystem on your targets and copy it from NFS to your local destination. To do so manually and concurrent, you could use cluster-ssh (cssh) on the targets. |
|||
|
|