From a69efd9b3105e0c4abf1fb8f9944fac64d9c5165 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Sat, 6 Mar 2021 21:43:55 +0100 Subject: Add gzip compression --- app/backup/build/backup-matrix/do_backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/backup') diff --git a/app/backup/build/backup-matrix/do_backup.sh b/app/backup/build/backup-matrix/do_backup.sh index 9f37fea..9b84762 100755 --- a/app/backup/build/backup-matrix/do_backup.sh +++ b/app/backup/build/backup-matrix/do_backup.sh @@ -22,6 +22,6 @@ pg_dump -v -Fc -U $MATRIX_PSQL_USER -h psql-proxy.service.2.cluster.deuxfleurs.f MATRIX_MEDIA="/mnt/glusterfs/chat/matrix/synapse/media" echo "export local_content" -tar -vcf - ${MATRIX_MEDIA} | \ +tar -vzcf - ${MATRIX_MEDIA} | \ age -r "$(cat /root/.ssh/id_ed25519.pub)" | \ ssh backuphost "cat > $TARGET_SSH_DIR/matrix/media-$(date --iso-8601=minute).gz.age" -- cgit v1.2.3