crontab example

This commit is contained in:
kneutron 2022-02-16 09:45:32 -06:00 committed by GitHub
parent b6bef8a802
commit 03838e844a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,12 @@
#!/bin/bash
# NOTE runs from /etc/crontab
# example for osx:
# # 12:01am 15-17 every month, run zfs scrub 1 day for 1 pool - TODO expand if more pools
#1 0 15 * * /var/root/bin/boojum/boojum-monthly-scrub.sh > /var/root/boojum-monthly-scrub.log 2>>/var/root/boojum-scrub-errs.log
#1 0 16 * * /var/root/bin/boojum/boojum-monthly-scrub.sh > /var/root/boojum-monthly-scrub.log 2>>/var/root/boojum-scrub-errs.log
#1 0 17 * * /var/root/bin/boojum/boojum-monthly-scrub.sh > /var/root/boojum-monthly-scrub.log 2>>/var/root/boojum-scrub-errs.log
# based on DOM 14/15/16/17, scrub 1 of N pools && wait4scrub
# NOTE tabwidth=2