Install lftp
#!/usr/bin/env bash apt update && apt -y full-upgrade apt -y install lftp exit 0
Mirror from remote to local
lftp http://mirror.remote.site/src-path -e "mirror -e -c -P=4 . /local/target-path; bye"
Explain
lftp remote_url/path -e
[command]
mirror
[option] source target
-e
delete different files
-c
continue transfer
-P=[number]
number of parallel connections