Re: reliable backup techniques

From: Richard Huxton <dev(at)archonet(dot)com>
To: "Ed L(dot)" <pgsql(at)bluepolka(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: reliable backup techniques
Date: 2003-02-19 19:22:35
Message-ID: 200302191922.35351.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wednesday 19 Feb 2003 5:23 pm, Ed L. wrote:
> I'd like to get some opinions on the best techniques for getting
> reliably consistent backups. My current understanding is that the
> only reliable way to get a consistent backup of a running system is
> through pg_dump or pg_dumpall.

Correct (pretty much).

> More specifically, it is my
> understanding that file backups (tar, etc) do not guarantee
> consistency due to the potential lag in cache writes to disk from
> running transactions.

Correct.

> Is my understanding correct? Are there other ways of getting
> consistent backups of a live system?

1. Stop postgresql alltogether, backup the entire data/base directory.
2. Replication (see mailing list archives/website for options)

pg_dump is almost certainly your best bet.

--
Richard Huxton

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2003-02-19 19:56:03 Re: Concurrency and locks
Previous Message Richard Huxton 2003-02-19 19:19:51 Re: Removing spaces