f17f9da9f3
* Pull in the changes to the automatic scrub cronjob from debian-upstream [0] commit f6d45405df0a2ed2748975667e8ea50714034d13 * Add a script and cronjob for regular trimming of pools * Change the logic to scrub/trim pools based on a per pool('s root dataset property) pulled the changes in as one commit instead of cherry-picking, since the planned and reverted debconf questions would have caused unneccessary churn. commits identified by running: `git log --full-diff -- debian/tree/zfsutils-linux/usr/lib/zfs-linux` in a worktree from [0]. [0] https://salsa.debian.org/zfsonlinux-team/zfs/ Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
8 lines
377 B
Makefile
8 lines
377 B
Makefile
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
|
|
|
# TRIM the first Sunday of every month.
|
|
24 0 1-7 * * root if [ $(date +\%w) -eq 0 ] && [ -x /usr/lib/zfs-linux/trim ]; then /usr/lib/zfs-linux/trim; fi
|
|
|
|
# Scrub the second Sunday of every month.
|
|
24 0 8-14 * * root if [ $(date +\%w) -eq 0 ] && [ -x /usr/lib/zfs-linux/scrub ]; then /usr/lib/zfs-linux/scrub; fi
|