Trouble setting up replication

Поиск
Список
Период
Сортировка
От clmartin@theombudsman.com
Тема Trouble setting up replication
Дата
Msg-id 5674749ff36511f41b93482fb24d6d1f@theombudsman.com
обсуждение исходный текст
Ответы Re: Trouble setting up replication
Список pgsql-general
I have been trying to set up "hot standby" replication, but have run
into problems, and hope someone here can help.

I have configured an ssh tunnel from a computer that is not on a public
IP, and was unable to figure out how to run pg_basebackup from that
server to backup the data from the main server, so I decided to run
pb_basebackup on the main server and copy it later. So I did this:

pg_basebackup -D /var/lib/pgsql/9.3/backups/rep/init -P -v -X s

(after a number of other attempts), and got errors. First I got a
permissions error, and found that the directory was owned by root
instead of postgres. I changed that, but eventually I got this error:

pg_basebackup: directory "/var/lib/pgsql/9.3/backups/rep" exists but is
not empty

So my question is whether I can safely delete the directory and run
pb_basebackup again?

I appreciate any help you can give. Let me know what additional
information is needed to answer the question.

Chuck


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

Предыдущее
От: Pavel Suderevsky
Дата:
Сообщение: Buffers: shared hit/read to shared_buffers dependence
Следующее
От: David Steele
Дата:
Сообщение: Re: error on online backup using pg_basebackup tool