Linux command
zpaq 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Create archive
zpaq add [archive.zpaq] [files...]
Extract archive
zpaq extract [archive.zpaq]
List archive contents
zpaq list [archive.zpaq]
Add with maximum compression
zpaq add [archive.zpaq] [files] -method 5
Extract to specific directory
zpaq extract [archive.zpaq] -to [/output/dir]
Incremental backup
zpaq add [backup.zpaq] [directory] -all
说明
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).
参数
- -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
FAQ
What is the zpaq command used for?
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).
How do I run a basic zpaq example?
Run `zpaq add [archive.zpaq] [files...]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -method _level_ do in zpaq?
Compression level (0-5, higher = better compression)