My application use rsync to copy files from network driver to local as cache to improve performance.
But since my application might be run in parallel, so as the rsync, and there could be a case that 2 instance of rsync being run in parallel against the same source and directory.
I've run into a problem that the destination doesn't sync completely (leaving one sub directory empty). so I doubt it is a problem of a rsync, so
- Is rsync safe to copy files from same source to the same destination in parallel?
- Is there any option available to ensure the correctness of such operation.
The options I am using is:
rsync -a --copy-unsafe-links --delete