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

anonftpsync: waiting for clean archive?



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

Regards
-- 
Zito


Reply to: