more solid and flexible way to run scheduled tasks

pull/146/head
Cerem Cem ASLAN 2017-05-02 00:33:59 +03:00 committed by GitHub
parent ed80bccc79
commit b9a7baf86f
1 changed files with 4 additions and 3 deletions

View File

@ -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`