lftp Tools
Recently discovered lftp which was last updated in 2024 and seems
useful for synchronization of remote FTP servers and local systems.
directoryRemoteSynchronize
Synchronize a remote and local directory
Usage
directoryRemoteSynchronize remoteURL [ target ] [ subdirectory ] [ --debug ] [ --verbose ] [ --force-ssl ] [ --no-force-ssl ] [ --reverse ] [ --continue ] [ --no-continue ] [ --dry-run ] [ --verify-certificate ] [ --no-verify-certificate ] [ --exclude excludePattern ] [ --include includePattern ] [ --target target ]
Synchronize a remote and local directory (bi-directional).
By default synchronizes the remote file system with the local file system.
To push the local to the remote server use --reverse.
By default --continue is enabled.
The exclude and include patterns are glob patterns like *.zip.
Location:
bin/build/tools/lftp.sh
Arguments
remoteURL- URL. Required. Remote file or directory to synchronize.target- FileDirectory. Optional. Local path or file to synchronize. Uses current directory if not specified.subdirectory- RelativeDirectory. Optional. Subdirectory to add to bothremoteURLandlocalPath.--debug- Flag. Optional. Debugging output.--verbose- Flag. Optional. Verbose output.--force-ssl- Flag. Optional. Force SSL when connecting to the remote.--no-force-ssl- Flag. Optional. Do not force SSL when connecting to the remote.--reverse- Flag. Optional. Push files to the remote server.--continue- Flag. Optional. Attempt to continue a synchronization where it left off if possible.--no-continue- Flag. Optional. Do not attempt to continue a synchronization where it left off.--dry-run- Flag. Optional. Do not change anything but instead output what would have changed.--verify-certificate- Flag. Optional. Verify the remote server certificate when connecting.--no-verify-certificate- Flag. Optional. Do not verify the remote server certificate when connecting.--exclude excludePattern- String. Optional. Exclude a glob pattern from synchronization.--include includePattern- String. Optional. Include a glob pattern for synchronization.--target target- FileDirectory. Optional. Local path or file to synchronize.
Return codes
0- Success1- Environment error2- Argument error