How to keep owner on destination file

Wayne Davison wayned at
Thu Oct 26 15:36:19 GMT 2006

On Thu, Oct 26, 2006 at 12:14:11PM +0200, Janning Vygen wrote:
> I run rsync as root to get the permission to overwrite those files:
>      # rsync bar/ foo/

You'd need to use --inplace to avoid changing the current owner.  This
has the downside that the file is briefly in-transition between the old
state and the new state (unlike the normal transfer, where the new takes
the place of the old instantly), but programs like "cp" update files in
this manner, so it usually doesn't cause a problem.


More information about the rsync mailing list