From dba53aa821c653efee758654e7afd5667215b948 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 22 Dec 2014 11:36:49 +0100 Subject: [PATCH] For encrypted backup, do not ask GPG to compress already compressed data. --- output-encrypted-backup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/output-encrypted-backup b/output-encrypted-backup index 2c8f835..2eebb4e 100644 --- a/output-encrypted-backup +++ b/output-encrypted-backup @@ -29,8 +29,8 @@ fi # Check if we have a valid date if echo "$LASTDATE" | /bin/grep -Eq '^[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}$'; then - /usr/bin/nice -n 19 /usr/bin/ionice -c3 /bin/tar --ignore-failed-read --warning=no-file-changed --warning=no-file-ignored --one-file-system -c -C "$FILESYSTEM" --newer="$LASTDATE" --exclude-from="$EXCLUDEFROM" . | /usr/bin/pigz | /usr/bin/gpg --sign --encrypt --cipher-algo aes $GPG_RECIPIENTS + /usr/bin/nice -n 19 /usr/bin/ionice -c3 /bin/tar --ignore-failed-read --warning=no-file-changed --warning=no-file-ignored --one-file-system -c -C "$FILESYSTEM" --newer="$LASTDATE" --exclude-from="$EXCLUDEFROM" . | /usr/bin/pigz | /usr/bin/gpg --sign --encrypt --cipher-algo aes --compress-algo none $GPG_RECIPIENTS else - /usr/bin/nice -n 19 /usr/bin/ionice -c3 /bin/tar --ignore-failed-read --warning=no-file-changed --warning=no-file-ignored --one-file-system -c -C "$FILESYSTEM" --exclude-from="$EXCLUDEFROM" . | /usr/bin/pigz | /usr/bin/gpg --sign --encrypt --cipher-algo aes $GPG_RECIPIENTS + /usr/bin/nice -n 19 /usr/bin/ionice -c3 /bin/tar --ignore-failed-read --warning=no-file-changed --warning=no-file-ignored --one-file-system -c -C "$FILESYSTEM" --exclude-from="$EXCLUDEFROM" . | /usr/bin/pigz | /usr/bin/gpg --sign --encrypt --cipher-algo aes --compress-algo none $GPG_RECIPIENTS fi -- 2.39.2