Sync SFTP remote folder via lftp.
- Based on the official
ubuntu:latest
image - Install lftp
- Copy the
mirror.sh
script
Run the container with the following environment variables:
PROTOCOL
: The protocol to use (ftp
orsftp
)HOST
: The remote hostPORT
: The remote portUSERNAME
: The username to use to authenticatePASSWORD
: The password to use to authenticateLOCAL_DIR
: The local directory, usually a mounted volume or the result of a pipeline buildREMOTE_DIR
: The destination directory on the remote host