snowcrash+rsync
2006-Nov-06 21:19 UTC
rsync'd files&dirs saved as user:group = "unknown":"unknown", NOT original ownership
hello, i've rsync installed: rsync version 2.6.9pre3 protocol version 29 Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles, inplace, no IPv6, 32-bit system inums, 64-bit internal inums i'm PULLing via rsync+ssh from BoxA to BoxB, eg: root@localhost /tmp > /usr/local/rsync/bin/rsync \ --rsh=/usr/local/openssh/bin/ssh \ --rsync-path=/usr/local/rsync/bin/rsync \ --verbose --stats \ --archive \ --super --owner --group --numeric-ids \ --recursive \ --no-implied-dirs \ --compress-level=0 \ root@server.mydomain.com:/var/test /tmp/rsync the SRC dir '/var/test", root@server /var/test > ls -al total 4 drwxr-xr-x 3 root wheel 102 Nov 6 07:05 . drwxr-xr-x 30 root wheel 1020 Nov 6 07:05 .. -rw-r--r-- 1 root wheel 165 Nov 6 07:24 test.txt IS successfully archived in "tmp" dir/file, root@localhost /tmp/rsync > ls -al total 4 drwxr-xr-x 3 unknown unknown 102 Nov 6 07:05 ./ drwxr-xr-x 3 unknown unknown 102 Nov 6 07:40 ../ -rw-r--r-- 1 unknown unknown 165 Nov 6 07:24 test.txt but, although the creation times/dates are maintained, the user:group are NOT ... changed, instead to "unknown":"unknown" what MORE/DIFFERENT needs to be set to preserve orig/source user:group? thanks.
Wayne Davison
2006-Nov-07 00:10 UTC
rsync'd files&dirs saved as user:group = "unknown":"unknown", NOT original ownership
On Mon, Nov 06, 2006 at 01:18:47PM -0800, snowcrash+rsync wrote:> but, although the creation times/dates are maintained, the user:group > are NOT ... changed, instead to "unknown":"unknown"Since you specified that users & groups should be transferred using numeric IDs, you should check to see what the IDs are on the files. Also, do a copy using 4 verbose options (-vvvv) and you will be shown what each side believes to be the file-list information. This will include the string "uid=1234" on the sending side (no matter what), but the receiving side's list will only contain this string if rsync believes that it is running in super-user mode with ownership being preserved. ..wayne..