delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/09/14/14:46:40

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <2ce9650b0809141145y7834eeease3b0282d68a8a6a3@mail.gmail.com>
Date: Sun, 14 Sep 2008 19:45:46 +0100
From: "Chris January" <chris AT atomice DOT net>
To: cygwin AT cygwin DOT com
Subject: Re: Rsync and NTFS -> FAT32 problem
In-Reply-To: <gah2m4$qv0$1@ger.gmane.org>
MIME-Version: 1.0
References: <gah2m4$qv0$1 AT ger DOT gmane DOT org>
X-Google-Sender-Auth: f6ffb37226d96ac7
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Sat, Sep 13, 2008 at 8:01 PM, Richard Ivarson wrote:
> Hello,
>
> I use Rsync successully to sync, for example, a NTFS formatted WinXP PC
> (where Cygwin's Rsync runs) with a Linux PC, and to sync the Win-PC with
> a <n> GByte USB memory stick.
>
> When the memory stick is formatted to NTFS all works fine (exact command see
> below please).
> But since I formatted the memory stick to FAT32 because it's more usuable on
> Linux PCs, suddenly the very same Rsync command shows different results! It
> copies many files from the Win-PC to the USB stick which already are up to
> date...
> I couldn't figure out what these files have in common... or why Rsync would
> get wrong information from the FAT32 filesystem...
>
> In the end I tried the Rsync parameter "--checksum" which solved the
> problem,
> but slows down the whole thing a lot.
> Then I found the "--update" parameter which does the trick, too. OK, so it
> prints many directories which "--checksum" did not print, but ... it's
> rather
> optical.
>
> The command is :
> * rsync --delete --update --relative --recursive --times --progress
> Sourcefolder/ /cygdrive/u/Destinationfolder
>
> Using parameters like "--owner" or "-permission" didn't help.
>
> Does anybody know what is the problem with FAT32 (and Rsync using it) ?
> Thanks.

FAT32 only has 2 second file modification time granularity. You need
to pass the --modify-window option to rsync.

Chris

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