On 9 June 2016 at 17:10, Roman Lebedev <lebedev...@gmail.com> wrote: > Package: btrfs-progs > Version: 4.5.2-1 > Severity: wishlist > > Dear Maintainer, > > It is generally advised to periodically scrub the btrfs filesystems. > Doing so once per month is best. > > However there is no official sample cron job to do this. > > I've personally been using following btrfs-scrub for last 1.5y+ from: > http://marc.merlins.org/perso/btrfs/post_2014-03-19_Btrfs-Tips_-Btrfs-Scrub-and-Btrfs-Filesystem-Repair.html > > It would be nice if btrfs-progs would provide such sample job. >
Given btrfs is linux specific, how about a systemd unit & timer unit to do the scrub? disabled by default, but then one would be able to run scrub out of the box with e.g.: $ systemct start btrfs-scrub.service or regularly with $ systemctl enable --now btrfs-scrub.timer Would that be good enough? -- Regards, Dimitri.