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

..chk for clean _and_ fresh mirror, was: anonftpsync: waiting for clean archive?



On Fri, 2 May 2008 14:22:53 +0200, Václav wrote in message 
<[🔎] 20080502122253.GA19123@bobek.pm.i.cz>:

> Hi,
> what about to include waiting for mirrored archive to be clean (no
> update in progress state)?
> Something like:
> 
> MAX_RETRY=8
> SLEEP_TIME=15m
> 
> ...
> let i=0
> while rsync
> "rsync://$RSYNC_HOST/$RSYNC_DIR/Archive-Update-in-Progress-$RSYNC_HOST"
> &>/dev/null \ && test $i -lt $MAX_RETRY do
>     sleep $SLEEP_TIME
>     let i=i+1
> done

..don't we _first_ wanna check _whether_ the mirror is fresh?  
And _thenafter_ chk the Archive-Update-in-Progress-$RSYNC_HOST 
file to confirm a clean mirror?

..e.g. like wget -c http://$RSYNC_HOST/$RSYNC_DIR/project/trace/  
or some such and then chk|cmp|diff|etc the trace/* for freshness?

..there is an rsync way, how?

-- 
..med vennlig hilsen = with Kind Regards from Arnt... ;o)
...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three: 
  best case, worst case, and just in case.


Reply to: