From 4fd0575a6fa5e747bfceef15dbd1870a090ecaff Mon Sep 17 00:00:00 2001 From: Thomas Groman Date: Mon, 16 Mar 2020 15:03:30 -0700 Subject: use run-parts and add random delay --- cron_templates/crontab | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'cron_templates') diff --git a/cron_templates/crontab b/cron_templates/crontab index 0451726..a8e4e99 100644 --- a/cron_templates/crontab +++ b/cron_templates/crontab @@ -1,5 +1,7 @@ MAILTO="root,noc@domain.tld" +RANDOM_DELAY=150 #Run backup scripts -0 3 * * * bash /etc/restic.d/backups.d/*.sh | tee >>/var/log/restic.log 1>/dev/null -0 0 1 * * bash /etc/restic.d/cleanup.d/*.sh | tee >>/var/log/restic.log -0 19 2 */3 * bash /etc/restic.d/checkup.d/*.sh | tee >>/var/log/restic.log + +0 3 * * * run-parts /etc/restic.d/backups.d | tee >>/var/log/restic.log 1>/dev/null +0 0 1 * * run-parts /etc/restic.d/cleanup.d | tee >>/var/log/restic.log +0 19 2 */3 * run-parts /etc/restic.d/checkup.d | tee >>/var/log/restic.log -- cgit v1.2.3