HowTo pg_dump with no password

Ever wanted to have pg_dump running via cron?

Well… now you can!
Create a file called .pgpass in your user directory
and put following content inside:


Note: might also be useful to put permissions right:

chmod 0600 ~/.pgpass

Posted on January 25, 2012 at 16:53 by admin · Permalink
In: English, PostgreSQL

Leave a Reply