Skip site navigation (1) Skip section navigation (2)

Re: automatic pg_dumpall

From: Victor Sudakov <vas(at)mpeks(dot)no-spam-here(dot)tomsk(dot)su>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: automatic pg_dumpall
Date: 2004-03-26 04:26:41
Message-ID: c40be1$2qqv$1@mpeks.tomsk.su (view raw or flat)
Thread:
Lists: pgsql-admin
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(at)postgresql(dot)org
> 

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/149(at)fidonet http://vas.tomsk.ru/

In response to

pgsql-admin by date

Next:From: Doug QualeDate: 2004-03-26 14:53:07
Subject: Re: License for PostgreSQL for commercial purpose
Previous:From: Kemin ZhouDate: 2004-03-26 01:00:12
Subject: Re: automatic pg_dumpall

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group