【问题标题】:How do I transfer small files quickly with zstd?How do I transfer small files quickly with zstd?
【发布时间】:2022-12-27 09:09:10
【问题描述】:

As the question states, I want to backup many small files and send them via ssh to a destination. Does rsync help?

【问题讨论】:

    标签: ssh tar rsync file-transfer zstd


    【解决方案1】:

    This works quite well, significantly faster than gzip.

    tar -c --zstd src_dir | ssh user@host "cd destination_dir && tar x --zstd"
    

    With progress

    tar -c --zstd src_dir | pv --timer --rate | ssh user@host "cd destination_dir && tar x --zstd"
    

    【讨论】:

      猜你喜欢
      • 2013-04-23
      • 2022-11-20
      • 2022-12-04
      • 2022-12-26
      • 2022-12-01
      • 2022-12-19
      • 2022-12-28
      • 2022-01-04
      • 2022-12-01
      相关资源
      最近更新 更多