Re: Fast backup/restore - Mailing list pgsql-general

From Tom Lane
Subject Re: Fast backup/restore
Date
Msg-id 28103.1161097862@sss.pgh.pa.us
Whole thread Raw
In response to Re: Fast backup/restore  (mengel@notes.cc.sunysb.edu)
List pgsql-general
mengel@notes.cc.sunysb.edu writes:
> We just tar/gzip the entire data directory.  It takes all of 20 sec. We've
> successfully restored from that also.

You've been very lucky ... unless you stopped the postmaster while
taking the backup.  Without that, this method WILL screw you someday.

(But as long as you're willing to stop the postmaster, it's a perfectly
reasonable option.)

            regards, tom lane

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: How to _really_use a non-default tablespace
Next
From: "Brian Mathis"
Date:
Subject: Re: A query planner that learns