pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: tim hall <tech@glastonburymusic.org.uk>
To: Lawrence C <research_2004@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Create Linux Script for PostgreSQL database backup
Date: Thu, 2 Sep 2004 07:44:03 +0100
Message-ID: <200409020744.03552.tech@glastonburymusic.org.uk> (raw)
In-Reply-To: <20040901132055.17178.qmail@web61008.mail.yahoo.com>
References: <20040901132055.17178.qmail@web61008.mail.yahoo.com>

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



view thread (14+ messages)  latest in thread

Message-ID: <200409020744.03552.tech@glastonburymusic.org.uk>
Permalink:  ../200409020744.03552.tech@glastonburymusic.org.uk/
Also on:    postgresql.org/message-id/200409020744.03552.tech@glastonburymusic.org.uk

 · 

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: tech@glastonburymusic.org.uk, research_2004@yahoo.com
  Subject: Re: Create Linux Script for PostgreSQL database backup
  In-Reply-To: <200409020744.03552.tech@glastonburymusic.org.uk>
  References: <20040901132055.17178.qmail@web61008.mail.yahoo.com> <200409020744.03552.tech@glastonburymusic.org.uk>

* 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