Repository navigation
Parbit 2.1 for Linux
Protects your files against bit rot and bad sectors with per-file par2 parity.
Install: download Parbit-2.1-linux.tar.gz, unpack it (tar xzf Parbit-2.1-linux.tar.gz),
install par2 (sudo pacman -S par2cmdline, sudo apt install par2, sudo dnf install par2cmdline),
put your files in Parbit/parbit/ and run ./parbit.sh. See the user guide.
Using the same drive on Windows too? Get the for Windows release as well and unpack both in the same place.
New
- Windows version (beta):
parbit.bat+parbit.ps1, with par2cmdline 2.0.0
bundled inbin\. Same commands, menu and on-disk format asparbit.sh, so one
drive works from both systems. Needs only the built-in Windows PowerShell 5.1. JOBSsetting: verify several files in parallel (useful on SSDs).tests.sh/tests.ps1: end-to-end tests with real par2 and simulated bit rot,
including cross-system checks of parity made on the other OS.
Fixed
update --rebuildcould bake existing damage into the new parity: each file is now
verified first, and a damaged one keeps its old parity.repairreplaced the file with a new one, losing its permissions and hard links:
the repaired content is now written in place.- When the repair offered after
verifyfailed, par2's message was not shown.
Changed
- The scan uses a single
findinstead of astatper file: about 6× faster
(3000 files: 6.3 s → 0.95 s forstatus). - Parity of files that became ignored, empty or a symlink is dropped without
triggering the mass-deletion guard (which now only counts files that vanished). - Files with a line break in the name are reported and not protected.
- The systemd service skips quietly while the drive is not mounted
(runschedule <freq>again to update an existing timer). .parbit.logis rotated to.parbit.log.1above 1 MB.