r268 - in html/trunk: . scripts

Jeremy Huntwork jhuntwork at linuxfromscratch.org
Tue Jun 14 12:55:26 PDT 2005


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

--
JH




More information about the website mailing list