LinuxCommandLibrary

zpaq

Journaling archiver with high compression

TLDR

Create archive

$ zpaq add [archive.zpaq] [files...]
copy
Extract archive
$ zpaq extract [archive.zpaq]
copy
List archive contents
$ zpaq list [archive.zpaq]
copy
Add with maximum compression
$ zpaq add [archive.zpaq] [files] -method 5
copy
Extract to specific directory
$ zpaq extract [archive.zpaq] -to [/output/dir]
copy
Incremental backup
$ zpaq add [backup.zpaq] [directory] -all
copy

SYNOPSIS

zpaq command archive[.zpaq] [files...] [options]

DESCRIPTION

zpaq is an archiver with high compression ratios and journaling capability. It uses context mixing and neural network-based prediction for compression, achieving ratios better than most conventional archivers.
ZPAQ's journaling feature makes it excellent for incremental backups. Each add creates a new version, and previous versions remain accessible. The -until flag extracts files as they existed at a specific time.
Archives are append-only by default - new versions add to the archive without modifying previous data. This provides some protection against corruption and allows versioned backups.
Compression levels range from 0 (store only) to 5 (maximum compression, slow).

PARAMETERS

-method level

Compression level (0-5, higher = better compression)
-to path
Destination directory for extraction
-all
Include hidden files and empty directories
-not pattern
Exclude files matching pattern
-only pattern
Include only matching files
-until date
Extract version as of date
-threads n
Number of threads to use
-key password
Encrypt/decrypt with password

COMMANDS

add

Add or update files in archive
extract
Extract files from archive
list
List archive contents
compare
Compare archive with filesystem
test
Test archive integrity

CAVEATS

High compression levels are CPU-intensive and slow. Level 5 can be orders of magnitude slower than level 1.
ZPAQ format is not widely supported outside the zpaq tool itself. Consider compatibility needs.
Journaling archives can grow large over time. Use zpaq add -method 0 to consolidate.
Encryption is optional and must be specified during archive creation.

SEE ALSO

tar(1), 7z(1), gzip(1), zstd(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community