Skip to content

Commit

Permalink
fix gpg trust
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed Jul 25, 2024
1 parent 2774112 commit 12b4d13
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 --no-tty --encrypt --recipient ${GPG_KEYID} -o /backups/backup.sql.gz.gpg /backups/backup.sql.gz
gpg --no-tty --encrypt --trust-model always --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 12b4d13

Please sign in to comment.