Skip to content
Snippets Groups Projects
Unverified Commit aca41c2a authored by MaxMls's avatar MaxMls Committed by GitHub
Browse files

rm db.dump.gpg in case of error (#36)

parent 25644969
Branches master
No related tags found
No related merge requests found
......@@ -19,6 +19,7 @@ s3_uri_base="s3://${S3_BUCKET}/${S3_PREFIX}/${POSTGRES_DATABASE}_${timestamp}.du
if [ -n "$PASSPHRASE" ]; then
echo "Encrypting backup..."
rm -f db.dump.gpg
gpg --symmetric --batch --passphrase "$PASSPHRASE" db.dump
rm db.dump
local_file="db.dump.gpg"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment