Hi-- Ok. I?ve now run into the next thing I can?t find in man, and this time, I googled as well: --exclude /afs/\* I thought you could just say: --exclude /afs/* or even --exclude /afs/ To exclude the entire afs directory. Can you explain what the purpose of the \ and * are here? Thanks again :) All My Best, Jeffrey on 8/6/06 5:00 AM, rsync-request@lists.samba.org at rsync-request@lists.samba.org wrote:> Send rsync mailing list submissions to > rsync@lists.samba.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.samba.org/mailman/listinfo/rsync > or, via email, send a message with subject or body 'help' to > rsync-request@lists.samba.org > > You can reach the person managing the list at > rsync-owner@lists.samba.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of rsync digest..." > > To unsubscribe or change options: > https://lists.samba.org/mailman/listinfo/rsync > Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html > > --------------------------------------- > > Today's Topics: > > 1. DO NOT REPLY [Bug 4001] New: man page should document > --server flag and SSH forced command scenario (samba-bugs@samba.org) > 2. Newbie: What does -e do? (Jeffrey Ellis) > 3. Re: Newbie: What does -e do? (Jan-Benedict Glaw) > 4. Re: Newbie: What does -e do? (Eberhard Moenkeberg) > 5. DO NOT REPLY [Bug 4001] man page should document --server > flag and SSH forced command scenario (samba-bugs@samba.org) > 6. Re: Newbie: What does -e do? (Jeffrey Ellis) > 7. Re: Newbie: What does -e do? (Jeffrey Ellis) > 8. Re: Newbie: What does -e do? (Jan-Benedict Glaw) > 9. DO NOT REPLY [Bug 4001] man page should document --server > flag and SSH forced command scenario (samba-bugs@samba.org) > 10. DO NOT REPLY [Bug 1890] TLS for rsync protocol > (samba-bugs@samba.org) > > _______________________________________ > Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html > > rsync mailing list > rsync@lists.samba.org > https://lists.samba.org/mailman/listinfo/rsync-------------- next part -------------- HTML attachment scrubbed and removed
On 8/6/06, Jeffrey Ellis <jellis@dhnet.us> wrote:> > Hi-- > > Ok. I've now run into the next thing I can't find in man, and this time, I > googled as well: > > --exclude /afs/\* > > I thought you could just say: > > --exclude /afs/* or even --exclude /afs/ > > To exclude the entire afs directory. Can you explain what the purpose of > the \ and * are here? > > Thanks again :) > > All My Best, > JeffreyThe escape character has nothing to do with rsync, it is supposed to keep the shell from globbing. You can usually encapsulate strings within quotes to acheive the same effect as using escape characters (in borne shell, anyway). --exclude /afs/\* is the same as --exclude "/afs/*" For an explanation of the asterisk, please see the INCLUDE/EXCLUDE PATTERN RULES section in the rsync man page. It explains them better than I ever could in an email and also includes some real world examples and their meaning. -- Aaron W Morris (decep) <aaronwmorris@gmail.com>
> On 8/6/06, Jeffrey Ellis <jellis@dhnet.us> wrote: >> > >> > Hi-- >> > >> > Ok. I've now run into the next thing I can't find in man, and this time, I >> > googled as well: >> > >> > --exclude /afs/\* >> > >> > I thought you could just say: >> > >> > --exclude /afs/* or even --exclude /afs/ >> > >> > To exclude the entire afs directory. Can you explain what the purpose of >> > the \ and * are here? >> > >> > Thanks again :) >> > >> > All My Best, >> > Jeffrey > > The escape character has nothing to do with rsync, it is supposed to > keep the shell from globbing. You can usually encapsulate strings > within quotes to acheive the same effect as using escape characters > (in borne shell, anyway). > > --exclude /afs/\* > > is the same as > > --exclude "/afs/*" > > For an explanation of the asterisk, please see the INCLUDE/EXCLUDE > PATTERN RULES section in the rsync man page. It explains them better > than I ever could in an email and also includes some real world > examples and their meaning. > > -- > Aaron W Morris (decep) <aaronwmorris@gmail.com> > > Hi, Aaron-- > > I think the same use of quotes holds true in bash as well, IIRC. I actually > had read the INCLUDE/EXCLUDE > PATTERN RULES section, but I guess I was confused by another usage I had read > earlier. > > Thanks again :) > > All My Best, > Jeffrey-------------- next part -------------- HTML attachment scrubbed and removed