From: Stephen Frost <sfrost@snowman.net>
To: Christoph Moench-Tegeder <cmt@burggraben.net>
Cc: Yashwanth Govinda Setty <ygovindasetty@commvault.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Will Altering and Modifying tables during backup result in a corrupted server after the restore?
Date: Mon, 21 May 2018 13:01:32 -0400
Message-ID: <20180521170132.GD27724@tamriel.snowman.net> (raw)
In-Reply-To: <20180521164919.GA97744@elch.exwg.net>
References: <4a42c6eb5542496ba13944c95e848325@POST-1.gp.cv.commvault.com>
<20180521164919.GA97744@elch.exwg.net>
Greetings,
* Christoph Moench-Tegeder (cmt@burggraben.net) wrote:
> ## Yashwanth Govinda Setty (ygovindasetty@commvault.com):
>
> > 2. Restore the server with transaction logs
>
> This is missing a lot of details. If you do it right - see your email
> thread from one week ago - you will be able to recover the database
> server to a state as of the _end_ of the backup process (as marked by
> the return of the pg_stop_backup() command).
> If you do not follow the backup/restore documentation to the letter,
> the database will be corrupted and will not start (sometimes people
> report with haphazard backup schemes, but that's just more luck than
> they deserve, and nobody should rely on that).
Please also note that the PG documentation provided, when it comes to
the examples, are purely for usage demonstration only and shouldn't be
considered a good idea when it comes to implementing an actual solution.
Using only "cp" for archive_command is a particularly bad idea as it
doesn't sync the file to disk. Be sure to also heed the recommendation
about using the non-exclusive backup method and *not* using the
exclusive backup method.
Thanks!
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: sfrost@snowman.net, cmt@burggraben.net, ygovindasetty@commvault.com
Subject: Re: Will Altering and Modifying tables during backup result in a corrupted server after the restore?
In-Reply-To: <20180521170132.GD27724@tamriel.snowman.net>
References: <4a42c6eb5542496ba13944c95e848325@POST-1.gp.cv.commvault.com> <20180521164919.GA97744@elch.exwg.net> <20180521170132.GD27724@tamriel.snowman.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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