From 2774112508823796bd4d5b1dcb007f7c65d749dd Mon Sep 17 00:00:00 2001 From: Markus Keil Date: Thu, 25 Jul 2024 11:32:44 +0200 Subject: [PATCH] possible gpg fix --- backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index d60b983..8e03746 100644 --- a/backup.sh +++ b/backup.sh @@ -9,7 +9,7 @@ PGPASSWORD=${!PSQL_PASS} pg_dump -h ${PSQL_HOST} -U ${PSQL_USER} -C ${PSQL_NAME echo "Compress backup..." gzip /backups/backup.sql echo "Encrypt backup..." -gpg --encrypt --recipient ${GPG_KEYID} -o /backups/backup.sql.gz.gpg /backups/backup.sql.gz +gpg --no-tty --encrypt --recipient ${GPG_KEYID} -o /backups/backup.sql.gz.gpg /backups/backup.sql.gz echo "Copy to S3..." mc cp /backups/backup.sql.gz.gpg s3/${S3_BUCKET}/db-${PSQL_NAME}-$(date "+%Y-%m-%dT%H-%M-%S").sql.gz.gpg echo "Notify HC..."