rsync is a popular way of sync'ing two directories on same or different file systems but it builds the whole table of files to be copied in memory. This consumes quite a bit of memory for a large file system and is slow to start. I see that "cp -u" starts immediately, updates only the newer files, does not build large tables in memory and the performance is slightly better than rsync. Is there any downside of using "cp -u" vs rsync?
rsync as well as cp crwal for a file system if the source files are updating during copying. Is there any way to get around this?
Vinod
Start Free Trial