Use xz to compress the journal files

Uncompressed the journal files are ~128MB, compressed with gzip -9 they
get down to about 27MB. Using xz defaults gets us down to ~15MB and we
can run the compression using all the available cpus so that its not
terribly slow.

Change-Id: If1bc0366793a47f8115df143627d10997608c4a0
This commit is contained in:
Clark Boylan 2017-05-25 15:34:47 -07:00
parent 55c308c90d
commit 7421d0bb56
1 changed files with 1 additions and 1 deletions

View File

@ -934,7 +934,7 @@ function cleanup_host {
sudo find $BASE/logs -iname '*.txt' -execdir gzip -9 {} \+
sudo find $BASE/logs -iname '*.dat' -execdir gzip -9 {} \+
sudo find $BASE/logs -iname '*.conf' -execdir gzip -9 {} \+
sudo find $BASE/logs -iname '*.journal' -execdir gzip -9 {} \+
sudo find $BASE/logs -iname '*.journal' -execdir xz --threads=0 {} \+
# Disable detailed logging as we return to the main script
$xtrace