I have a multiple folders, and each folder has about 1500 files. I have a kind of for loop going over each folder and then sending the files to either one or 4 remote hosts depending upon the environment. Currently I am using rdist.
Almost every file I have is changing on a daily basis, sometimes it just changes the date and time inside the file.
I came across few commands like pscp, prsync as well as GNU parallel. I experimented with pscp and rdist on multiple hosts, both are giving similar results.
What is the difference between
rdistandprsyncin terms of performance? My understanding is thatprsynccan migrate files on multiple hosts and same is withrdist. My understanding from my tests is that neitherprsyncnorrdistcopy multiple files in parallel on single host; they can only copy file by file in parallel on multiple hosts in parallel. So is there any difference between the two from performance side?For
rdist, my scripts create a distfile likeHOSTS( user@server user@server2 user@server3 ) RUN:(/var/inputpath/folder) -> ${HOSTS} install (/var/outputpath/folder)then I run
rdistlike followingrdist-f /dist-file-path -P /path/to/sshI tested GNU
parallelfor local copy usingcpand zipping usingzip. It is really very fast. This allows copying multiple files in parallel even on local computer.
So my question is, is there a possibility to combine GNU parallel with say pscp or rdist or prsync?