So, I've been working on setting up a pg_dumpall
but I cannot get it to work without entering a password.
I have tried:
How to pass in password to pg_dump?
and followed that to here:
http://www.postgresql.org/docs/8.4/static/libpq-pgpass.html
and still no luck.
My string and reaction:
pg_dumpall -U user > /path/to_my/folder/test2.sql
Password:
Password:
Password:
Password:
Password:
Password:
Password:
Password:
Password:
Password:
(I will make this a bash script when I get it to work without a password)
I have tried to use -w
but it won't dump unless there is a password. I also have put that .pgpass file in my home directory and have tried moving them to other user's home directories.
Maybe I just didn't make my file right or I don't know maybe it's in the wrong place but here that is:
*:*:*:user:password
Any help would be great.
Thanks