Re: backups

From: "mcelroy, tim" <tim(dot)mcelroy(at)bostonstock(dot)com>
To: 'Scott Marlowe' <smarlowe(at)g2switchworks(dot)com>
Cc: "'pgsql-admin(at)postgresql(dot)org'" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: backups
Date: 2006-05-10 16:54:55
Message-ID: 0C4841B42F87D51195BD00B0D020F5CB044B2645@MORPHEUS
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Great, exactly the answer I was looking for. Thank you again Scott.

Tim

-----Original Message-----
From: Scott Marlowe [mailto:smarlowe(at)g2switchworks(dot)com]
Sent: Wednesday, May 10, 2006 12:12 PM
To: mcelroy, tim
Cc: 'pgsql-admin(at)postgresql(dot)org'
Subject: RE: [ADMIN] backups

On Wed, 2006-05-10 at 10:56, mcelroy, tim wrote:
> Thanks for the quick answer Scott. I thought so but wanted to
> double-check. I was asked by the person who performs our system
> backups if just backing up the directory where I put the nightly
> backups (created with pg_dump) was enough. I also have them backing
> up /var/lib/pgsql and everything under that and they're complaining
> that it's taking too long. I would think we would also want to back
> up the pg_xlog directory though. Or is that overkill? Is there a
> standard in the PG community I should follow? Is just performing the
> pg_dump and saving that to tape enough? I just don't want to get bit
> in the butt if I tell him to not back something up that should be
> backed up.

Generally speaking, backing up with pg_dump is plenty.

The /var/lib/pgsql directory backups aren't necessarily useful since the
files may not be backed up in the same "state" i.e. some transaction
might be in two places at once, partially written, etc... pg_dump
doesn't not have this problem.

If you want something more up to the second, look for point in time
replication in the postgresql docs.

Browse pgsql-admin by date

  From Date Subject
Next Message Simon Riggs 2006-05-10 18:52:27 Re: Logging long queries: not all get logged
Previous Message ogjunk-pgjedan 2006-05-10 16:34:25 Logging long queries: not all get logged