Re: is backing up a live postgres enough? - Mailing list pgsql-general

From Tom Lane
Subject Re: is backing up a live postgres enough?
Date
Msg-id 26954.1038159625@sss.pgh.pa.us
Whole thread Raw
In response to is backing up a live postgres enough?  (Louis-David Mitterrand <vindex@apartia.org>)
List pgsql-general
Louis-David Mitterrand <vindex@apartia.org> writes:
> I recently restored a debian system from off-site rsync'ed copie of
> /{var,etc,home} including a large Postgres db in /var/lib/postgres/data.
> FWIW the rsync backup was run nightly on the _live_ system with all
> daemons active.

> The db started fine on the restored filesystem. Was I lucky?

Exceedingly.  Are you *sure* your data is okay --- have you actually run
any consistency checks?  I'd be looking for partially-committed
transactions, broken indexes, that sort of thing.

> What is the accepted practice w.r.t Postgres backups?

*NOT* that.

            regards, tom lane

pgsql-general by date:

Previous
From: Aleksei Wolff
Date:
Subject: Re: GUI for Postgres Management? PostgreSQL vs MySQL.
Next
From: Stephan Szabo
Date:
Subject: Re: Calculated fileds in pg