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: Sat, 2 May 2020 15:23:52 +0200
Message-ID: <6DC33DF2-120E-4EA7-B764-F1770EB66EE9@gmail.com> (raw)
In-Reply-To: <20200502102329.GA14178@c720-r342378>
References: <20200501081029.GA3261@c720-r342378>
	<999AE92C-F74D-4399-8FE1-1DB80D08915D@gmail.com>
	<20200501083148.GA3595@c720-r342378>
	<20200502102329.GA14178@c720-r342378>

Hi Matthias,

> On 02. May, 2020, at 12:23, Matthias Apitz <guru@unixarea.de> wrote:
> $ /usr/local/sisis-pap/pgsql/bin/pg_ctl -D /data/prosgresql11/data initdb

I don't get it. Is the setup now as follows

/data/postgresql11       <= software with bin, lib64, share, etc...
/data/postgresql11/data  <= PGDATA

or

/usr/local/sisis-pap/pgsql  <= software with bin, lib64, share, etc...
/data/postgresql11/data     <= PGDATA

?

In the first case, your tar command would be:
tar cvf /tmp/postgresql11.tar --exclude=/data/postgresql11/data /data/postgresql11

Note that the --exclude option must appear BEFORE the directory tree to archive in the command line! => man tar

In the second case, your tar command would be:
tar cvf /tmp/postgresql11.tar /usr/local/sisis-pap/pgsql

to package the software only without the database.

Cheers,
Paul




view thread (15+ messages)  latest in thread

Message-ID: <6DC33DF2-120E-4EA7-B764-F1770EB66EE9@gmail.com>
Permalink:  ../6DC33DF2-120E-4EA7-B764-F1770EB66EE9@gmail.com/
Also on:    postgresql.org/message-id/6DC33DF2-120E-4EA7-B764-F1770EB66EE9@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: <6DC33DF2-120E-4EA7-B764-F1770EB66EE9@gmail.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>

* 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