password option in pg_dumpall

From: "rkmr(dot)em(at)gmail(dot)com" <rkmr(dot)em(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: password option in pg_dumpall
Date: 2008-02-08 01:00:51
Message-ID: e04d2e90802071700s13fce9dfs1dac8ecd21ec11d2@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

is there anyway of specifying password in the command line interface
of pg_dumpall??

this my script, and it asks for password for every host...
thanks

'''
#!/bin/sh
for line in `cat /home/mark/work/infrastructure/farm_all`
do
pg_dumpall -h $line -U postgres | bzip2 > "$line.bz2"
done
'''

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-02-08 01:21:27 Re: password option in pg_dumpall
Previous Message Jeff Davis 2008-02-08 00:58:36 Re: Test text value as interval