X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2AC2553C01 for ; Fri, 1 Apr 2005 05:54:02 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 53714-02 for ; Fri, 1 Apr 2005 04:54:01 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.200]) by svr1.postgresql.org (Postfix) with ESMTP id 9946E53C17 for ; Fri, 1 Apr 2005 05:54:00 +0100 (BST) Received: by wproxy.gmail.com with SMTP id 68so792257wra for ; Thu, 31 Mar 2005 20:54:00 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=SKds4NxCnDHRCAvA6Izg0WIEPmnnK19G/m9t1uutSMTUqssvkHSdsbGm8cn8hHmNFwq8t8UC163H4HjA3b8xH1vXrEIOXSh1o9WWnVAVzqbptN2lVrQ98AO6Q7aSb5lDy2XBwjPChpttNjUEsVcYMJ8X1YkiBEK0CdyfyK5Ze1o= Received: by 10.54.3.73 with SMTP id 73mr518791wrc; Thu, 31 Mar 2005 20:54:00 -0800 (PST) Received: by 10.54.28.46 with HTTP; Thu, 31 Mar 2005 20:54:00 -0800 (PST) Message-ID: <77b69d2105033120543ca670a7@mail.gmail.com> Date: Fri, 1 Apr 2005 10:24:00 +0530 From: "Vishal Kashyap @ [SaiHertz]" Reply-To: "Vishal Kashyap @ [SaiHertz]" To: pgsql-php@postgresql.org Subject: PostgreSQL Backup Script Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.248 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200504/1 X-Sequence-Number: 3085 Dear all, I am stuck with database backup. While using pg_dump the utility asks for password but since I require this process to be automated the password prompt is giving me headaches is their any way by which can pass the password automatically. Like setting up a variable in php which passes the password to the pg_dump utility on prompt this way the whole process of pg_dump would get automated. One obvious solution was to use .pgpass but it does not appeal me because it is again a security threat. any pointers or help may lead to unlocked secret. -- With Best Regards, Vishal Kashyap. Lead Software Developer, http://saihertz.com, http://vishalkashyap.tk