summaryrefslogtreecommitdiffstats
path: root/cron_templates
diff options
context:
space:
mode:
authorThomas Groman <tgroman@nuegia.net>2020-03-16 15:03:30 -0700
committerThomas Groman <tgroman@nuegia.net>2020-03-16 15:03:30 -0700
commit4fd0575a6fa5e747bfceef15dbd1870a090ecaff (patch)
treec12458d84f5d428b1e37f356c81addf0468263cd /cron_templates
parentbe3669a653edec4222681b2b6dd08b828fc72aa2 (diff)
downloadrestic_bootsrap-4fd0575a6fa5e747bfceef15dbd1870a090ecaff.tar
restic_bootsrap-4fd0575a6fa5e747bfceef15dbd1870a090ecaff.tar.gz
restic_bootsrap-4fd0575a6fa5e747bfceef15dbd1870a090ecaff.tar.lz
restic_bootsrap-4fd0575a6fa5e747bfceef15dbd1870a090ecaff.tar.xz
restic_bootsrap-4fd0575a6fa5e747bfceef15dbd1870a090ecaff.zip
use run-parts and add random delay
Diffstat (limited to 'cron_templates')
-rw-r--r--cron_templates/crontab8
1 files changed, 5 insertions, 3 deletions
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