From 9a7a8e84fe371a122306bb63e6394672a584bbdb Mon Sep 17 00:00:00 2001 From: Moinak Ghosh Date: Wed, 28 Aug 2013 21:01:25 +0530 Subject: [PATCH] Add more example usage. --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index cee09c9..74eceae 100644 --- a/README.md +++ b/README.md @@ -281,10 +281,25 @@ than SHA2. Examples ======== +Simple compress "file.tar" using zlib(gzip) algorithm. Default chunk or per-thread +segment size is 8MB and default compression level is 6. + + pcompress -c zlib file.tar + Compress "file.tar" using bzip2 level 6, 64MB chunk size and use 4 threads. In addition perform identity deduplication and delta compression prior to compression. pcompress -D -E -c bzip2 -l6 -s64m -t4 file.tar + +Compress "file.tar" using zlib and also perform Global Deduplication. Default block +size used for deduplication is 4KB. Also redirect the compressed output to stdout and +send it to a compressed file at a different path. + + pcompress -G -c zlib -l9 -s10m file.tar - > /path/to/compress_file.tar.pz + +Perform the same as above but this time use a deduplication block size of 8KB. + + pcompress -G -c zlib -l9 -B2 -s10m file.tar - > /path/to/compress_file.tar.pz Compress "file.tar" using extreme compression mode of LZMA and a chunk size of of 1GB. Allow pcompress to detect the number of CPU cores and use as many threads.