X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 8E862D1B891 for ; Fri, 26 Mar 2004 00:59:41 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 60918-03 for ; Thu, 25 Mar 2004 20:59:45 -0400 (AST) Received: from fedk0910.ferring.com (fedk0905.ferring.com [213.237.141.20]) by svr1.postgresql.org (Postfix) with ESMTP id 2FCB4D1ED43 for ; Thu, 25 Mar 2004 20:59:37 -0400 (AST) Received: from fedk0005.Fic.ferring.com (unverified) by fedk0910.ferring.com (Content Technologies SMTPRS 4.3.10) with ESMTP id ; Fri, 26 Mar 2004 01:59:17 +0100 Received: from ferring.com (10.20.100.63 [10.20.100.63]) by fedk0005.Fic.ferring.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id HJQ4B5QX; Fri, 26 Mar 2004 01:59:42 +0100 Message-ID: <4063809C.3050001@ferring.com> Date: Thu, 25 Mar 2004 17:00:12 -0800 From: Kemin Zhou User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Victor Sudakov Cc: pgsql-admin Subject: Re: automatic pg_dumpall References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/344 X-Sequence-Number: 12913 Victor Sudakov wrote: >Colleagues, > >If I have to organize an automatic nightly pg_dumpall, how do I handle >authentication ? I do not want to create a passwordless superuser (or >trust method in pg_hba.conf), and there is noone to enter the password >manually. Is there another recipe? > >Thanks in advance for any input. > > > use crontab run this daily su - postgres -c "/usr/local/pgsql/bin/pg_dump -b -Ft -f db.tar -h machine_name_of_db your_db" Kemin ********************************************************************** Proprietary or confidential information belonging to Ferring Holding SA or to one of its affiliated companies may be contained in the message. If you are not the addressee indicated in this message (or responsible for the delivery of the message to such person), please do not copy or deliver this message to anyone. In such case, please destroy this message and notify the sender by reply e-mail. Please advise the sender immediately if you or your employer do not consent to e-mail for messages of this kind. Opinions, conclusions and other information in this message represent the opinion of the sender and do not necessarily represent or reflect the views and opinions of Ferring. **********************************************************************