Re: pgBackRest backup from standby - Mailing list pgsql-general

From David Steele
Subject Re: pgBackRest backup from standby
Date
Msg-id 7f539f04-579c-1118-e5f1-85049869987c@pgmasters.net
Whole thread Raw
In response to Re: pgBackRest backup from standby  (Don Seiler <don@seiler.us>)
Responses Re: pgBackRest backup from standby
Re: pgBackRest backup from standby
List pgsql-general
On 2/19/18 3:41 PM, Don Seiler wrote:
> On Mon, Feb 19, 2018 at 10:17 AM, David Steele <david@pgmasters.net
> <mailto:david@pgmasters.net>> wrote:
> 
>     If pg_log is symlinked to PGDATA it will be copied.  pg_xlog is not
>     copied in any backup.
> 
> 
> So an external pg_log directory symlinked into $PGDATA will have its log
> contents copied?

Yes.

> I'm curious, why even copy the pg_log logs? They aren't needed for
> database restore or recovery.

The general philosophy is to copy everything except what we know for
sure can be excluded.  In practice, this means sticking to what
pg_basebackup excludes because that list is vetted by the community.

Also, relocating the log directory is easy using the log_directory
setting, so that's what I recommend if it's an issue.  Some users do
want to backup their logs.

-- 
-David
david@pgmasters.net


pgsql-general by date:

Previous
From: Don Seiler
Date:
Subject: Re: pgBackRest backup from standby
Next
From: Thomas Munro
Date:
Subject: Re: Error when compiling postgresql 9.6.7 with Visual Studio 15.5.6