pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matthias Apitz <guru@unixarea.de>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Paul Förster <paul.foerster@gmail.com>
Cc: Matthias Apitz <guru@unixarea.de>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: How to move a 11.4 cluster to another Linux host, but empty?
Date: Sat, 2 May 2020 20:58:23 +0200
Message-ID: <20200502185823.GA3774@c720-r342378> (raw)
In-Reply-To: <84cd86a4-6757-2ae0-74bd-e36e86ee0c45@aklaver.com>
References: <20200501081029.GA3261@c720-r342378>
	<999AE92C-F74D-4399-8FE1-1DB80D08915D@gmail.com>
	<20200501083148.GA3595@c720-r342378>
	<20200502102329.GA14178@c720-r342378>
	<6DC33DF2-120E-4EA7-B764-F1770EB66EE9@gmail.com>
	<20200502143031.GA16477@c720-r342378>
	<48137a5a-3bfe-500d-0d8a-7dc96b12ac37@aklaver.com>
	<A388CD9F-D65E-4124-AFCE-4305C481F10B@gmail.com>
	<84cd86a4-6757-2ae0-74bd-e36e86ee0c45@aklaver.com>

El día sábado, mayo 02, 2020 a las 08:23:52a. m. -0700, Adrian Klaver escribió:

> On 5/2/20 8:02 AM, Paul Förster wrote:
> > Hi Adrian,
> > 
> >> On 02. May, 2020, at 16:59, Adrian Klaver <adrian.klaver@aklaver.com> wrote:
> >> 2) To create a new base/ you will need to initdb data/ and that is not possible as initdb will not work on a populated data/.
> > 
> > you do the initdb and then copy the *.conf files from the tar over the newly created ones. After that, launch the cluster.
> 
> Yeah I know, I do that on a fairly regular basis. The intent was to let 
> the OP know that ripping base/ out of cluster and transplanting a new 
> one in is not possible.

OK, lesson learned: Next time I will do a tar backup of PGDATA after
the configuration of the cluster and before creating any database in it.

Thanks

	matthias

-- 
Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub





view thread (15+ messages)  latest in thread

Message-ID: <20200502185823.GA3774@c720-r342378>
Permalink:  ../20200502185823.GA3774@c720-r342378/
Also on:    postgresql.org/message-id/20200502185823.GA3774@c720-r342378

 · 

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 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: guru@unixarea.de, adrian.klaver@aklaver.com, paul.foerster@gmail.com
  Subject: Re: How to move a 11.4 cluster to another Linux host, but empty?
  In-Reply-To: <20200502185823.GA3774@c720-r342378>
  References: <20200501081029.GA3261@c720-r342378> <999AE92C-F74D-4399-8FE1-1DB80D08915D@gmail.com> <20200501083148.GA3595@c720-r342378> <20200502102329.GA14178@c720-r342378> <6DC33DF2-120E-4EA7-B764-F1770EB66EE9@gmail.com> <20200502143031.GA16477@c720-r342378> <48137a5a-3bfe-500d-0d8a-7dc96b12ac37@aklaver.com> <A388CD9F-D65E-4124-AFCE-4305C481F10B@gmail.com> <84cd86a4-6757-2ae0-74bd-e36e86ee0c45@aklaver.com> <20200502185823.GA3774@c720-r342378>

* 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