Skip to content

Commit

Permalink
fix: try to make backups work
Browse files Browse the repository at this point in the history
  • Loading branch information
bnussman committed Oct 18, 2024
1 parent 8a4df49 commit 3445597
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ jobs:
run: sudo apt install -y postgresql-client jq s3cmd

- name: Filename
run: echo "file_name=$(date -u +'%Y-%m-%d-%H-%M-%S').sql.gz" >> $GITHUB_ENV
run: |
echo "file_name=$(date -u +'%Y-%m-%d-%H-%M-%S').sql.gz" >> $GITHUB_ENV
echo "${{ env.file_name }}"
- name: Dump database
run: pg_dump postgresql://${{ env.DB_USER }}:$( printf %s '${{ env.DB_PASSWORD }}'| jq -sRr @uri)@${{ env.DB_HOST_PUBLIC }}:5432/beep?sslmode=require | gzip > ${{ env.file_name }}
Expand Down

0 comments on commit 3445597

Please sign in to comment.