pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pg_basebackup with a twist?
2+ messages / 2 participants
[nested] [flat]

* pg_basebackup with a twist?
@ 2018-02-02 19:40 Ray Stell <stellr@vt.edu>
  2018-02-02 21:11 ` Re: pg_basebackup with a twist? Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Ray Stell @ 2018-02-02 19:40 UTC (permalink / raw)
  To: pgsql-admin@lists.postgresql.org

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.





^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: pg_basebackup with a twist?
  2018-02-02 19:40 pg_basebackup with a twist? Ray Stell <stellr@vt.edu>
@ 2018-02-02 21:11 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Eisentraut @ 2018-02-02 21:11 UTC (permalink / raw)
  To: Ray Stell <stellr@vt.edu>; pgsql-admin@lists.postgresql.org

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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2018-02-02 21:11 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-02-02 19:40 pg_basebackup with a twist? Ray Stell <stellr@vt.edu>
2018-02-02 21:11 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>

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