delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/09/23/08:25:35

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4ABA13AC.2090509@gmx.com>
Date: Wed, 23 Sep 2009 14:25:16 +0200
From: Andreas Heinlein <aheinlein AT gmx DOT com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090821)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Rsync and Alternate Data Streams
References: <4ABA07B6 DOT 6030202 AT gmx DOT com> <20090923120812 DOT GZ20981 AT calimero DOT vinschen DOT de>
In-Reply-To: <20090923120812.GZ20981@calimero.vinschen.de>
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

Corinna Vinschen schrieb:
> On Sep 23 13:34, Andreas Heinlein wrote:
>   
>> Hello,
>>
>> no, I do *not* want to transfer ADS with rsync, that would be an FAQ ;-)
>>
>> But I have setup rsyncd on a windows host using cygwin. This machine
>> hosts files with ADS which are created by Antivirus software and change
>> frequently. I do not need to save these ADS, but somehow they seem to
>> lead rsync to believe the file has changed and transfer it again. Since
>> we are doing multi-generation backups with rsync and hard links (using
>> the --link-dest option), this greatly increases space requirements. I
>> compared old and new files, and they are exactly identical in size,
>> name, path, permissions (as UNIX/cygwin sees them), they have the same
>> md5sum.
>>
>> I have not yet tried running rsync with the checksum option, but since
>> we are backing up > 200.000 files, that would likely take much too long.
>> Do you have any ideas how to change this behaviour?
>>     
>
> Look for the rsync --size-only option.  Probably the Antivirus stuff
> changes the modification date, which is usually used by rsync for a
> quick decision what has changed.
>
> Alternatively use another Antivirus software which does not modify the
> files on disk.
>
>
> Corinna
Hello,

thanks for your reply. It turned out I had not checked closely enough. I
found out it has nothing to do with ADS, but with file ownership. Some
of the files in question have UID and GID 4294967295 (aka 2^32-1),
though they are owned by a valid Domain User. Rsync on the UNIX side
sets the UID to 0 for these files, I overlooked this. I can work around
this now by not preserving owner and group, which is not necessary in
this case.
But I still wonder where this comes from.

Bye,
Andreas

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

- Raw text -


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