rsync using wildcard (*) character

Meeaz zaeem.masood at gmail.com
Thu May 29 18:00:16 GMT 2008


Hi Matt,

Thanks for the reply. Can you quote an example of "include" rule please?
Rgds

Matt McCutchen-7 wrote:
> 
> On Thu, 2008-05-29 at 06:57 -0700, Meeaz wrote:
>> We are using rsync version 2.6.3 and do not intend to upgrade to the
>> latest version. I am using the following command:- rsync -arv
>> --files-from=./myfile /app/dd/gesb user at rrslx905:/var/log/hhsb I want
>> to mention the file list in the "myfile" as follows:- ABCD/cdef/xyz*
>> (Considering there are more than one files existing with names
>> beginning with xyz) Once I try to transfer files using rsync using the
>> command above, I get an error saying rsync: link_stat "ABCD/cdef/xyz*"
>> failed: No such file or directory (2) Shouldnt it read all the files
>> with names beginning with xyz and start transferring? Please help 
> 
> On Thu, 2008-05-29 at 15:10 +0100, Steven Hartland wrote: 
>> the lines in the file specified to --files-from are actual file names
>> and not patterns so if you want all files starting with xyz then you
>> must specify them all.
> 
> Steve is right.  Meeaz, if you don't want to list all the files, you
> could select the files you want using include/exclude rules (which
> support wildcards) instead of a --files-from file.
> 
> Matt
> 
>  
> -- 
> Please use reply-all for most replies to avoid omitting the mailing list.
> To unsubscribe or change options:
> https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
> 

-- 
View this message in context: http://www.nabble.com/rsync-using-wildcard-%28*%29-character-tp17536197p17542223.html
Sent from the Samba - rsync mailing list archive at Nabble.com.



More information about the rsync mailing list