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
Latest posts by Kawin Viriyaprasopsook (see all)
- Convert flac audio to ogg/mp3 - 2020-12-20
- Fix systemd resolved not working (127.0.0.53) - 2019-09-23
- Safely remove SATA disk from a running Linux system - 2019-05-24