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 62BCED1C4ED for ; Fri, 26 Mar 2004 04:55:47 +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 31595-03 for ; Fri, 26 Mar 2004 00:55:38 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 3128DD1B459 for ; Fri, 26 Mar 2004 00:55:41 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i2Q4tT1Y037272 for ; Fri, 26 Mar 2004 04:55:29 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i2Q4Tw3m033312 for pgsql-admin@postgresql.org; Fri, 26 Mar 2004 04:29:58 GMT From: Victor Sudakov X-Newsgroups: comp.databases.postgresql.admin Subject: Re: automatic pg_dumpall Date: Fri, 26 Mar 2004 04:26:41 +0000 (UTC) Organization: AO "Svyaztransneft", SibPTUS Lines: 42 Message-ID: References: <4063809C.3050001@ferring.com> X-Complaints-To: noc@sibptus.tomsk.ru X-Comment-To: kemin.zhou@ferring.com (Kemin Zhou) X-PGP-Key: http://vas.tomsk.ru/vas.asc User-Agent: tin/1.5.16-20030125 ("Bubbles") (UNIX) (FreeBSD/4.9-RELEASE-p4 (i386)) To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/346 X-Sequence-Number: 12915 Kemin Zhou wrote: >> >>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" I am afraid you did not understand my question. In your scenario, pg_dump will ask for the authentification of the user "postgres". I have already stated above that I do not want to create a passwordless superuser (or trust method in pg_hba.conf). > > 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. > ********************************************************************** > > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org > -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/149@fidonet http://vas.tomsk.ru/