X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 841D9D1B535 for ; Mon, 22 Sep 2003 11:41:48 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 11059-02 for ; Mon, 22 Sep 2003 08:41:40 -0300 (ADT) Received: from smtp012.mail.yahoo.com (smtp012.mail.yahoo.com [216.136.173.32]) by svr1.postgresql.org (Postfix) with SMTP id 91F0ED1B525 for ; Mon, 22 Sep 2003 08:41:36 -0300 (ADT) Received: from ptil-138-190-chn.primus-india.net (HELO IVESIA67) (sgnerd@203.196.190.138 with login) by smtp.mail.vip.sc5.yahoo.com with SMTP; 22 Sep 2003 11:41:38 -0000 Message-ID: <007d01c380ff$366684d0$7502a8c0@hdsc.com> Reply-To: "Kumar" From: "Kumar" To: "Richard Huxton" , "psql" References: <011101c380e8$10200dd0$7502a8c0@hdsc.com> <200309221050.34908.dev@archonet.com> Subject: Re: Backup error - Pls help Date: Mon, 22 Sep 2003 17:16:38 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/247 X-Sequence-Number: 15225 While I issue which pg_dump it is showed me /usr/local/pg_dump But how to run the backup utility pg_dump to backup my database. ----- Original Message ----- From: "Richard Huxton" To: "Kumar" ; "psql" Sent: Monday, September 22, 2003 3:20 PM Subject: Re: [SQL] Backup error - Pls help > On Monday 22 September 2003 10:01, Kumar wrote: > > Hi, > > > > I have 2 versions of Postgres server 7.2 & 7.3.4 installed on Linux server > > 7.3. I have not started the Postgres Server 7.2 which is located at > > /var/library/pgsql. > > RedHat 7.3 I guess you mean? > > > I am running and using only 7.3.4 located at /usr/local/pgsql. > > > > After I login, I come to the /usr/local/pgsql/bin and then issued the > > following > > > > > > [usr1@Linuxsvr bin]$ pg_dump -h 192.168.2.51 -f /home/usr1/prod.sql prod > > pg_dump: server version: pg_dump.mo; pg_dump version: 7.2.1 > > pg_dump: aborting because of version mismatch (Use the -i option to > > proceed anyway.) [usr1@Linuxsvr bin]$ pg_dump -h 192.168.2.51 -i -f > > /home/usr1/prod.sql prod > > What directory you are in has nothing to do with which copy of a program you > will run. There is a utility called "which" to help you: "which pg_dump". > Almost certainly what you want to do is: > /usr/local/pgsql/bin/pg_dump -h ... > > You probably want to get a book on unix/linux and read up about the various > search paths. > -- > Richard Huxton > Archonet Ltd