On Tue, Aug 13, 2013 at 9:40 AM, Sherin A <sherin...@gmail.com> wrote:

> I am  doing rsync from  root@10.0.0.10/home/foo  to
> storageuser@10.0.0.20/home/**storageuser/dailybackup/foo<http://storageuser@10.0.0.20/home/storageuser/dailybackup/foo>
>  over ssh (no role for -H) , so  the  storage files must be under the
> ownership of  storageuser  and not the  original owner
>

You should use the --fake-super option on the remote rsync so that it saves
& restores original ownership using xattrs (the manpage describes the
syntax you'd need, or there is a daemon option if an rsync daemon is
involved).  That way you get proper, original-owner restores.

PS : if any one interested in making a patch with an additional option for
> rsync for  excluding hardlinks with   -links +1 links , please help me


This is not something I'll be looking into, FYI.

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