Exclude directory from --delete

Matt McCutchen matt at mattmccutchen.net
Sat Oct 3 23:15:08 MDT 2009


On Sat, 2009-10-03 at 22:06 -0700, Jeffrey Ellis wrote:
> Hm. I've tried all of the following:
> 
> rsync -avve ssh --numeric-ids --delete --ignore-errors -R
> myuser at myisp.com:/usr/home/./myuser
> myuser at myisp.com:/usr/home/./myuser/mail_boxes/
> myuser at myisp.com:/usr/home/./myuser/public_html/ /Volumes/Downloads
> 
> (no returns, only spaces here. Line breaks here are actually a single
> space).
> 
> rsync -avve ssh --numeric-ids --delete --ignore-errors -R
> \myuser at myisp.com:/usr/home/./myuser
> \myuser at myisp.com:/usr/home/./myuser/mail_boxes/
> \myuser at myisp.com:/usr/home/./myuser/public_html/ \/Volumes/Downloads
> 
> (again, no returns. Line breaks here are a single space, followed by a \).
> 
> rsync -avve ssh --numeric-ids --delete --ignore-errors -R \
> myuser at myisp.com:/usr/home/./myuser \
> myuser at myisp.com:/usr/home/./myuser/mail_boxes/ \
> myuser at myisp.com:/usr/home/./myuser/public_html/ \ /Volumes/Downloads
> 
> (no returns. Line breaks are a single space, followed by a \, then another
> single space).
> 
> rsync -avve ssh --numeric-ids --delete --ignore-errors -R \
> myuser at myisp.com:/usr/home/./myuser \
> myuser at myisp.com:/usr/home/./myuser/mail_boxes/ \
> myuser at myisp.com:/usr/home/./myuser/public_html/ \
> /Volumes/Downloads
> 
> (These are a space followed by a \ followed by a return. I'd actually prefer
> the single line).
> 
> I'm definitely in the bash shell.
> 
> These all come up with errors, so I must be doing something wrong.

Your first and last attempts should have worked.  What error do you get?

-- 
Matt



More information about the rsync mailing list