I have been trying to get wget to download all files to a specific directory. I tried the -O option but I get

/home/user/xml/: Is a directory

This is what I have so far

wget -m --user=user --password=pass -r -l1 --no-parent -A.rss ftp://localhost/public_html/

I need to download all .rss files from ftp to a specific directory on my secondary server.


The -P option downloaded all the files to the specific directory however it created 2 new directories inside the target directory.

So the files went into /home/user/xml/

So I tried it with the -P option and the -nd option and it worked the way I needed it to.

The final code looks like this

wget -m -nd --user=user --password=password -r -l1 --no-parent -A.rss ftp://localhost/public_html/ -P /home/user/Desktop/xml/

use -P option.

wget -P /home/user/directory_you_want http:url_you_are_downloading_from

See more at : Stackoverflow page

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.