跳到主要内容

Download FTP with YAML

List of YAML parameters and examples for the Downloaad FTP action.

YAML parameters for Download FTP

名称类型描述
action
必填
StringThe ID of the action.
type
必填
StringThe type of the action. Should be set to DOWNLOAD_FTP.
source_path
必填
StringThe path from which the file will be downloaded.
destination_path
必填
StringThe path in which the file will be saved.
host
必填
StringThe host for the connection.
login
必填
StringThe username required to connect to the server.
port
必填
StringThe port for the connection.
password
必填
StringThe password required to connect to the server.
overwriteBooleanReplace files if they already exist.
recursiveBooleanIf set to true, the whole directory tree is downloaded, otherwise only the files from the path are downloaded.
download_excludesString[]The paths and/or files that will be left out during the download.
download_includesString[]The exceptions from the ignore patterns set in download_excludes.

YAML example for Download FTP

actions:
- action: "Download files from $host"
type: "DOWNLOAD_FTP"
source_path: "source"
destination_path: "destination"
login: "username"
password: "secure!R6gJWacVUBuxvJiNxu4hUQ=="
host: "$host"
port: "21"
download_excludes:
- "/tmp"
- "*.log"
download_includes:
- "/tmp/assets"
- "/tmp/styles"