Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using the following command to copy a large number of big video files to external drives.

rsync -Ph --inplace /Volumes/Production/Prefix* Prefix

We had a power failure and the copying was abrupted. With rsync it's no problem to just restart it, but the thing is that it takes quite a while for it to get back to where it was. It goes through every file and looks like it reads through the whole file. Its speed is reported to be around 3-5 times faster than what it usually is, up to when it gets to the point it starts to copy again.

What is it doing exactly during this time? Is it reading through the whole file and comparing it with the source? Or is it doing something else fancy? Is there a way to get rsync to skip completed files faster? For example tell it to only check files that have a different file size or something?

share|improve this question
add comment

1 Answer

Rsync checks against mod-time and size of files by default. If you add a --checksum, then it will compare against the whole file (ie: regardless of mod-time and size matching).

share|improve this answer
    
I guess in my case the mod-time would be wrong since I don't have the -t switch? Is there a way I can make it skip the mod-time check and only check the size? –  Svish Dec 15 '10 at 19:16
2  
I think -t is default, "--size-only" will skip the mod-time check. –  Pete Ashdown Dec 15 '10 at 19:19
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.