Re: How to move a 11.4 cluster to another Linux host, but empty?

Поиск
Список
Период
Сортировка
От Paul Förster
Тема Re: How to move a 11.4 cluster to another Linux host, but empty?
Дата
Msg-id 6DC33DF2-120E-4EA7-B764-F1770EB66EE9@gmail.com
обсуждение исходный текст
Ответ на Re: How to move a 11.4 cluster to another Linux host, but empty?  (Matthias Apitz <guru@unixarea.de>)
Ответы Re: How to move a 11.4 cluster to another Linux host, but empty?
Список pgsql-general
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


В списке pgsql-general по дате отправления:

Предыдущее
От: Matthias Apitz
Дата:
Сообщение: Re: How to move a 11.4 cluster to another Linux host, but empty?
Следующее
От: Matthias Apitz
Дата:
Сообщение: Re: How to move a 11.4 cluster to another Linux host, but empty?