[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 404's



Matt Zimmerman wrote:
> 
> On Mon, Apr 30, 2001 at 02:00:18PM -0700, Adam McKenna wrote:
> > 
> > rsync --exclude "Packages*" debian/pool
> > rsync --delete debian/pool  (If old packages are even deleted)

It is probably a good idea to hold off the Sources* and Release*
files too and then at the very end run a --delete-after.  This is
aproximately what I have started using...

rsync -vaH --stats --partial --exclude Packages* \
  --exclude Sources* --exclude Release* host::debian debian/
rsync -vaH --stats --partial --delete --delete-after \
  host::debian debian/

> with this rsync implementation, will cause nearly every file
> in the archive to be checksum-compared twice instead of once.

No, rsync will only checksum files by default when they are being
sent or if the timestamp and/or file sizes do not match.  Rsync
will only checksum every file if you hand it the -c option.

The only problem with this is getting the whole file list twice
which takes some io.  I am looking at the possibility of using
cvsup (yes that sounds strange, but trust me) for mirroring
because it uses the same algorithm as rsync and is much faster
when it comes to getting the file list.  Rsync will wait until
the entire file list has been received, whereas cvsup will
immediately grab the first file on the list which saves a lot of
time in many cases.

- Doug



Reply to: