• 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
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    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
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    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)
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
  • 相关阅读:
    【Linux】使用 Alist 实现阿里云盘4K播放
    撤销工作表保护密码忘记了怎么办?
    闲人闲谈PS之三十五——物资备货与提前采购
    数据结构01
    npm 清缓存(重新安装node-modules)
    矩阵论习题1.1
    Spring boot+Spring security+JWT实现前后端分离登录认证及权限控制
    电商接口api数据比价接口推荐
    外观模式:简化复杂系统
    无代码开发和低代码开发的本质区别
  • 原文地址:https://blog.csdn.net/zoeou/article/details/125518320