From: | Scott Marlowe <smarlowe(at)g2switchworks(dot)com> |
---|---|
To: | Apu Islam <apuislam(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: scheduled backup |
Date: | 2005-10-21 18:38:13 |
Message-ID: | 1129919893.15546.69.camel@state.g2switchworks.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Fri, 2005-10-21 at 12:22, Apu Islam wrote:
> I need suggestion to backup my postgresql server. The database is
> growing 1/2 Gb a day and I am looking for a solution that would push
> the data off to the backup server periodically with minimal amount of
> load to the server (I am trying to avoid table locking). I am thinking
> to use rsync to sync the data directories periodically. will that
> allow me to retrieve the data in case of a disaster ? what is the best
> practise ?
I take it you need to MOVE the data out of the primary server to
conserve space, not just back it up? If that's the case, you might be
able to build something from scratch pretty easily. Just make a schema
every night at midnight named for today, like:
create schema daily20051021;
And then push all of today's data into that schema, and create select
only views in another schema that union all those tables in those
schemas together. That way, each day is nicely contained in a single
schema, and you just backup that one schema and empty the old ones as
needed to save space.
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Fuhr | 2005-10-21 18:49:09 | Re: Select all invalid e-mail addresses |
Previous Message | Nicolas Barbier | 2005-10-21 18:29:18 | Re: sequences, moving from 8.0.4 to 8.1 ? |