$linuxjunkies
>

snapraid(1)

snapraid is a backup program that stores redundancy information and can recover corrupted files from disk failures without requiring a full backup copy.

UbuntuDebianFedoraArch

Synopsis

snapraid [COMMAND] [OPTIONS] [ARGS]

Description

snapraid is a snapshot-based backup and recovery tool designed for media centers and large file collections. It maintains parity blocks similar to RAID, allowing recovery from disk failures and file corruption without duplicating your entire data.

Unlike traditional RAID, snapraid is not real-time; you run it explicitly to create snapshots and parity data. This makes it suitable for cold storage scenarios where data doesn't change frequently but you want protection against hardware failures and bitrot.

snapraid can recover lost files, detect and fix corrupted data, and provide detailed reports on your storage health.

Common options

FlagWhat it does
syncCreate or update parity blocks for all new and changed files
checkVerify parity data and detect any corruption or missing files
fixAttempt to recover corrupted or missing files using parity data
listList all files in the snapraid filesystem
statusDisplay current snapraid status and statistics
dupFind duplicate files across the filesystem
poolCreate a virtual unified view of all snapraid disks
-c CONFIGUse alternate configuration file instead of default
-vVerbose output; show detailed progress and information
--dry-runSimulate operation without making actual changes

Examples

Create or update all parity blocks for new and changed files since last sync

snapraid sync

Verify integrity of all parity data and report any corruption found

snapraid check

Automatically recover and repair corrupted or missing files using parity data

snapraid fix

Show filesystem status using a custom configuration file

snapraid -c /etc/snapraid.conf status

Find and list all duplicate files across all snapraid disks

snapraid dup

List all files in snapraid filesystem and filter for video files

snapraid list | grep video

Run sync with verbose output and save results to a log file

snapraid -v sync 2>&1 | tee sync.log

Preview what repairs would be made without actually fixing anything

snapraid --dry-run fix

Related commands