btrfs scrub
linux
Scrub btrfs filesystems to verify data integrity. It is recommended to run a scrub once a month.
More info →Options (4)
booleanStart a scrub
Example:
sudo btrfs {{[sc|scrub]}} start {{path/to/btrfs_mount}}booleanCancel an ongoing scrub
Example:
sudo btrfs {{[sc|scrub]}} {{[c|cancel]}} {{path/to/btrfs_mount}}booleanResume a previously cancelled scrub
Example:
sudo btrfs {{[sc|scrub]}} {{[r|resume]}} {{path/to/btrfs_mount}}-q, --quietbooleanStart a scrub in quiet mode (does not print errors or statistics)
Example:
sudo btrfs {{[sc|scrub]}} start {{[-q|--quiet]}} {{path/to/btrfs_mount}}Examples (6)
Show the status of an ongoing or last completed scrub
Start a scrub, but do not put the program in the [B]ackground
made by @shridhargupta | data from tldr-pages