Skip to content

Parbit 2.1 for Linux

Choose a tag to compare

@anto294 anto294 released this 29 Nov 10:24
· 5 commits to main since this release

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 in bin\. Same commands, menu and on-disk format as parbit.sh, so one
    drive works from both systems. Needs only the built-in Windows PowerShell 5.1.
  • JOBS setting: 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 --rebuild could bake existing damage into the new parity: each file is now
    verified first, and a damaged one keeps its old parity.
  • repair replaced 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 verify failed, par2's message was not shown.

Changed

  • The scan uses a single find instead of a stat per file: about 6× faster
    (3000 files: 6.3 s → 0.95 s for status).
  • 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
    (run schedule <freq> again to update an existing timer).
  • .parbit.log is rotated to .parbit.log.1 above 1 MB.