From d3f3e85ea80b9d750db58a3c171028d096ed4f9a Mon Sep 17 00:00:00 2001 From: Michal 'vorner' Vaner <michal.vaner@nic.cz> Date: Tue, 27 Jan 2015 16:09:52 +0100 Subject: [PATCH] Use parallel bzip for compression --- backup/backup-turris | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backup/backup-turris b/backup/backup-turris index ef00883..4b92539 100755 --- a/backup/backup-turris +++ b/backup/backup-turris @@ -28,6 +28,5 @@ set -e renice -n 10 -p $$ -# Use compression externally from pg_dump ‒ xz is better than gz and this can run on separate core -# The xz -5 is a compromise between size and speed. But we may revisit later, when the DB is larger. -(echo turris ; pg_dump -Fc -Z 0 turris | xz -5 | gpg -e -r db@turris.cz) | ssh db-backup@217.31.192.99 +# Use compression externally from pg_dump ‒ use multiple processors for that +(echo turris ; pg_dump -Fc -Z 0 turris | pbzip2 | gpg -e -z 0 -r db@turris.cz) | ssh db-backup@217.31.192.99 -- GitLab