pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pg_dump on remote machine
7+ messages / 4 participants
[nested] [flat]

* pg_dump on remote machine
@ 2005-04-08 13:25  Askar Zaidi <askar@mail.nplindia.ernet.in>
  0 siblings, 3 replies; 7+ messages in thread

From: Askar Zaidi @ 2005-04-08 13:25 UTC (permalink / raw)
  To: pgsql-admin

Hello, 
Iam trying to take a dump of my DB from one machine to another in this  
fashion: 
 
on the secondary database: 
 
pg_dump -b -h 172.16.1.20 (dbname) > /tmp/dump.dump 
 
my error is : 
could not connect to database etc...etc.. 
 
although the file dump.dump in /tmp is created.(it's empty) 
 
I can access remote database on my secondary through phpPgAdmin. 
 
Any clues?? 
 
Askar Zaidi  
Central Computer Facility,  
National Physical Laboratory,   
New Delhi, India 
 



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: pg_dump on remote machine
@ 2005-04-08 13:51  Joel Fradkin <jfradkin@wazagua.com>
  parent: Askar Zaidi <askar@mail.nplindia.ernet.in>
  2 siblings, 0 replies; 7+ messages in thread

From: Joel Fradkin @ 2005-04-08 13:51 UTC (permalink / raw)
  To: 'Askar Zaidi' <askar@mail.nplindia.ernet.in>; pgsql-admin

I have used pgadmin III to do that so you may want to try it.

Joel Fradkin
 
Wazagua, Inc.
2520 Trailmate Dr
Sarasota, Florida 34243
Tel.  941-753-7111 ext 305
 
jfradkin@wazagua.com
www.wazagua.com
Powered by Wazagua
Providing you with the latest Web-based technology & advanced tools.
C 2004. WAZAGUA, Inc. All rights reserved. WAZAGUA, Inc
 This email message is for the use of the intended recipient(s) and may
contain confidential and privileged information.  Any unauthorized review,
use, disclosure or distribution is prohibited.  If you are not the intended
recipient, please contact the sender by reply email and delete and destroy
all copies of the original message, including attachments.
 

 

-----Original Message-----
From: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Askar Zaidi
Sent: Friday, April 08, 2005 8:25 AM
To: pgsql-admin@postgresql.org
Subject: [ADMIN] pg_dump on remote machine

Hello, 
Iam trying to take a dump of my DB from one machine to another in this  
fashion: 
 
on the secondary database: 
 
pg_dump -b -h 172.16.1.20 (dbname) > /tmp/dump.dump 
 
my error is : 
could not connect to database etc...etc.. 
 
although the file dump.dump in /tmp is created.(it's empty) 
 
I can access remote database on my secondary through phpPgAdmin. 
 
Any clues?? 
 
Askar Zaidi  
Central Computer Facility,  
National Physical Laboratory,   
New Delhi, India 
 

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

               http://archives.postgresql.org




^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: pg_dump on remote machine
@ 2005-04-08 14:20  Brad Nicholson <bnichols@ca.afilias.info>
  parent: Askar Zaidi <askar@mail.nplindia.ernet.in>
  2 siblings, 0 replies; 7+ messages in thread

From: Brad Nicholson @ 2005-04-08 14:20 UTC (permalink / raw)
  To: Askar Zaidi <askar@mail.nplindia.ernet.in>; +Cc: pgsql-admin

Check the pg_hba.conf file to see if you have access to the database, as 
user that you are trying to connect as, from the IP you are trying to 
connect from.
I'll bet that you don't.  Check you postgres error logs, and you should 
see the refused connection.  You might have to tweak the logging settings.

Also, the exact error you get would be a bit more helpful.

Askar Zaidi wrote:

>Hello, 
>Iam trying to take a dump of my DB from one machine to another in this  
>fashion: 
> 
>on the secondary database: 
> 
>pg_dump -b -h 172.16.1.20 (dbname) > /tmp/dump.dump 
> 
>my error is : 
>could not connect to database etc...etc.. 
> 
>although the file dump.dump in /tmp is created.(it's empty) 
> 
>I can access remote database on my secondary through phpPgAdmin. 
> 
>Any clues?? 
> 
>Askar Zaidi  
>Central Computer Facility,  
>National Physical Laboratory,   
>New Delhi, India 
> 
>
>---------------------------(end of broadcast)---------------------------
>TIP 6: Have you searched our list archives?
>
>               http://archives.postgresql.org
>  
>


-- 
Brad Nicholson  416-673-4106
Database Administrator, Afilias Canada Corp. 




^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: pg_dump on remote machine
@ 2005-04-08 14:20  Thomas Kaminski <kaminski@univention.de>
  parent: Askar Zaidi <askar@mail.nplindia.ernet.in>
  2 siblings, 1 reply; 7+ messages in thread

From: Thomas Kaminski @ 2005-04-08 14:20 UTC (permalink / raw)
  To: pgsql-admin

Hello,

> Iam trying to take a dump of my DB from one machine to another in
this  
> fashion: 
>  
> on the secondary database: 
>  
> pg_dump -b -h 172.16.1.20 (dbname) > /tmp/dump.dump 

Can you get connect with
psql -h 172.16.1.20 (dbname)


I think, you /etc/pg_hba.conf must be configured to grant this access.
And don't forget to reload the postmaster after this.

Look in the log of postgresql.

Bye Thomas





^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: pg_dump on remote machine
@ 2005-04-11 07:34  Thomas Kaminski <kaminski@univention.de>
  parent: Thomas Kaminski <kaminski@univention.de>
  0 siblings, 0 replies; 7+ messages in thread

From: Thomas Kaminski @ 2005-04-11 07:34 UTC (permalink / raw)
  To: pgsql-admin

Hello,

> Yes I can get connected by psql -h 172.16.30.2 (dbname) and I can also connect
to the remote DB using phpPgAdmin. I have given the permissions on
pg_hba.conf file.

Hmmm,
when you connected with psql -h 172.16.30.2 (dbname),
are you able to get data with the select-command?
If not, you must grant access with the grant-command.

And you should look to the logfile of postgresql.

Bye Thomas





^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pg_dump on remote machine
@ 2005-04-11 09:34  Askar Zaidi <askar@mail.nplindia.ernet.in>
  0 siblings, 1 reply; 7+ messages in thread

From: Askar Zaidi @ 2005-04-11 09:34 UTC (permalink / raw)
  To: pgsql-admin

I have been trying to dump my data from one machine to another. I have 
proper configuration in the pg_hba.conf file on both machines. I can connect 
to the remote DB using : 
 
psql -h 172.16.1.39 ha 
 
I then run the command: 
 
pg_dump -h 172.16.1.20 evo10 
 
to get the DB evo10 from machine 172.16.1.20 
 
it displays me a few messgs saying that PostgreSql database dump complete. 
 
Finally I check the machine on which dump was taken but the DB evo10 simply 
does not exist. If the pg_dump is taking a dump without any warning or error 
whatsoever..where is my DB dump??? 
 
Any clues?? 
 
Thanks 
 
Askar Zaidi  
Central Computer Facility,  
National Physical Laboratory,   
New Delhi, India 
 



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: pg_dump on remote machine
@ 2005-04-11 10:17  Thomas Kaminski <kaminski@univention.de>
  parent: Askar Zaidi <askar@mail.nplindia.ernet.in>
  0 siblings, 0 replies; 7+ messages in thread

From: Thomas Kaminski @ 2005-04-11 10:17 UTC (permalink / raw)
  To: Askar Zaidi <askar@mail.nplindia.ernet.in>; +Cc: pgsql-admin

Hello,

> I have been trying to dump my data from one machine to another. I have 
> proper configuration in the pg_hba.conf file on both machines. I can connect 
> to the remote DB using : 
>  
> psql -h 172.16.1.39 ha 
>  
> I then run the command: 
>  
> pg_dump -h 172.16.1.20 evo10 
>  
> to get the DB evo10 from machine 172.16.1.20 
>  
> it displays me a few messgs saying that PostgreSql database dump complete. 
>  
> Finally I check the machine on which dump was taken but the DB evo10 simply 
> does not exist. If the pg_dump is taking a dump without any warning or error 
> whatsoever..where is my DB dump??? 
>  
> Any clues?? 


try
pg_dump -h 172.16.1.20 evo10 > dumpfile.sql


Bye Thomas





^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2005-04-11 10:17 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-04-08 13:25 pg_dump on remote machine Askar Zaidi <askar@mail.nplindia.ernet.in>
2005-04-08 13:51 ` Joel Fradkin <jfradkin@wazagua.com>
2005-04-08 14:20 ` Brad Nicholson <bnichols@ca.afilias.info>
2005-04-08 14:20 ` Thomas Kaminski <kaminski@univention.de>
2005-04-11 07:34   ` Thomas Kaminski <kaminski@univention.de>
2005-04-11 09:34 pg_dump on remote machine Askar Zaidi <askar@mail.nplindia.ernet.in>
2005-04-11 10:17 ` Thomas Kaminski <kaminski@univention.de>

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