From: Dick Davies <rasputnik@hellooperator.net>
To: PostgreSQL Admin <pgsql-admin@postgresql.org>
Subject: automating remote pg_dump
Date: Thu, 10 Feb 2005 22:00:00 +0000
Message-ID: <20050210220000.GE35853@eris.tenfour> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: rasputnik@hellooperator.net
Subject: Re: automating remote pg_dump
In-Reply-To: <20050210220000.GE35853@eris.tenfour>
References: <20050210220000.GE35853@eris.tenfour>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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