Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I have around 7 or 8 servers, which I rsync down to my local LAN each night.

All of these rsync jobs use a common excludes.txt, to filter out files or directories I dont want mirroring.

Now, the excludes.txt contains some dirs which are common to all servers, but also a lot of directories (and patterns) which are specific to an individual server. Of course, they are all intermingled together and uncommented.

Im trying to get a handle on all of this, and move all the server specific patterns into separate files, specific for each individual server.

Im not yet sure how best to go about this, as from what I can see from the man page, rsync doesn't provide any options to display which files/dirs it has ignored.

Any suggestions please?

share|improve this question
up vote 2 down vote accepted

Run rsync with extra verbosity:

rsync -vv

This will show why each file is being included/excluded.

share|improve this answer
excellent, thanks! – carpii Sep 6 '12 at 15:29
 Rsync --list-only 

list the files instead of copying them this will let you see which files are going to be copied.

share|improve this answer

Your Answer


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.