Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 7 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.