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

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



On Thu, 8 May 2008 16:08:40 +0200, Rafał wrote in message 
<200805081608.40994.debian@rafal.wozniak.name>:

> > ..there is an rsync way, how?
> 
> I use this method:
> 
> [ -e $tmp_file ] && rm $tmp_file
> 
> rsync --timeout=3600 --times \
> rsync://$RSYNC_HOST/$RSYNC_DIR/$RSYNC_DIR_TRACE/$RSYNC_HOST_TRACE \
> $tmp_file >/dev/null 2>/dev/null
> 
> [ -e $tmp_file ] || { exit 0; }
> [ $tmp_file -nt $TO/$RSYNC_DIR_TRACE/$RSYNC_HOST_TRACE ] || { exit
> 0; }

..thanks, Rafał.  :o)

..which is easier on the up-stream mirror, the wget way 
or the rsync way?

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