I am trying to download all subfolders and files from web page by using wget

wget -r -np -nH --cut-dirs=3 --include-directories="entry_*" http://test.test/root/

I need only directories that starts with "entry_" So by executing command I've provided above I am able to get only index.html file. Is something wrong with my command?


Okay, so I found a problem. I did not include full path for include-directories flag. So command should look like

wget -r -np -nH --cut-dirs=3 --include-directories="root/entry_*" http://test.test/root/
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.