[Ilugc] rsync changes owner while restoring

  • From: member+ilugc@xxxxxxxxxxx (Kingsly John)
  • Date: Fri, 23 Nov 2012 20:39:38 +0530

+++ Balasubramaniam Natarajan [2012-11-23 09:34:04]:

I have two boxes Bodhidarmar -> server and backup (as backup_server) , I am
trying to backup the /var/log/ folder from the server on to the backup
machine.  What I found is while trying to restore the files from the backup
machine to the server rsync is changing the owner.  I am not sure why this
happens even when I use the -a switch while using rsync.

It is not changing the owner. At the filesystem level ownership is in terms
of UID/GID etc. and not usernames.

If your users are not in sync across different machines (ie., same UID but
different usernames) Obviously the ownership will not appear correct.

In your case sebackup and aravind share the same UID on different machines.

Kingsly

-- 
---------------------------------------------------------------------------
     Kingsly At Users Dot SourceForge Dot Net  -- http://kingsly.org/
---------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : 
http://www.ae.iitm.ac.in/pipermail/ilugc/attachments/20121123/9d0d0c6c/attachment.bin
 

Other related posts: