From b9a7baf86f08215c5c6d6b49dd589babee71a5a2 Mon Sep 17 00:00:00 2001 From: Cerem Cem ASLAN Date: Tue, 2 May 2017 00:33:59 +0300 Subject: [PATCH] more solid and flexible way to run scheduled tasks --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 268293c..5920f11 100644 --- a/README.md +++ b/README.md @@ -173,11 +173,12 @@ Retention policy: target send-receive /mnt/btr_backup/mylaptop -/etc/cron.daily/btrbk: +/etc/cron.d/btrbk: - #!/bin/sh - exec /usr/sbin/btrbk -q -c /etc/btrbk/btrbk-mylaptop.conf run + SHELL=/bin/sh + PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin + 0 */1 * * * root exec /usr/sbin/btrbk -q -c /etc/btrbk/btrbk-mylaptop.conf run * This will create snapshots on a daily basis: * `/mnt/btr_pool/btrbk_snapshots/rootfs.YYYYMMDD`