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