This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: NT-Authority/System will be file owner after rsync restore


Matthias Meyer wrote:
Hi,

I try to backup WindowsXP as well as Vista to an Linux server.
I use backuppc as backup-server, cygwin as client environment and rsync for
transport.
The backup seems to work well but the restore not. The restored files will
have "NT-Authority/System" as new owner, independend from their old owner
or if the file not exist before restore.
My rsyncd.conf:
 max connections = 6
 log file = /var/log/backup-service.log
 read only = false
 write only = false
 transfer logging = no
 list = false
 max verbosity = 6
 address = 127.0.0.1

[C]
 path = /cygdrive/c/

The rsync arguments by backup (extracted from backuppc logfile):
Sending args:
--server --sender --numeric-ids --perms --owner --group -D
--links --hard-links --times --block-size=2048 --recursive --one-file-system --bwlimit=512

The rsync logfile from restore (extracted from backuppc logfile):
Sending args:
--server --numeric-ids --perms --super --owner --group -D
--links --hard-links --times --block-size=2048 --relative --ignore-times --recursive
C/etc/
Sending /etc/account.sav (remote=/account.sav) type = 0
  restore   700 4294967295/4294967295          47 /etc/account.sav
Done: 1 files, 47 bytes

Maybee the error based on the backup because
The rsync logfile from backupextracted from backuppc logfile):
Connected to module C
Sending args:
--server --sender --numeric-ids --perms --super --owner --group -D
--links --hard-links --times --block-size=2048 --recursive --one-file-system --bwlimit=512 -vv
--ignore-times
 pool     700 4294967295/4294967295          47 etc/account.sav

I would believe that 4294967295/4294967295 is the uid/gid.

Could be. I don't know much about rsync. However, if that is the uid/gid,
it maps to -1 (don't know why it's represented as a 32-bit value though.)
Anyway, if you and I are right, then my WAG is that your '/etc/passwd'
and/or '/etc/group' file(s) are wrong.
See <http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-ids> for more details on Cygwin special IDs.


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]