Notes compression

pigz remplace gzip

7z 7zip PeaZip

lzop, lz4 pour la rapidité (similaire à gzip)

xz / pxz pour la compression

pbzip2

rsync ⇒ voir gzip --rsyncable

ppack_lz.sh

#!/bin/sh PARALLEL="$(nproc --ignore=1)" EXT="${0##*_}" case "$EXT" in bz2) CMD='bzip2 -9' ;; gz) CMD='gzip -9' ;; lz) CMD='lzip -9' ;; xz) CMD='xz -9e' ;; zst) CMD='zstd --rm --single-thread --ultra -22' ;; esac if [ -z "$1" ] then echo "Specify files to pack into ${EXT} files." else for x do printf '%s\0' "$x" done | nice xargs -0 -L 1 -P "$PARALLEL" $CMD fi

Source : https://www.linuxjournal.com/content/parallel-shells-xargs-utilize-all-your-cpu-cores-unix-and-windows