[TUHS] Mirror with link

Derrik Walker lorddoomicus at mac.com
Fri Oct 14 04:51:30 AEST 2011


I like shell scripts for hard to remember things like that.

Call it wget_mirror.sh or something like that:

#!/bin/bash

if [ $# -ne 1 ] ; then echo ERRR; exit 1 ; else url=$1 ; fi

wget -c -m -k -np -e robots=off $url


( that was off the top of my head and has NOT been tested ... it might have a typo or two :)

- Derrik

On Oct 13, 2011, at 02:43 PM, Larry McVoy <lm at bitmover.com> wrote:

> On Thu, Oct 13, 2011 at 08:37:27PM +0200, Jose R. Valverde wrote:
> > Just for the record.
> >
> > The correct way to mirror a site with links corrected is
> >
> > wget -c -m -k -np -e robots=off URL
> >
> > Seems most people have problem remembering this incantation.
>
> Wouldn't it be nice if it were
>
> wget --mirror URL
>
> ?
> -- 
> ---
> Larry McVoy lm at bitmover.com http://www.bitkeeper.com
> _______________________________________________
> TUHS mailing list
> TUHS at minnie.tuhs.org
> https://minnie.tuhs.org/mailman/listinfo/tuhs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20111013/29ca20ef/attachment.html>


More information about the TUHS mailing list