pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sandro Garoffolo <sandro.garoffolo@unito.it>
To: pgsql-admin@postgresql.org
Subject: Re: Create Linux Script for PostgreSQL database backup
Date: Thu, 02 Sep 2004 15:40:04 +0200
Message-ID: <413722B4.9040107@unito.it> (raw)
In-Reply-To: <4136EE84.8040001@3times25.net>
References: <20040901132055.17178.qmail@web61008.mail.yahoo.com>
	<200409020744.03552.tech@glastonburymusic.org.uk>
	<4136C42B.50303@tentacle.net>
	<4136EE84.8040001@3times25.net>



Geoffrey wrote:

> Kaolin Fire wrote:
>
>> For that matter:
>>
>> echo "1   3   *   *   *   postgres   /usr/local/bin/pg_dumpall > 
>> ~/backup.sql" >> /etc/crontab
>>
>> note to remember the two >>'s so you don't obliterate your crontab 
>> like I just did.
>
>
> Unless things have changed, and they might have, you have to tell cron 
> to reread the crontab file for it to process your addition.  Your 
> better solution is to use the tools designed for editing crontab, such 
> as 'crontab -e.'  If you use this tool, crontab will automagically 
> reread the file.

One question , if you set  access to server with password in pg_hba.conf 
how can you pass the apssword in the script?



_____________________________________________________________________
For your security, this mail has been scanned and protected by Inflex



view thread (14+ messages)  latest in thread

Message-ID: <413722B4.9040107@unito.it>
Permalink:  ../413722B4.9040107@unito.it/
Also on:    postgresql.org/message-id/413722B4.9040107@unito.it

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: sandro.garoffolo@unito.it
  Subject: Re: Create Linux Script for PostgreSQL database backup
  In-Reply-To: <413722B4.9040107@unito.it>
  References: <20040901132055.17178.qmail@web61008.mail.yahoo.com> <200409020744.03552.tech@glastonburymusic.org.uk> <4136C42B.50303@tentacle.net> <4136EE84.8040001@3times25.net> <413722B4.9040107@unito.it>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox