ssh断点续传

阅读量: searchstar 2022-09-17 22:13:11
Categories: Tags:

可以用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/

https://blog.csdn.net/hepeng597/article/details/8960885