Re: Backup of live database

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Brian Modra <epailty(at)googlemail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Backup of live database
Date: 2008-01-16 08:05:23
Message-ID: 478DBAC3.8050802@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Brian Modra wrote:
> The documentation about WAL says that you can start a live backup, as
> long as you use WAL backup also.
> I'm concerned about the integrity of the tar file. Can someone help me
> with that?

If you are using point in time recovery:

http://www.postgresql.org/docs/8.2/static/continuous-archiving.html

You do not have to worry about it.

Joshua D. Drake

>
> On 16/01/2008, *Joshua D. Drake* <jd(at)commandprompt(dot)com
> <mailto:jd(at)commandprompt(dot)com>> wrote:
>
> Brian Modra wrote:
> > Hi,
> > If tar reports that a file was modified while it was being archived,
> > does that mean that the file was archived correctly, or is it
> corrupted
> > in the archive?
> > Does tar take a snapshot of the file so that even if it is
> modified, at
> > least the archive is safe?
>
> You can not use tar to backup postgresql if it is running.
>
> http://www.postgresql.org/docs/8.2/static/backup.html
> <http://www.postgresql.org/docs/8.2/static/backup.html>
>
> Sincerely,
>
> Joshua D. Drake
>
> > Thanks
> >
> > --
> > Brian Modra Land line: +27 23 5411 462
> > Mobile: +27 79 183 8059
> > 6 Jan Louw Str, Prince Albert, 6930
> > Postal: P.O. Box 2, Prince Albert 6930
> > South Africa
>
>
>
>
> --
> Brian Modra Land line: +27 23 5411 462
> Mobile: +27 79 183 8059
> 6 Jan Louw Str, Prince Albert, 6930
> Postal: P.O. Box 2, Prince Albert 6930
> South Africa

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Brian Modra 2008-01-16 08:24:00 Re: Backup of live database
Previous Message Sebastian Reitenbach 2008-01-16 07:45:03 Re: backup WAL files,