rsync using wildcard (*) character
matt at mattmccutchen.net
Thu May 29 14:34:28 GMT 2008
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/rsync/attachments/20080529/2c263a6b/attachment.bin
More information about the rsync