Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] [TLUG] Rsync exclusion question
- Date: Wed, 10 Jun 2009 14:51:20 +0100
- From: Doug McLean <dmclean635@example.com>
- Subject: Re: [tlug] [TLUG] Rsync exclusion question
- References: <956ae5a90906100208k6ec1aeebnebb17f7534b8183a@example.com> <11380cb60906100242w7a13b869j5b4d3315a4125f53@example.com> <956ae5a90906100308l215adc81m1dcfbb54dc826472@example.com> <d8fcc0800906100527p59d4d548v42999d96e7ad066c@example.com> <956ae5a90906100547i2e610cct42b8b075c50b6d6@example.com> <d8fcc0800906100614s4c909d0fj8091e3bfe9926c18@example.com>
On Wed, Jun 10, 2009 at 2:14 PM, Josh Glover<jmglov@example.com> wrote: > 2009/6/10 Doug McLean <dmclean635@example.com>: > >> Sorry, are those pound signs you're using there? If so, why does that >> help resolve the issue? > > Well, those excludes are just for Emacs backup files. You'd want: > > rsync -av --exclude '*.lease' ... > > The problem with your command is almost certainly that you used > double-quotes, which meant that the shell will expand the *, thus > rsync cannot glob. Simply using single quotes instead or escaping the > * should sort it. > > -- > Cheers, > Josh Thanks Josh, I am trying that now. I will give it about 24-48 hours burn in to confirm that fixed the issue. Initial tests showed that single-quotes work well enough. :) I did try the exclude-file earlier, and that too seems to have worked, but in my case, I will only ever need to exclude .lease files, so the external file option is not as elegant. If I had multiple files or types to exclude, that solution seems to be more ideal (thank you Mike). So, if I understand right, the shell expanded the * before rsync had a chance to interpret the command, correct? If so, that would explain why it's not seeing any files to exclude. Thanks much! I owe you one. ;) -- Doug McLean Blog: http://nihonshukyo.wordpress.com/
- References:
- [tlug] [TLUG] Rsync exclusion question
- From: Doug McLean
- Re: [tlug] [TLUG] Rsync exclusion question
- From: Clemens Schwaighofer
- Re: [tlug] [TLUG] Rsync exclusion question
- From: Doug McLean
- Re: [tlug] [TLUG] Rsync exclusion question
- From: Josh Glover
- Re: [tlug] [TLUG] Rsync exclusion question
- From: Doug McLean
- Re: [tlug] [TLUG] Rsync exclusion question
- From: Josh Glover
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] (OT) The enigma of Japan
- Next by Date: Re: [tlug] (OT) The enigma of Japan
- Previous by thread: Re: [tlug] [TLUG] Rsync exclusion question
- Next by thread: Re: [tlug] Rsync exclusion question
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links