跳至主要内容

1 篇文章 含有標籤「Linux」

檢視所有標籤

Upload the Entire Directory to an FTP server with curl

· 閱讀時間約 2 分鐘

A while ago I'm working on a project which involves Citrix NetScaler. The Client is required to automate the configuration and back up files to an internal FTP server. Citrix NetScaler cannot regularly upload the backup files to an external store (when no additional software is used). Hence, I decided to write a simple shell script and use curl to upload the entire directory to the FTP server. The script can be used in any Linux machine (or even Windows with WSL) with curl installed.