From: Lawrence C <research_2004@yahoo.com>
To: tim hall <tech@glastonburymusic.org.uk>
Cc: pgsql-admin@postgresql.org
Subject: Re: Create Linux Script for PostgreSQL database backup
Date: Mon, 6 Sep 2004 03:09:56 +0100 (BST)
Message-ID: <20040906020956.65180.qmail@web61003.mail.yahoo.com> (raw)
In-Reply-To: <200409020744.03552.tech@glastonburymusic.org.uk>
Hi Tim,
How do I setup cronjob for user "postgres" then in
scripts? that what i mean
thanks :)
--- tim hall <tech@glastonburymusic.org.uk> 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
>
________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
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: research_2004@yahoo.com, tech@glastonburymusic.org.uk
Subject: Re: Create Linux Script for PostgreSQL database backup
In-Reply-To: <20040906020956.65180.qmail@web61003.mail.yahoo.com>
References: <200409020744.03552.tech@glastonburymusic.org.uk> <20040906020956.65180.qmail@web61003.mail.yahoo.com>
* 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