From: Kaolin Fire <cognosco@tentacle.net>
To: pgsql-admin@postgresql.org
To: research_2004@yahoo.com
Subject: Re: Create Linux Script for PostgreSQL database backup
Date: Wed, 01 Sep 2004 23:56:43 -0700
Message-ID: <4136C42B.50303@tentacle.net> (raw)
In-Reply-To: <200409020744.03552.tech@glastonburymusic.org.uk>
References: <20040901132055.17178.qmail@web61008.mail.yahoo.com>
<200409020744.03552.tech@glastonburymusic.org.uk>
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.
:ulp:
-kaolin
tim hall wrote:
>Lawrence C,
>On Wednesday 01 September 2004 14:20, you went:
>
>
>>Anyone good in writing Linux scripting for backup
>>PostgreSQL. I just required a simple scripts only.
>>
>>Normally we do the manual ways as following:
>>
>>In root
>>
>>root# su - postgres
>>bash# pgdumpall > backup.sql
>>bash# exit
>>root#
>>
>>I'm planning to write script.sh for cronjob but not
>>too sure about it. Can anyone contribute the scripts
>>for me?
>>
>>
>
>Er ...
>
>#! /usr/bin/bash
>pgdumpall > backup.sql
>
>I'm being cheeky, but surely if you set that up as a cronjob for user
>'postgres' that would do it? Are your needs more complex than this?
>
>cheers
>
>tim hall
>
>---------------------------(end of broadcast)---------------------------
>TIP 8: explain analyze is your friend
>
>
>
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: cognosco@tentacle.net, research_2004@yahoo.com
Subject: Re: Create Linux Script for PostgreSQL database backup
In-Reply-To: <4136C42B.50303@tentacle.net>
References: <20040901132055.17178.qmail@web61008.mail.yahoo.com> <200409020744.03552.tech@glastonburymusic.org.uk> <4136C42B.50303@tentacle.net>
* 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