pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Ray Stell <stellr@vt.edu>
To: pgsql-admin@lists.postgresql.org
Subject: Re: pg_basebackup with a twist?
Date: Fri, 2 Feb 2018 16:11:12 -0500
Message-ID: <dbb38452-4325-ce25-fd8b-a93aef75f0d2@2ndquadrant.com> (raw)
In-Reply-To: <f40ed60f-89b8-0b39-5c03-3ddbaca40b3c@vt.edu>
References: <f40ed60f-89b8-0b39-5c03-3ddbaca40b3c@vt.edu>

On 2/2/18 14:40, Ray Stell wrote:
> I have a fairly busy primary that I put a symlink in to move pg_xlog 
> over to another I/O subsystem.   I was going to build a standby with 
> pg_basebackup running the command from the standby host.  I thought 
> maybe I could put the symlink in on the new standby, but no go:  
> "pg_basebackup: directory "/database/test.basebackup/" exists but is not 
> empty" as documented.  Is the only way to do this to "fix" it up after 
> the restore?   I want to use the "-x" option in order to get the WAL 
> during the backup.  Just curious, my guess is I'll have to build the 
> stby from a intermediate file.  TIA.

pg_basebackup has a --waldir or --xlogdir (depending on version) option
for this, analogous to initdb.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (2+ messages)

Message-ID: <dbb38452-4325-ce25-fd8b-a93aef75f0d2@2ndquadrant.com>
Permalink:  ../dbb38452-4325-ce25-fd8b-a93aef75f0d2@2ndquadrant.com/
Also on:    postgresql.org/message-id/dbb38452-4325-ce25-fd8b-a93aef75f0d2@2ndquadrant.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, stellr@vt.edu, pgsql-admin@lists.postgresql.org
  Subject: Re: pg_basebackup with a twist?
  In-Reply-To: <dbb38452-4325-ce25-fd8b-a93aef75f0d2@2ndquadrant.com>

* 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