]> arthur.barton.de Git - backup-script.git/commitdiff
Disable compression for the local system
authorAlexander Barton <alex@barton.de>
Tue, 18 Aug 2015 08:41:37 +0000 (10:41 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 18 Aug 2015 08:41:37 +0000 (10:41 +0200)
bin/backup-script

index 2f2eee154a782c51508a05ef33ac07bf8d85c7f1..0ac5fe242ad22abf5780b953e13027773a7a1524 100755 (executable)
@@ -397,7 +397,11 @@ for f in $sys; do
        post_exec="$post_exec_saved"
 
        # Validate configuration
-       [ "$system" = "localhost" -o "$system" = "127.0.0.1" ] && local=1
+       if [ "$system" = "localhost" -o "$system" = "127.0.0.1" ]; then
+               # Local system
+               local=1
+               compress=0
+       fi
 
        # Make sure "source" ends with a slash ("/")
        case "$source" in