Uploading all of files in my local directory with curl

后端 未结 2 354
醉酒成梦
醉酒成梦 2020-12-07 21:41

I want to upload all the files in one directory, and I know how to upload one file using curl like this :

curl -T \"local/xxx.suffix\" -u xxx:psw \"ftp://192         


        
相关标签:
2条回答
  • 2020-12-07 21:57

    Use curl with find to recursively upload all files from a specific directory:

    find mydir -type f -exec curl -u xxx:psw --ftp-create-dirs -T {} ftp://192.168.1.158/public/demon_test/{} \;
    
    0 讨论(0)
  • 2020-12-07 22:08

    instead of curl, use wput (not to be confused with wget).

    0 讨论(0)
提交回复
热议问题