Re: ..chk for clean _and_ fresh mirror, was: anonftpsync: waiting for clean archive?
On Wed, 14 May 2008 13:22:56 +0200, Rafał wrote in message
<[🔎] 200805141322.56821.debian@rafal.wozniak.name>:
> 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,
..for you and me, I agree, but for the up-stream mirror?
> because you have everything variables
> already set (sometimes main path at www and rsync may differ).
>
>
--
..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: