From: Roman Mamedov <rm@romanrm.net>
To: "Kengo.M" <kengo@kyoto-arc.or.jp>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: scrub results by email
Date: Tue, 13 Sep 2022 22:30:09 +0500 [thread overview]
Message-ID: <20220913223009.11e1e549@nvm> (raw)
In-Reply-To: <p06001015df458237c0f7@kyoto-arc.or.jp>
On Tue, 13 Sep 2022 09:43:58 +0900
"Kengo.M" <kengo@kyoto-arc.or.jp> wrote:
> btrfs scrub start -B option
> do not background and print scrub statistics when finished
>
> btrfs scrub start -B /mnt/test.btrfs | mail -s "scrub result" foo@baa.com
If you want to run a scheduled scrub from crontab, cron can be made to mail
all output of all cron-issued commands to a designated E-Mail address. Add:
MAILTO=admin@example.com
on top of the crontab file. Once all crontab output is mailed instead of being
discarded, it may require fine-tuning other scripts and commands you have
scheduled there, by redirecting stdout to "> /dev/null" where reasonable (to
only get notifications of errors). And perhaps set up filters in your mailing
service or web interface, so that all scheduled logs from your machines group
nicely into a designated folder.
--
With respect,
Roman
next prev parent reply other threads:[~2022-09-13 18:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-13 0:00 scrub results by email Kengo.M
2022-09-13 0:10 ` Christoph Anton Mitterer
2022-09-13 0:43 ` Kengo.M
2022-09-13 17:30 ` Roman Mamedov [this message]
2022-09-13 19:39 ` Phillip Susi
2022-09-14 3:00 ` Kengo.M
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220913223009.11e1e549@nvm \
--to=rm@romanrm.net \
--cc=kengo@kyoto-arc.or.jp \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox