On Fri, 2008-05-30 at 08:32 -0700, Meeaz wrote:
> All files are transferring now. It however shows an error as follows:-
> 
> rsync: failed to set permissions on "/var/log/Wlog/TEST/.": Operation not
> permitted (1)

This is a potential drawback of the include/exclude approach: the root
source directory /opt/bea/test/ is in the file list, so rsync is trying
to copy its attributes to the destination directory /var/log/Wlog/TEST/
and failing, presumably because the receiving rsync doesn't
own /var/log/Wlog/TEST/ and isn't root.  If you are fine with rsync
copying the attributes, you could make it possible by changing the
ownership of /var/log/Wlog/TEST/ .

Otherwise, there's nothing you can do under the include/exclude approach
but ignore that error message and the exit code 23, but then you risk
missing other, more significant errors.  So I'm afraid I may have led
you wrong.  Another approach is to use --files-from but have a script
expand the globs in your files-from file before passing it to rsync.
The attached Perl script "ff-expand" does this.  Here's how you would
modify your original command to use it (note, it needs to know the
source dir):

ff-expand /app/dd/gesb myfile | rsync -arv --files-from=- /app/dd/gesb [EMAIL 
PROTECTED]:/var/log/hhsb

Or if you find this bash syntax more appealing (I do):

rsync -arv --files-from=<(ff-expand /app/dd/gesb myfile) /app/dd/gesb [EMAIL 
PROTECTED]:/var/log/hhsb

Matt

Attachment: ff-expand
Description: Perl program

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
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

Reply via email to