ssh/scp断点续传rsync

  1. 开启连接,开始传输文件

$ rsync -rtP --ignore-existing  --rsh='ssh' root@123.123.123.123:/compact  .
receiving incremental file list
compact/
compact/000027d7-8f99-4017-a40b-620011e3a9c6.JPG
        136,676 100%   16.29MB/s    0:00:00 (xfr#1, to-chk=2014/2016)
compact/0003915d-bd07-4dc9-a1fe-8e70827bfd80.JPG
        543,630 100%  346.99kB/s    0:00:01 (xfr#2, to-chk=2013/2016)
compact/005fe07b-30fb-4aec-bb2c-fea62e6783e7.JPG
        129,041 100%  176.25kB/s    0:00:00 (xfr#3, to-chk=2012/2016)
  1. 中间因为些一原因,断开连接,文件编号 1584 中止

接上面日志....
compact/34fa5034-1969-49cc-a0fb-b0cf3d3e5bf3.JPG
        515,808 100%  181.06kB/s    0:00:02 (xfr#430, to-chk=1585/2016)
compact/34fc95a0-9ed4-40e0-ac15-4680021b1e6f.JPG
         47,086 100%   93.84kB/s    0:00:00 (xfr#431, to-chk=1584/2016)
compact/3507aed9-e00e-4ecf-af6d-b2244cd92395.JPG
              0   0%    0.00kB/s    0:00:00  ^CKilled by signal 2.

rsync error: unexplained error (code 255) at rsync.c(638) [generator=3.1.2]
rsync: [generator] write error: Broken pipe (32)
rsync error: received SIGUSR1 (code 19) at main.c(1429) [receiver=3.1.2]

  1. 继续传输

$ rsync -rtP --ignore-existing  --rsh='ssh' root@123.123.123.123:/compact  .
receiving incremental file list
compact/
compact/3508db48-cfcc-4fd2-91a7-2030a9490b31.JPG
        677,873 100%  371.28kB/s    0:00:01 (xfr#1, to-chk=1582/2016)
compact/35165fbb-d7be-4578-b434-6d05a5a035f1.JPG
         68,121 100%   65.03kB/s    0:00:01 (xfr#2, to-chk=1581/2016)
compact/354a638e-b40a-4dfc-8643-1e82b2b7d121.JPG
        567,779 100%  273.27kB/s    0:00:02 (xfr#3, to-chk=1580/2016)
compact/355b0399-01d0-4bca-87bb-94d064c049ab.JPG
        130,315 100%   88.93kB/s    0:00:01 (xfr#4, to-chk=1579/2016)
        .........直到结束
        630,788 100%  200.85kB/s    0:00:03 (xfr#1579, to-chk=4/2016)
compact/ff6883bf-129a-4c5d-b81f-27039a7f4162.JPG
        149,258 100%  104.49kB/s    0:00:01 (xfr#1580, to-chk=3/2016)
compact/ff6e18a6-b738-4587-a540-7851c1efbf0e.JPG
        568,259 100%  237.46kB/s    0:00:02 (xfr#1581, to-chk=2/2016)
compact/ff90d015-fc47-45b7-b8e0-e9b18b0df665.JPG
        596,322 100%  245.51kB/s    0:00:02 (xfr#1582, to-chk=1/2016)
compact/ffeaf051-52ae-4abe-a475-eeecf1b3a049.JPG
        130,480 100%  227.13kB/s    0:00:00 (xfr#1583, to-chk=0/2016)
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值