Voterbox

NoLoveFromGoogle! Wget --no-parent (-np) option doesn't work

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!

All content generally available under the GPL unless otherwise noted.
5dollarwhitebox.org is not responsible in anyway for actions performed based on information found on this site.

Powered by Drupal - Design by Artinet