aboutsummaryrefslogtreecommitdiffstats
path: root/backuper.sh
diff options
context:
space:
mode:
Diffstat (limited to 'backuper.sh')
-rw-r--r--backuper.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/backuper.sh b/backuper.sh
index 713d94f..84592ca 100644
--- a/backuper.sh
+++ b/backuper.sh
@@ -27,6 +27,7 @@ TAR_EXTRA_PARAMS=""
TAR_IGNORE_FILE_CHANGE="no"
SSH_EXTRA_PARAMS=""
SSH_CONNECTION=""
+PBZIP2_PROCESSES=""
STORE=""
AFTER=""
FILE_TYPE=""
@@ -180,6 +181,11 @@ ssh_use_connection() {
SSH_CONNECTION="$CONNSTR"
}
+pbzip_processes() {
+ CNT="$1"
+ PBZIP2_PROCESSES="-p$CNT"
+}
+
store() {
STORE="$@"
}
@@ -330,7 +336,7 @@ start_command() {
start_pipeline() {
add_stage "mbuffer -q -m "$MBUFFER_SIZE""
- add_stage "pbzip2"
+ add_stage "pbzip2 $PBZIP2_PROCESSES"
add_stage "mbuffer -q -m "$MBUFFER_SIZE""
add_stage "gpg --trust-model always --batch --yes -z0 $GPG_RECIPIENTS_LIST -e"
## OK, this is strange. If store command fail, mbuffer forks itself with