Sync SFTP remote folder via lftp.
- Based on the official
ubuntu:latestimage - Install lftp
- Copy the
mirror.shscript
Run the container with the following environment variables:
PROTOCOL: The protocol to use (ftporsftp)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