Skip to content
Snippets Groups Projects
Unverified Commit d3f3e85e authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

Use parallel bzip for compression

parent b37f36b9
No related merge requests found
......@@ -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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment