[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?



Sunday 11 May 2008 01:46:47 Arnt Karlsen napisał(a):
> 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?

I think rsync is easier, because you have everything variables already set 
(sometimes main path at www and rsync may differ).


Reply to: