Re: How to move a 11.4 cluster to another Linux host, but empty? - Mailing list pgsql-general

From Paul Förster
Subject Re: How to move a 11.4 cluster to another Linux host, but empty?
Date
Msg-id 2A3EB078-C20F-4DB6-8EDA-FD267B733284@gmail.com
Whole thread Raw
In response to Re: How to move a 11.4 cluster to another Linux host, but empty?  (Matthias Apitz <guru@unixarea.de>)
List pgsql-general
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
insidethe software tree by a running database cluster. Changes are only done in PGDATA. 

Cheers,
Paul


pgsql-general by date:

Previous
From: Matthias Apitz
Date:
Subject: Re: How to move a 11.4 cluster to another Linux host, but empty?
Next
From: legrand legrand
Date:
Subject: Re: pg_stat_statements : how to catch non successfully finishedstatements ?