From 4d0c8cdac49e798b0ab8d85a0193444694105ebf Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Wed, 15 Nov 2023 22:22:18 -0500 Subject: [PATCH] use single threaded mode for zstd --- local-backup | 2 +- remote-backup | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/local-backup b/local-backup index 0c12b935..3fcd5240 100755 --- a/local-backup +++ b/local-backup @@ -11,7 +11,7 @@ ssh $remote "mkdir local-backup" ssh $remote "mkdir local-backup/$timestamp" ssh $remote "sqlite3 attestation.db \".backup local-backup/$timestamp/attestation.db\"" ssh $remote "sqlite3 samples.db \".backup local-backup/$timestamp/samples.db\"" -ssh $remote "tar -cC local-backup $timestamp | zstd -9 | age -r \$(cat backup-public-key.txt) -o local-backup/$timestamp.tar.zst.age" +ssh $remote "tar -cC local-backup $timestamp | zstd --single-thread -9 | age -r \$(cat backup-public-key.txt) -o local-backup/$timestamp.tar.zst.age" rsync -v --fsync --preallocate $remote:./local-backup/$timestamp.tar.zst.age backup/ ssh $remote "rm -rf local-backup" diff --git a/remote-backup b/remote-backup index 7c97f758..4d57e5a8 100755 --- a/remote-backup +++ b/remote-backup @@ -9,7 +9,7 @@ mkdir remote-backup mkdir remote-backup/$timestamp sqlite3 attestation.db ".backup remote-backup/$timestamp/attestation.db" sqlite3 samples.db ".backup remote-backup/$timestamp/samples.db" -tar -cC remote-backup $timestamp | zstd -9 | age -r $(cat backup-public-key.txt) -o remote-backup/$timestamp.tar.zst.age +tar -cC remote-backup $timestamp | zstd --single-thread -9 | age -r $(cat backup-public-key.txt) -o remote-backup/$timestamp.tar.zst.age sshpass -f cloud-archive-password.txt rsync -v ./remote-backup/$timestamp.tar.zst.age pca@gateways.storage.gra.cloud.ovh.net:backup/ rm -rf remote-backup