pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul Förster <paul.foerster@gmail.com>
To: 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: Fri, 1 May 2020 10:59:06 +0200
Message-ID: <2A3EB078-C20F-4DB6-8EDA-FD267B733284@gmail.com> (raw)
In-Reply-To: <20200501083148.GA3595@c720-r342378>
References: <20200501081029.GA3261@c720-r342378>
	<999AE92C-F74D-4399-8FE1-1DB80D08915D@gmail.com>
	<20200501083148.GA3595@c720-r342378>

Hi Matthias,

> On 01. May, 2020, at 10:31, Matthias Apitz <guru@unixarea.de> wrote:
> 
> I don't. The software is below 
> 
> /usr/local/sisis-pap/pgsql
> 
> and the cluster is below 
> 
> /data/postgres11.4/data.

in this case, all you'd have to do is:

tar cvf software.tar /usr/local/sisis-pap/pgsql

to only copy the software. You don't even need to stop the database cluster for this because nothing is ever changed inside the software tree by a running database cluster. Changes are only done in PGDATA.

Cheers,
Paul




view thread (15+ messages)  latest in thread

Message-ID: <2A3EB078-C20F-4DB6-8EDA-FD267B733284@gmail.com>
Permalink:  ../2A3EB078-C20F-4DB6-8EDA-FD267B733284@gmail.com/
Also on:    postgresql.org/message-id/2A3EB078-C20F-4DB6-8EDA-FD267B733284@gmail.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 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: paul.foerster@gmail.com, guru@unixarea.de
  Subject: Re: How to move a 11.4 cluster to another Linux host, but empty?
  In-Reply-To: <2A3EB078-C20F-4DB6-8EDA-FD267B733284@gmail.com>
  References: <20200501081029.GA3261@c720-r342378> <999AE92C-F74D-4399-8FE1-1DB80D08915D@gmail.com> <20200501083148.GA3595@c720-r342378> <2A3EB078-C20F-4DB6-8EDA-FD267B733284@gmail.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