Skip to content

Commit

Permalink
possible gpg fix
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed Jul 25, 2024
1 parent 277af5a commit 2774112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
Expand Down

0 comments on commit 2774112

Please sign in to comment.