Proper --exclude= syntax?

Dan Kressin dkressin at yahoo.com
Wed Jan 8 22:19:02 EST 2003


I'm currently syncing the home directories on two boxes with the syntax:

dest-host# rsync -av -e "ssh" --delete --progress source-host:/home/ /home/

That's working well.  Now I want to exclude /home/httpd/* from the process. 
(I don't want web changes on one box to affect the other box.)  Which of the
following is the best/correct one to use?

1) --exclude=/home/httpd/*
2) --exclude=/home/httpd/
3) --exclude=/home/httpd
4) --exclude=httpd/*
5) --exclude=httpd/
6) --exclude=httpd

Thanks!

-Dan

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



More information about the rsync mailing list