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.

Is there a way for me to rsync two directories comparing only filenames (and not file size, date modified, or any other criteria)?

share|improve this question

2 Answers 2

up vote 4 down vote accepted

From the rsync(1) man page:

        --ignore-existing       skip updating files that exist on receiver
share|improve this answer

The --ignore-times option should do that.

From man rsync:

-I, --ignore-times
Normally rsync will skip any files that are already the same size and have the same modification timestamp. This option turns off this “quick check” behavior, causing all files to be updated.

share|improve this answer

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.