Restoring Backup user files with preserving UID/GID
LuKreme
kremels at kreme.com
Fri Nov 20 19:51:02 MST 2009
I backed up all the user files on machine using rsync, and I have a directory on my backup machine that looks like:
0 drwxr-xr-x 26 1017 1018 884 Nov 20 08:03 bea
0 drwxr-xr-x 25 1039 1040 850 Aug 21 03:58 charles
0 drwxr-xr-x 10 1033 1034 340 Mar 1 2004 deliv
0 drwxr-xr-x 11 1034 1035 374 Mar 12 2004 dlucas
0 drwxr-xr-x 31 1012 1013 1054 Nov 5 08:28 etay
0 drwxr-xr-x 27 1027 1028 918 May 20 2009 hankz
0 drwxr-xr-x 12 1028 1029 408 Apr 3 2009 holly
Now I want to transfer all these files to the new machine, but preserving the UID/GID combinations.
I am assuming that I need to (temporarily) set the rsync daemon on the new machine to run as root. Is that as simple as setting the rsyncd.conf
uid = root
gid = wheel
or is there anything else I need to do?
My current file looks like this:
uid = nobody
gid = nobody
use chroot = no
max connections = 4
syslog facility = local5
[root]
path = /
comment = root
auth users = root
read only = no
secrets file = /usr/local/etc/rsyncd.secrets
--
I draw the line at 7 unreturned phone calls.
More information about the rsync
mailing list