LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

lrztar

wrapper for lrzip that simplifies compression of directories

TLDR

Archive and compress a directory with default LZMA compression
$ lrztar [path/to/directory]
copy
Compress with LZO (fastest)
$ lrztar -l [path/to/directory]
copy
Compress with bzip2
$ lrztar -b [path/to/directory]
copy
Compress with gzip
$ lrztar -g [path/to/directory]
copy
Compress with ZPAQ (best ratio, slowest)
$ lrztar -z [path/to/directory]
copy
Specify output file
$ lrztar -o [path/to/output.tar.lrz] [path/to/directory]
copy
Compress with verbose output and force overwrite
$ lrztar -v -f [path/to/directory]
copy

SYNOPSIS

lrztar [lrzip-options] directory

DESCRIPTION

lrztar is a wrapper for lrzip that simplifies compression of directories. It first creates a tar archive, then compresses it using lrzip's long-range compression algorithms. Output defaults to DIRECTORY.tar.lrz. lrztar accepts the same options as lrzip.

PARAMETERS

-l, --lzo

Use ultra-fast LZO compression
-b, --bzip2
Use bzip2 compression
-g, --gzip
Use gzip compression
-z, --zpaq
Use ZPAQ compression (best ratio, very slow)
-n, --no-compress
Only perform long-range redundancy reduction (no 2nd stage compression)
-o, --outfile FILE
Specify output filename
-p, --threads N
Number of processor threads
-f, --force
Force overwrite existing files
-v, --verbose
Increase verbosity (-vv for more)
-D, --delete
Delete source files after successful compression

CAVEATS

Default compression algorithm is LZMA. ZPAQ provides best compression ratio but is approximately 4x slower than LZMA. LZO offers bzip2-like ratios at near file-copy speeds.

SEE ALSO

lrzip(1), lrzuntar(1), lrunzip(1), tar(1)

Copied to clipboard
Kai