可以用rsync
。例子:
# 相当于scp sshname:/path/to/file .
rsync -zP -e ssh sshname:/path/to/file .
常用选项:
-v: verbose
-z: --compress。
-P: -partial -progress
,部分传送和显示进度。
--bwlimit: 限速。用法:--bwlimit=RATE
。单位默认KiB/s
。也可以指定单位,比如m
表示单位是MiB/s
,--bwlimit=1.5m
就表示限速到1.5MiB/s
。
参考:
https://www.tecmint.com/rsync-local-remote-file-synchronization-commands/