pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedautomating remote pg_dump
2+ messages / 2 participants
[nested] [flat]
* automating remote pg_dump
@ 2005-02-10 22:00 Dick Davies <rasputnik@hellooperator.net>
0 siblings, 1 reply; 2+ messages in thread
From: Dick Davies @ 2005-02-10 22:00 UTC (permalink / raw)
To: pgsql-admin
I notice pg_dump does'nt have a '-P' flag to provide a password, so I assume
you generally use it to pull data through a socket.
I need to run it remotely (to dump a live db and clone its structure to a test
db for unit testing), has anyone got a way to do this?
I've tried 'echo pass | pg_dump -h host -U user dbname' , but she doesnae like it....
extra points for answers that don't include the word 'expect' :D
--
'Ugh, it's like there's a party in my mouth and everyone's throwing up.'
-- Fry
Rasputin :: Jack of All Trades - Master of Nuns
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: automating remote pg_dump
@ 2005-02-10 22:25 Tom Lane <tgl@sss.pgh.pa.us>
parent: Dick Davies <rasputnik@hellooperator.net>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2005-02-10 22:25 UTC (permalink / raw)
To: Dick Davies <rasputnik@hellooperator.net>; +Cc: pgsql-admin
Dick Davies <rasputnik@hellooperator.net> writes:
> I notice pg_dump does'nt have a '-P' flag to provide a password,
~/.pgpass is the preferred solution.
http://www.postgresql.org/docs/8.0/static/libpq-pgpass.html
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2005-02-10 22:25 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-02-10 22:00 automating remote pg_dump Dick Davies <rasputnik@hellooperator.net>
2005-02-10 22:25 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox