I try to copy all files from a directory to FTP using curl, with the following command:
find Users/a/Desktop/Test/ -type f -exec curl -u ftpuser:ftppass --ftp-create-dirs -T {} ftp://ftps.pmc.com/Test/{} \;
And keep getting the following error:
FIND: Parameter format not correct
Alternatively, I try this command:
find Users/a/Desktop/Test/ -name '*' -type f -exec curl -u ftpuser:ftppass -T {} ftp://ftps.pmc.com/Test/ \;
And get this error:
File not found - '*'
Please share your suggestions on how to syntax the command correctly , or other suggestions on how to accomplish the need of copying all files in a directory using curl.
Thanks
- Credit for @dogbane (Uploading all of files in my local directory with curl)