Add gzip compression

This commit is contained in:
Quentin 2021-03-06 21:43:55 +01:00
parent 96f2978a7f
commit a69efd9b31

View file

@ -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"