[Cialug] rsync --recursive *.foo
Dave Weis
djweis at internetsolver.com
Wed Aug 10 13:41:12 CDT 2005
I thought there was also --include besides --exclude
On Wed, 10 Aug 2005, Jon Clemons wrote:
> Try putting something like below. It has been my experience and understanding
> rsync
> will only do recursive when you tell it to.
>
> rsync -avzr *.foo -e ssh user at host:/location ./
>
>
>
> ----- Original Message ----- From: "David Champion" <dave at visionary.com>
> To: "'Central Iowa Linux Users Group'" <cialug at cialug.org>
> Sent: Wednesday, August 10, 2005 12:26 PM
> Subject: [Cialug] rsync --recursive *.foo
>
>
>> I want to do an rsync like so:
>>
>> rsync -avze ssh --recursive *.foo user at host:/location
>>
>> (IIRC, recursive is the default behavior, just putting it there to
>> explicitly show that I really want it to be recursive).
>>
>> The problem with this is because of the *.foo wildcard, it only uploads
>> *.foo in the current directory, and not any sub directories because they're
>> not named *.foo.
>>
>> I've had the same problem with tar. Is there something simple I'm
>> overlooking here? It seems stupid to me that the wildcard applies to both
>> the files, and the directory names.
>>
>> My work-around is to change change my rsync script to have several
>> "--exclude *.bar" parameters, which is a pain.
>>
>> -dc
>>
>> _______________________________________________
>> Cialug mailing list
>> Cialug at cialug.org
>> http://cialug.org/mailman/listinfo/cialug
>>
>
>
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
>
--
Dave Weis
djweis at internetsolver.com
http://www.internetsolver.com/
More information about the Cialug
mailing list