From b23248e280dc75df2726608324819a7141ba367b Mon Sep 17 00:00:00 2001 From: Felix Eckhofer Date: Wed, 16 Sep 2015 15:27:56 +0200 Subject: [PATCH 1/3] Silence output on successful runs in cron --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c3eadb7..e5dd537 100644 --- a/README.md +++ b/README.md @@ -147,7 +147,7 @@ Retention policy: /etc/cron.daily/btrbk: #!/bin/bash - /usr/sbin/btrbk -c /etc/btrbk/btrbk-mylaptop.conf run + /usr/sbin/btrbk -q -c /etc/btrbk/btrbk-mylaptop.conf run - This will create snapshots on a daily basis: @@ -227,7 +227,7 @@ regular basis: /etc/cron.daily/btrbk: #!/bin/bash - /usr/sbin/btrbk run + /usr/sbin/btrbk -q run Note that you can run btrbk more than once a day, e.g. by creating the above script in `/etc/cron.hourly/btrbk`, or by calling `sudo btrbk From 920b365dd82c3777e67b0a8363397d607b6441e1 Mon Sep 17 00:00:00 2001 From: Felix Eckhofer Date: Wed, 16 Sep 2015 15:28:47 +0200 Subject: [PATCH 2/3] Use system's default shell --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e5dd537..d8a9820 100644 --- a/README.md +++ b/README.md @@ -146,7 +146,7 @@ Retention policy: /etc/cron.daily/btrbk: - #!/bin/bash + #!/bin/sh /usr/sbin/btrbk -q -c /etc/btrbk/btrbk-mylaptop.conf run @@ -226,7 +226,7 @@ regular basis: /etc/cron.daily/btrbk: - #!/bin/bash + #!/bin/sh /usr/sbin/btrbk -q run Note that you can run btrbk more than once a day, e.g. by creating the From 2ba22453de40960789405b7d4b330fca187b886c Mon Sep 17 00:00:00 2001 From: Felix Eckhofer Date: Wed, 16 Sep 2015 15:29:46 +0200 Subject: [PATCH 3/3] Replace shell by btrbk There's no point of having the shell process around while the backup is running. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d8a9820..fd17a82 100644 --- a/README.md +++ b/README.md @@ -147,7 +147,7 @@ Retention policy: /etc/cron.daily/btrbk: #!/bin/sh - /usr/sbin/btrbk -q -c /etc/btrbk/btrbk-mylaptop.conf run + exec /usr/sbin/btrbk -q -c /etc/btrbk/btrbk-mylaptop.conf run - This will create snapshots on a daily basis: @@ -227,7 +227,7 @@ regular basis: /etc/cron.daily/btrbk: #!/bin/sh - /usr/sbin/btrbk -q run + exec /usr/sbin/btrbk -q run Note that you can run btrbk more than once a day, e.g. by creating the above script in `/etc/cron.hourly/btrbk`, or by calling `sudo btrbk