Navigation
Voterbox
NoLoveFromGoogle! Wget --no-parent (-np) option doesn't work
Fri, 2007-06-15 23:24 — drks
Ok.... so, here I am trying to mirror just a sub-directory of a website. No big deal right... just use the '--no-parent' option to wget (keeps it from mirroring anything above the specified URL). Well... over and over and over I could not figure out why the -np option didn't work.
This is what I was doing:
wget -r --no-parent -nH http://www.example.com/path/to/directory
No matter what I did... wget would mirror 'http://www.example.com' and everything under it. The fix??? You need the trailing slash at the end:
wget -r --no-parent -nH http://www.example.com/path/to/directory/
Talk about being just a tad frustrated!