X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id D2613D1CC8D for ; Thu, 27 May 2004 12:10:30 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 72409-06 for ; Thu, 27 May 2004 12:10:10 -0300 (ADT) Received: from candle.pha.pa.us (candle.pha.pa.us [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id D76C8D1B17C for ; Thu, 27 May 2004 12:10:08 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id i4RFA6c20340; Thu, 27 May 2004 11:10:06 -0400 (EDT) From: Bruce Momjian Message-Id: <200405271510.i4RFA6c20340@candle.pha.pa.us> Subject: Re: What is safe to exclude when doing a UFS backup? In-Reply-To: <40B5FE3C.4000206@outputservices.com> To: Marty Scholes Date: Thu, 27 May 2004 11:10:06 -0400 (EDT) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/293 X-Sequence-Number: 13609 Marty Scholes wrote: > We are running a tiny (< 1GB) Pg installation, but are starting to > migrate over our production Oracle apps. > > We run a daily Oracle dump and a daily Pg dump to /var/tmp, keeping the > most recent four versions of each. > > Nightly, we have Veritas Netbackup backup the whole filesystem to a tape > library. > > Currently, the Oracle data directory (which also has the redo logs) is > excluded from the UFS backup as those datafiles are 100 GB and are > completely useless in a restore. > > I have not excluded the Pg data files since I don't know what is safe to > exclude and the files are very small. > > As we migrate apps and the Pg install grows, we will need to exclude > those data files. > > Which directories/files are safe to exclude from the UFS backup? In > other words, what files can Pg live without and still get off the ground > far enough to restore from a pg_dump? You need to back up all the files in /data, but none of the subdirectories. We should make this easier to do someday. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073