pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John Jensen <jrj@ft.fo>
To: jday@gisolutions.us
To: pgsql-admin@postgresql.org
Subject: Re: Backup
Date: Fri, 25 Mar 2005 13:30:00 +0000
Message-ID: <s244127b.021@fs3.ft.fo> (raw)

Hi,
I have a 61Gig base at the moment and do a full online backup each
night.
It's not really that much of a strain so I haven't bothered with cooking
up a scheme for differential backups. Using my simple scripts it takes
one hour and in my case I end up with 2.5Gigs (compressed) worth of
backup files. The backup claims two cpu's for the hour that the job runs
but on a multi-cpu box it's not that much trouble.

My scripts are:
#! /bin/sh
if test $# -lt 2; then
  echo "Usage: dbbackup <basename> <filename>"
else
  /home/postgres/postgresql/bin/pg_dump -h $HOSTNAME $1 | gzip -f - |
split --bytes 600m - $2.
fi

and
if test $# -lt 2; then
  echo "Usage: dbrestore <basename> <filename>"
else
  cat $2.* | gzip -d -f - | /home/postgres/postgresql/bin/psql -h
$HOSTNAME -f - $1
fi

Cheers,

John

>>> "Joseph M. Day" <jday@gisolutions.us> 03/23/05 8:41 PM >>>
It looks like pg_dump is the equivalent of a full backup, but
how do I keep the equivalent of a Incremental, or Differential backup.
 
To keep the same functionality, I will need a full backup once a week,
and a differential once a day.




view thread (52+ messages)  latest in thread

Message-ID: <s244127b.021@fs3.ft.fo>
Permalink:  ../s244127b.021@fs3.ft.fo/
Also on:    postgresql.org/message-id/s244127b.021@fs3.ft.fo

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: jrj@ft.fo, jday@gisolutions.us
  Subject: Re: Backup
  In-Reply-To: <s244127b.021@fs3.ft.fo>

* 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