[Cialug] rsync --recursive *.foo

Jerry Weida jweida at gmail.com
Wed Aug 10 12:36:36 CDT 2005


Does rsync support the -@ or the - for the files to include. If so, you 
could do something like

find . -type f -name '*.foo' -depth -print | rsync -avze ssh --recursive - 
user at host:/location

Sorry, not very familiar with rsync.

On 8/10/05, David Champion <dave at visionary.com> wrote:
> 
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cialug.org/pipermail/cialug/attachments/20050810/50a7946f/attachment.html


More information about the Cialug mailing list