Skip to content

Commit

Permalink
force TCP connection to postgresql in db_backup
Browse files Browse the repository at this point in the history
  • Loading branch information
birarda committed Sep 11, 2016
1 parent 66cebf0 commit 5685456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cron/db_backup.sh
@@ -1,6 +1,6 @@
#!/bin/bash

NOW=$(date +"%Y%m%d_%H%M%S")
cd /home/birarda/pg-backups;/usr/bin/pg_dump -U greatpass greatpass_production | gzip > gp-db.$NOW.sql.gz
cd /home/birarda/pg-backups;/usr/bin/pg_dump -U greatpass -h localhost greatpass_production | gzip > gp-db.$NOW.sql.gz

/home/birarda/.local/bin/aws s3 mv gp-db.$NOW.sql.gz s3://gp-db-prod/db-backup/$1/

0 comments on commit 5685456

Please sign in to comment.