Re: remote dumping of databases - Mailing list pgsql-general

From dev@archonet.com
Subject Re: remote dumping of databases
Date
Msg-id 20010306.11560300@client.archonet.com
Whole thread Raw
In response to remote dumping of databases  (Frank Nijenhuis <fnijen@bos.nl>)
List pgsql-general
On 3/6/01, 8:55:05 AM, Frank Nijenhuis <fnijen@bos.nl> wrote regarding
[GENERAL] remote dumping of databases:

[snip]
> Now I want them to be able to dump their own database. And when I use the
> command without piping the result to a file everything works.
> (pg_dump -h <remote pgsqlserver) -u <dbname>.
> You get the user prompt and password prompt..How ever..how do you get the
> content of the dump to a file??? Every pipe action will result in endless
> waiting, pg_dumps waits for the username/password.......

> Is there an solution of do I overlook something here???

You could look at wrapping pg_dump in something like "expect" or "chat"
which are designed to deal with interactive programs. You might find
useful examples relating to changing passwords since passwd has a similar
problem.

- Richard Huxton

pgsql-general by date:

Previous
From: "Stefan Waidele jun."
Date:
Subject: Re: interval question
Next
From: dev@archonet.com
Date:
Subject: Re: List of all system tables.