Using wget to mirror just part of a web site?
Garrett Cooper
youshi10 at u.washington.edu
Sun Oct 1 05:14:21 PDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
stan wrote:
> I looked at the mirror port, and it seemded complex to set up,
> and looks like it is not bieng manitaned any more as teh link
> reference in it's man page is dead.
>
> So I figure I can use wget to mirror the web sties I need to mirror.
>
> I have it mostly working I'm suing something like:
>
> wget -m -nH -r http://us.archive.ubuntu.com/ubuntu/dists -o /var/log/${site}_mirror.log
>
> But that gets the whole sit. What I want to do is just start at the
> toop of the "ubuntu/dists" tree.
>
> What am I doing wrong?
>
I think this is the option you want:
- From recursive section of wget(1):
- -np
- --no-parent
Do not ever ascend to the parent directory when retrieving
recursively. This is a useful option, since it guarantees
that only the files below a certain hierarchy will be
downloaded.
- -Garrett
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFH7EK6CkrZkzMC68RAgqnAJ95BXcnqL7+Yo2UZq2ZgJu4BKay2gCcCocY
b2Dy751/epG44xu8ZUMc0Ks=
=HVLW
-----END PGP SIGNATURE-----
More information about the freebsd-questions
mailing list