pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
What is safe to exclude when doing a UFS backup?
3+ messages / 2 participants
[nested] [flat]

* What is safe to exclude when doing a UFS backup?
@ 2004-05-27 14:42 Marty Scholes <marty@outputservices.com>
  2004-05-27 15:10 ` Re: What is safe to exclude when doing a UFS backup? Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Marty Scholes @ 2004-05-27 14:42 UTC (permalink / raw)
  To: pgsql-admin; +Cc: Marty Scholes <marty@outputservices.com>

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?

Thanks in advance,
Marty




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: What is safe to exclude when doing a UFS backup?
  2004-05-27 14:42 What is safe to exclude when doing a UFS backup? Marty Scholes <marty@outputservices.com>
@ 2004-05-27 15:10 ` Bruce Momjian <pgman@candle.pha.pa.us>
  2004-05-27 16:45   ` Re: What is safe to exclude when doing a UFS backup? Marty Scholes <marty@outputservices.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Bruce Momjian @ 2004-05-27 15:10 UTC (permalink / raw)
  To: Marty Scholes <marty@outputservices.com>; +Cc: pgsql-admin

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: What is safe to exclude when doing a UFS backup?
  2004-05-27 14:42 What is safe to exclude when doing a UFS backup? Marty Scholes <marty@outputservices.com>
  2004-05-27 15:10 ` Re: What is safe to exclude when doing a UFS backup? Bruce Momjian <pgman@candle.pha.pa.us>
@ 2004-05-27 16:45   ` Marty Scholes <marty@outputservices.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Marty Scholes @ 2004-05-27 16:45 UTC (permalink / raw)
  To: Bruce Momjian <pgman@candle.pha.pa.us>; +Cc: pgsql-admin

Bruce,

Many thanks!

Marty

Bruce Momjian wrote:
> 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.
> 






^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2004-05-27 16:45 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-05-27 14:42 What is safe to exclude when doing a UFS backup? Marty Scholes <marty@outputservices.com>
2004-05-27 15:10 ` Bruce Momjian <pgman@candle.pha.pa.us>
2004-05-27 16:45   ` Marty Scholes <marty@outputservices.com>

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