I can successfully run pgdump by hand with a command like this:
pg_dump my_database_name -o -c -f dbdump -u
To run this same command unattended / automated I need a way to specify the user name and password automatically. I understand PostgreSQL lets you do that with .pgpass, but I cannot seem to get .pgpass working for me. I don't want to use environment variables since that approach is not secure.
Is there a better way? I've seen this post http://www.hostingrails.com/forums/wiki_thread/22 but it applies only to MySQL.
Osh
P.S. The PostgreSQL admin tool seems to generate nothing at all for backups.