pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Phillip Smith <phillip.smith@weatherbeeta.com.au>
To: pgsql-admin@postgresql.org
Subject: Re: Backup Strategies?
Date: Sat, 03 Feb 2007 22:00:56 +1100
Message-ID: <1170500456.9214.12.camel@phillips-desktop> (raw)

Have you looked at pg_dump and/or pg_dumpall? That would be the more
common way of performing backups.

I run 2 backup's nightly of our databases:
1) As part of a backup script, call pg_dumpall as the postgres *nix
users and PG user, then pipe the output to a file on a remote server.
2) As a cronjob: pg_dumpall > /dev/st0

Cheers,
-p


On Sat, 2007-02-03 at 01:51 -0500, Joshua Kramer wrote:
> Hello All,
> 
> What strategies are people using for automated, script-based backup of 
> databases?  There are a few I can think of:
> 
> 1. Create a "db_backup" unix user and a "db_backup" pgsql user.  Grant 
> READ access to all objects on all databases for the "db_backup" pgsql 
> user.  Create a .pgpass file in the home directory of the "db_backup" unix 
> user.  Backup as needed with a script run as the "db_backup" unix user.
> 
> 2. Create a "db_backup" unix user and repeat above, except using the 
> "postgres" db user.
> 
> Thanks,
> -Josh
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
> 


*******************Confidentiality and Privilege Notice*******************

The material contained in this message is privileged and confidential to
the addressee.  If you are not the addressee indicated in this message or
responsible for delivery of the message to such person, you may not copy
or deliver this message to anyone, and you should destroy it and kindly
notify the sender by reply email.

Information in this message that does not relate to the official business
of Weatherbeeta must be treated as neither given nor endorsed by Weatherbeeta.
Weatherbeeta, its employees, contractors or associates shall not be liable
for direct, indirect or consequential loss arising from transmission of this
message or any attachments



view thread (9+ messages)  latest in thread

Message-ID: <1170500456.9214.12.camel@phillips-desktop>
Permalink:  ../1170500456.9214.12.camel@phillips-desktop/
Also on:    postgresql.org/message-id/1170500456.9214.12.camel@phillips-desktop

 · 

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: phillip.smith@weatherbeeta.com.au
  Subject: Re: Backup Strategies?
  In-Reply-To: <1170500456.9214.12.camel@phillips-desktop>
  References: <1170500456.9214.12.camel@phillips-desktop>

* 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