Need a way to download * (wildcard) via ftp in a script

Forum thread started by Dane on Wed, 2012-11-07 17:43

Here's a real need of mine, and I haven't figured out how to do it on my own.

Is there ANY way to do a wildcard download via FTP from the command line? I've looked at ncftpget and wget and neither seems to have anything that works for me. Example of what I need:

Log into X IP address
using username Y and password Z
and download * (all)

Thanks,

Dane

Comments

Re: Need a way to download * (wildcard) via ftp in a script

wget --http-user=Y --http-password=Z http://X/ -r

This asumes that the server shows a directory listing when you use the IP address in a web browser.

Re: Need a way to download * (wildcard) via ftp in a script

See some examples here :