All of lore.kernel.org
 help / color / mirror / Atom feed
* notification about corrupt files from "btrfs scrub" in cron
@ 2017-11-22 19:54 ST
  2017-11-23  9:41 ` Duncan
  0 siblings, 1 reply; 6+ messages in thread
From: ST @ 2017-11-22 19:54 UTC (permalink / raw)
  To: linux-btrfs

Hello,

I have following cron job to scrub entire root filesystem (total ca.
7.2TB and 2.3TB of them used) once a week:
/bin/btrfs scrub start -r / > /dev/null

Such scrubbing takes ca. 2 hours. How should I get notified that a
corrupt file was discovered? Does this command return some error code
back to cron so it can send an email as usual? Will cron wait 2 hours to
get that code?

I tried that command once without "> /dev/null" but got no email
notification about the results (eventhough the check was OK) - why?

Thank you.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-11-24  1:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-22 19:54 notification about corrupt files from "btrfs scrub" in cron ST
2017-11-23  9:41 ` Duncan
2017-11-23 11:47   ` ST
2017-11-23 12:59     ` Mike Fleetwood
2017-11-23 13:58       ` Marat Khalili
2017-11-24  1:04     ` Duncan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.