Skip to content

Commit

Permalink
Undo - Uncommend dev nulls to troubleshoot database restore in main b…
Browse files Browse the repository at this point in the history
…ranch
  • Loading branch information
Xavier Metichecchia authored and Xavier Metichecchia committed May 23, 2024
1 parent 79c793e commit c101781
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/pipeline/s3-backup-download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ backup_bucket="${PROJECT}-backup-${BRANCH}"
space="${PROJECT}-${BRANCH}"

echo "Getting backup bucket credentials..."
# {
{
cf target -s "${space}"

service="${backup_bucket}"
Expand All @@ -31,10 +31,10 @@ echo "Getting backup bucket credentials..."
AWS_SECRET_ACCESS_KEY=$(echo "${s3_credentials}" | jq -r '.credentials.secret_access_key')
export AWS_SECRET_ACCESS_KEY

# } &> /dev/null
} &> /dev/null

echo "Downloading backup..."
# {
{

rm -f "*.sql"

Expand All @@ -49,6 +49,6 @@ echo "Downloading backup..."

cf delete-service-key "${service}" "${service_key}" -f

# } &> /dev/null
} &> /dev/null

echo "File downloaded: ${DATABASE_FILE}"

0 comments on commit c101781

Please sign in to comment.