Files
cheatsheet-tldr/tldr/par2
2024-04-12 00:13:22 +00:00

26 lines
677 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# par2
> File verification and repair using PAR 2.0 compatible parity archives (.par2 files).
> More information: <https://github.com/Parchive/par2cmdline/>.
- Create a parity archive with a set percentage level of redundancy:
`par2 create -r{{1..100}} -- {{path/to/file}}`
- Create a parity archive with a chosen number of volume files (in addition to the index file):
`par2 create -n{{1..32768}} -- {{path/to/file}}`
- Verify a file with a parity archive:
`par2 verify -- {{path/to/file.par2}}`
- Repair a file with a parity archive:
`par2 repair -- {{path/to/file.par2}}`