I'm looking for a way to distribute a big folder (~40-60g) to multiple servers (4 or more). A simple scp
command in a loop is working already. I would like to have a faster method but simply parallelizing this easily with command &
and wait
(or GNU parallel) won't improve much as the bandwidth is limited. Also I want a simple method no distributed file system setup should be involved.
And I have read that nfs
will be faster than scp
or special rsync, which is all good but I think a faster version is possible if there are more than 3 target servers, i.e. a "tree copy" mechanism: copy from the source to server A and B, then copy from A to C and D and in parallel from B to E and F and so on.
C ...
/
A
/ \ D ...
/
source -- E ...
\ /
B
\ F ...
Is there already a tool where I can just provide the IPs or hostnames and it does this efficient "tree"-copying? Or a simple script which does this via scp, pssh, sshfs or similar?