-# Check if pigz is available
-if ssh -n $username@$computer "pigz -V 2>/dev/null"; then
- compressor=pigz
-else
- infomsg "pigz missing; falling back to gzip."
- compressor=gzip
+# Check if pigz is available. Note that this may be overridden per-filesystem later.
+compressor=$( findconf compressor $computer )
+if [ -z "$compressor" ]; then
+ if ssh -n $username@$computer "pigz -V 2>/dev/null"; then
+ compressor=pigz
+ else
+ infomsg "pigz missing; falling back to gzip."
+ compressor=gzip
+ fi