aboutsummaryrefslogtreecommitdiff
path: root/app/backup/build/backup-matrix
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2021-03-06 21:43:55 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2021-03-06 21:43:55 +0100
commita69efd9b3105e0c4abf1fb8f9944fac64d9c5165 (patch)
treeda3ed853a740619f864ad7060b87bb22774da374 /app/backup/build/backup-matrix
parent96f2978a7f6bfeb945953dc7edfaca9f50f3d6c6 (diff)
downloadinfrastructure-a69efd9b3105e0c4abf1fb8f9944fac64d9c5165.tar.gz
infrastructure-a69efd9b3105e0c4abf1fb8f9944fac64d9c5165.zip
Add gzip compression
Diffstat (limited to 'app/backup/build/backup-matrix')
-rwxr-xr-xapp/backup/build/backup-matrix/do_backup.sh2
1 files changed, 1 insertions, 1 deletions
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"