← 返回命令列表

Linux command

par2 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Create recovery files

par2 create [backup.par2] [files]

Verify files

par2 verify [backup.par2]

Repair damaged files

par2 repair [backup.par2]

Create with redundancy level

par2 create -r[10] [backup.par2] [files]

Create with specific block count

par2 create -c[100] [backup.par2] [files]

Verify specific files

par2 verify [backup.par2] [file1] [file2]

Quiet operation

par2 create -q [backup.par2] [files]

说明

par2 creates and uses PAR2 (Parity Archive 2) files for data recovery. These files enable repairing damaged or missing data. Recovery files contain parity information calculated from source files. If source files become corrupted or partially lost, PAR2 files can reconstruct the original data. Redundancy level (-r) controls how much damage can be repaired. 10% redundancy means 10% of data can be lost and still be recovered. Higher redundancy uses more space. Block-based recovery splits files into blocks. Damage to part of a file only consumes recovery capacity for affected blocks, not the entire file. Verification checks files against stored checksums, identifying corruption without repairing. Repair mode uses available recovery data to fix problems. The format is commonly used for Usenet downloads, archive distribution, and backup verification.

参数

create
Create PAR2 recovery files.
verify, v
Verify files using PAR2.
repair, r
Repair damaged files.
-r _PERCENT_
Redundancy percentage.
-c _COUNT_
Block count.
-b _SIZE_
Block size in bytes.
-n _COUNT_
Number of recovery files.
-u
Uniform recovery file sizes.
-q
Quiet mode.
-v
Verbose output.
--
End of options.

FAQ

What is the par2 command used for?

par2 creates and uses PAR2 (Parity Archive 2) files for data recovery. These files enable repairing damaged or missing data. Recovery files contain parity information calculated from source files. If source files become corrupted or partially lost, PAR2 files can reconstruct the original data. Redundancy level (-r) controls how much damage can be repaired. 10% redundancy means 10% of data can be lost and still be recovered. Higher redundancy uses more space. Block-based recovery splits files into blocks. Damage to part of a file only consumes recovery capacity for affected blocks, not the entire file. Verification checks files against stored checksums, identifying corruption without repairing. Repair mode uses available recovery data to fix problems. The format is commonly used for Usenet downloads, archive distribution, and backup verification.

How do I run a basic par2 example?

Run `par2 create [backup.par2] [files]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does create do in par2?

Create PAR2 recovery files.