How to create a backup of an POSTGRES DB using bash?
I have difficulties including the username and password with pg_dump
Roland
2009-10-14 18:51:52
+4
A:
pg_dump -U some_user_name -f dump.file -Fc database_name
That's all.
If you need to authenticate with password - use pgpass file.
depesz
2009-10-14 19:17:14