Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing pgsql backup.

  • Loading branch information...
commit 0b38e1becec7da7f645070823a0999756e5d0575 1 parent 41709f0
@samuelclay authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  utils/backups/backup_psql.py
View
2  utils/backups/backup_psql.py
@@ -14,7 +14,7 @@
db_pass = settings.DATABASES['default']['PASSWORD']
os.environ['PGPASSWORD'] = db_pass
filename = 'backup_postgresql_%s.sql.gz' % time.strftime('%Y-%m-%d-%H-%M')
-cmd = 'pg_dump -U newsblur -Fc %s > %s' % (db_name, filename)
+cmd = 'pg_dump -U newsblur -h 127.0.0.1 -Fc %s > %s' % (db_name, filename)
print 'Backing up PostgreSQL: %s' % cmd
os.system(cmd)
Please sign in to comment.
Something went wrong with that request. Please try again.