Hi, I can't get the exclude in my Rsync statements to work quite right. I have: rsync -avz --delete-after --exclude-from=/cygdrive/d/exclude.job 10.1.1.11::ddrive /cygdrive/d/backup The exclude file contains: - /bin - /endofdaybin I want the directories above to be excluded from the job completely, however, they still seem to be copied. Do I have a problem with either the exclude or rsync syntax? Thanks. Andrew. -------------- next part -------------- HTML attachment scrubbed and removed
Your command and your exclude file are both correct. I set up a similar scenario of pulling the root directory of a module with an exclude file, and the excludes worked correctly for me; I don't know why they aren't working for you. Perhaps you could upgrade rsync if you aren't already using 2.6.8. Matt