r268 - in html/trunk: . scripts

Roel Neefs rneefs at telenet.be
Tue Jun 14 13:55:33 PDT 2005


On Tuesday 14 June 2005 21:55, Jeremy Huntwork wrote:
> jhuntwork at linuxfromscratch.org wrote:
> > Added: html/trunk/scripts/lfs-rsync.sh
> > ===================================================================
> > --- html/trunk/scripts/lfs-rsync.sh	2005-06-14 17:36:28 UTC (rev
> > 267) +++ html/trunk/scripts/lfs-rsync.sh	2005-06-14 17:42:07 UTC
> > (rev 268) @@ -0,0 +1,15 @@
> > +#!/bin/bash
> > +
> > +HTMLDIR=/var/www/htdocs/lfssite
> > +
> > +cd $HTMLDIR/timestamp
> > +oldstamp=$(cat timestamp)
> > +
> > +rsync -cr linuxfromscratch.org::lfs-timestamp .
> > +
> > +newstamp=$(cat timestamp)
> > +
> > +if [ $newstamp -gt $oldstamp ]; then
> > +	rsync -clprtz --delete linuxfromscratch.org::lfs-website $HTMLDIR
> > +fi
> > +
>
> Btw, with this script for the mirrors, is that whole timestamp test
> necessary? I thought that was something rsync did internally...

It has a small amount of bandwidth saving, rsync has a mechanism too, 
but will still check the timestamp for every file, while with this 
system it only had to check one, the difference is minimal though, not 
really worth to set up a system around it.

>
> --
> JH

-- 
	Roel Neefs



More information about the website mailing list