[mirror-admin] master server sync stats and recommendations

Jesse Keating jkeating at redhat.com
Wed Apr 22 11:15:25 EDT 2009


On Wed, 2009-04-22 at 17:22 +0300, Axel Thimm wrote:
> With pure rsync I meant protocol-wise, of course we all wrap our
> scripts around it one way or the other.
> 
> But as a minimal rsync & sh implementation one could have
> 
> rsync rsync://master/module/.lastupdated /tmp/somefile
> diff /tmp/somefile /storage/my/local/mirror/.lastupdated > /dev/null \
>   && rm -f /tmp/somefile && exit
> <Full rsync command>

Um, why don't you use the rsync protocol to see if it would update the
fullfilelist?  Rsync itself can tell you rather quickly if that file has
changed, and then you're just doing a quick poke on a single file before
turning it loose upon the rest of the filesystem.  No need to actually
pull it down and do any diffing, just see if rsync /would/ download it.

-- 
Jesse Keating
Fedora -- Freedom² is a feature!
identi.ca: http://identi.ca/jkeating
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://mail.ale.org/pipermail/mirror-admin/attachments/20090422/b7d75618/attachment.bin 
-------------- next part --------------
--


More information about the Mirror-admin mailing list