[gull] Synchroniser des répertoire par ftp

Erik Rossen rossen at linux-gull.ch
Thu Jul 3 18:01:50 CEST 2008


On Thu, Jul 03, 2008 at 05:19:40PM +0200, Leopoldo Ghielmetti wrote:
> Il giorno gio, 03/07/2008 alle 15.07 +0200, Erik Rossen ha scritto:
> > T'es certain?  De "man rsync" je vois:
> > 
> > 	Normally rsync will skip any files that are already the same
> > 	size and have the same modification time-stamp.
> 
> Oui effectivement c'est bien ce qu'il fait, mais le FS FAT stocke la
> date avec une precision de 30 secondes, donc le timestamp n'est jamais
> bon. :-(

Et encore to "man rsync":

	--modify-window
		When  comparing  two  timestamps,  rsync treats the
		timestamps as being equal if they differ by no more than
		the modify-window value.  This is normally 0 (for an
		exact match), but you may find it useful to set this to
		a larger value in some situations.  In particular, when
		transferring to or from an MS Windows FAT filesystem
		(which represents times with a 2-second  resolution),
		--modify-window=1 is useful (allowing times to differ by
		up to 1 second).

On dirait qu'ils ont pensé a tout...

-- 
Erik Rossen                               OpenPGP key: 2935D0B9
rossen at rossen.ch                          If you do not know what
http://people.linux-gull.ch/rossen        to do, start with RTFM.



More information about the gull mailing list