X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 907569FA4E1 for ; Wed, 10 May 2006 13:12:03 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 25203-07 for ; Wed, 10 May 2006 13:11:58 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from exchange.g2switchworks.com (mail.g2switchworks.com [63.87.162.25]) by postgresql.org (Postfix) with ESMTP id CD17E9FA4EA for ; Wed, 10 May 2006 13:11:54 -0300 (ADT) Received: from 10.10.1.37 ([10.10.1.37]) by exchange.g2switchworks.com ([10.10.1.2]) with Microsoft Exchange Server HTTP-DAV ; Wed, 10 May 2006 16:11:53 +0000 Received: from state.g2switchworks.com by mail.g2switchworks.com; 10 May 2006 11:11:53 -0500 Subject: Re: backups From: Scott Marlowe To: "mcelroy, tim" Cc: "'pgsql-admin@postgresql.org'" In-Reply-To: <0C4841B42F87D51195BD00B0D020F5CB044B2643@MORPHEUS> References: <0C4841B42F87D51195BD00B0D020F5CB044B2643@MORPHEUS> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1147277513.9755.35.camel@state.g2switchworks.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Wed, 10 May 2006 11:11:53 -0500 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/111 X-Sequence-Number: 21643 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.