diff --git a/virt-backup b/virt-backup index f2311e7..a548333 100644 --- a/virt-backup +++ b/virt-backup @@ -157,6 +157,10 @@ elsif ($opts{compress} eq 'plzip'){ $opts{compext} = ".lz"; $opts{compcmd} = "plzip -c"; } +elsif ($opts{compress} eq 'pigz'){ + $opts{compext} = ".gz"; + $opts{compcmd} = "pigz -c"; +} # Default is gzip elsif (($opts{compress} eq 'gzip') || ($opts{compress} eq '')) { $opts{compext} = ".gz"; @@ -742,7 +746,7 @@ sub usage{ "or RAID10)\n\n" . "\t--snapsize=: The amount of space to use for snapshots. Use the same format as -L option of lvcreate. " . "eg: --snapsize=15G. Default is 5G. For thinly provisionned volumes, this will be ignored\n\n" . - "\t--compress[=[gzip|bzip2|pbzip2|lzop|xz|lzip|plzip]]: On the fly compress the disks images during the dump. If you " . + "\t--compress[=[gzip|bzip2|pbzip2|lzop|xz|lzip|plzip|pigz]]: On the fly compress the disks images during the dump. If you " . "don't specify a compression algo, gzip will be used. For the convert action, the compression uses " . "the internal qcow2 compression feature, and so, it ignores the compression format, in this case --compress " . "is just seen as a boolean flag\n\n" .