Permalink
Browse files

force TCP connection to postgresql in db_backup

  • Loading branch information...
birarda committed Sep 11, 2016
1 parent 66cebf0 commit 5685456651cb4b14ed72ba227c6f048d623c584f
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cron/db_backup.sh
View
@@ -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.