delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/12/07/18:18:51

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Matthias Meyer <Matthias DOT Meyer AT gmx DOT li>
Subject: rsync restore the file owner but rsyncd do it not
Date: Mon, 08 Dec 2008 00:17:48 +0100
Lines: 42
Message-ID: <ghhlj1$1tb$1@ger.gmane.org>
Reply-To: Matthias DOT Meyer AT gmx DOT li
Mime-Version: 1.0
User-Agent: KNode/0.10.9
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi all,

I want use rsync to backup a windows XP professional client to my linux server.
I've installed cygwin/rsync on windows and start with a local windows backup.

rsync -aA --super /cygdrive/c/bootfont.bin /cygdrive/c/backup
copies the file, but only the attributes "RA" and not "the original "RHSA".
rsync -aA --super /cygdrive/c/backup/bootfont.bin /cygdrive/c/data
restore the file as it was backed up. With the attributes "RA"

My first questions:
What the reason for not copying the attributes "HS"?
If I try "-X" I get an error "rsync: extended attributes are not supported on this client"

Than I install rsync as a windows service:
cygrunsrv -I rsyncd -e -n -t auto -p /bin/rsync -a "--daemon --no-detach --config=/etc/rsyncd.conf"
cygrunsrv -S rsyncd

...and try a local backup:
rsync -aA --super localhost::BACKUP/bootfont.bin /cygdrive/c/backup
copies the file, but also only the attributes "RA" and not "the original "RHSA".
and the appropriate restore:
rsync -aA --super /cygdrive/c/backup/bootfont.bin localhost::BACKUP
rsync: chown ".bootfont.bin.KYyS5D" (in BACKUP) failed: Invalid argument (22)

and the file will be restored with the owner of the rsyncd process:
ls -al shows - SYSTEM ????????
ls -an shows - 18 4294967295

bootfont.bin is originaly owned by:
ls -al shows - Administratoren ???????? (german XP ;-))
ls -an shows - 544 4294967295

The same behavior occurs with a file test.txt which is owned by:
ls -al shows - user mkgroup
ls -an shows - 1006 513

What is going wrong?
Thanks
Matthias
-- 
Don't panic


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019