Re: How do I make 'btrfs scrub' report errors via email?

Rich Rauenzahn
2015-06-14T04:34:20Z

On 6/13/2015 6:48 AM, crocket wrote:
> I can check the result of 'btrfs scrub' later, but I don't want to
> take time to actually check it.
> Does anyone know how to make 'btrfs scrub' report errors via email?
> It seems google doesn't know.

I use this job in /etc/cron.d/btrfs.scrub.cron :

0 0 * * fri root for dev in `mount | grep "type btrfs" | awk '{print
$1}' | sort -u`; do echo --------------------------; echo Scrubbing
$dev :; echo --------------------------; /usr/sbin/btrfs scrub start -B
$dev; done