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

If I have multiple sources, each with the same directory tree, but different files in the tree, is it safe to run multiple rsync commands in parallel with the same destination?

Specifically, will there be any race conditions for directory/file creation?

share|improve this question

2 Answers 2

There shouldn't be any issues with locking or races, but I still wouldn't suggest it.

Having parts of the tree come from different hosts should work nearly as well and be faster.

share|improve this answer

Creating a directory is atomic so that will not cause a problem. If some of the files are the same you will probably see the last rsync that touches the file will "win".

Other than that I do not see any problems and it should be safe to do.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.