Use parallel bzip2 (pbzip2) instead of regular bzip2.

This commit is contained in:
Achim D. Brucker 2017-06-30 20:54:08 +01:00
parent 062f2dea26
commit 5702a43368
1 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ fi
if [ -f "$ARCHIVE"/db/aa-ac.sqlite ]; then
date +'* Start Compressing aa-ac.sqlite Data Base (%c)'
bzip2 "$ARCHIVE"/db/aa-ac.sqlite
pbzip2 "$ARCHIVE"/db/aa-ac.sqlite
if [ $? -ne "0" ]; then
echo " Creation of aa-ac.sqlite.bz2 failed"
else
@ -55,7 +55,7 @@ fi
if [ -f "$ARCHIVE"/db/full.sqlite ]; then
date +'* Start Compressing full.sqlite Data Base (%c)'
bzip2 "$ARCHIVE"/db/full.sqlite
pbzip2 "$ARCHIVE"/db/full.sqlite
if [ $? -ne "0" ]; then
echo " Creation of full.sqlite.bz2 failed"
else
@ -66,7 +66,7 @@ fi
date +'* Start Compressing Log files (%c)'
for f in $ARCHIVE/log/*.log; do
bzip2 $f
pbzip2 $f
done
date +'* Update Finished (%c)'