roidba的最爱,lz4压缩工具,备份恢复再也不用等几个小时了啦


压缩比,效率都很高,至于怎么用,明天发文章。


1. 下载

http://rpmfind.net/

Search 输入:lz4

Download

Extras Testing Packages for Enterprise Linux 6 for x86_64

lz4-1.7.5-1.el6.x86_64.rpm

 

2. 安装

http://rpmfind.net/

# rpm -ivh  lz4-1.7.5-1.el6.x86_64.rpm

# rpm -qa|grep lz4

lz4-1.7.5-1.el6.x86_64

# lz4 --help

*** LZ4 command line interface 64-bits v1.7.5, by Yann Collet ***

Usage :

      lz4 [arg] [input] [output]

input   : a filename

          with no FILE, or when FILE is - or stdin, read standard input

Arguments :

 -1     : Fast compression (default)

 -9     : High compression

 -d     : decompression (default for .lz4 extension)

 -z     : force compression

 -f     : overwrite output without prompting

 -k     : preserve source files(s)  (default)

--rm    : remove source file(s) after successful de/compression

 -h/-H  : display help/long help and exit

Advanced arguments :

 -V     : display Version number and exit

 -v     : verbose mode

 -q     : suppress warnings; specify twice to suppress errors too

 -c     : force write to standard output, even if it is the console

 -t     : test compressed file integrity

 -m     : multiple input files (implies automatic output filenames)

 -r     : operate recursively on directories (sets also -m)

 -l     : compress using Legacy format (Linux kernel compression)

 -B#    : Block size [4-7] (default : 7)

 -BD    : Block dependency (improve compression ratio)

--no-frame-crc : disable stream checksum (default:enabled)

--content-size : compressed frame includes original size (default:not present)

--[no-]sparse  : sparse mode (default:enabled on file, disabled on stdout)

Benchmark arguments :

 -b#    : benchmark file(s), using # compression level (default : 1)

 -e#    : test all compression levels from -bX to # (default : 1)

 -i#    : minimum evaluation time in seconds (default : 3s)

 -B#    : cut file into independent blocks of size # bytes [32+]

                     or predefined block size [4-7] (default: 7) 










本文转自 roidba 51CTO博客,原文链接:http://blog.51cto.com/roidba/1891182,如需转载请自行联系原作者
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值