X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Matthias Meyer Subject: rsync restore the file owner but rsyncd do it not Date: Mon, 08 Dec 2008 00:17:48 +0100 Lines: 42 Message-ID: Reply-To: Matthias DOT Meyer AT gmx DOT li Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.10.9 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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/