I am using cURL to try to download all files in a certain directory.
Here's what my list of files looks like:
I have tried to do in bash script: iiumlabs.[].csv.pgp
and iiumlabs*
and I guess cURL is not big on wildcards.
curl -u login:pass ftp.myftpsite.com/iiumlabs* -O
Question: How do I download this directory of files using cURL?
Best Answer
Curl does not support recursive download. Use
wget --mirror --no-parent [URL]
EDIT: For SSH, from the man page of curl:
Get a file from an SSH server using SFTP:
Get a file from an SSH server using SCP using a private key to authenticate: