Re: pg_basebackup Failed - Mailing list pgsql-admin

From Mahendra Singh
Subject Re: pg_basebackup Failed
Date
Msg-id CA+Thq8E8GGByCj1fdVfx=WHGWqTC8SaS6PwMnsvZ=yJunT9p6Q@mail.gmail.com
Whole thread Raw
In response to pg_basebackup Failed  (Yongye Serkfem <yserkfem@gmail.com>)
List pgsql-admin
Check the complete path on your primary replica. 

Refer the below example
Example: pg_basebackup -h <hostip> -U <>repuser -Xs -P -R -D /var/lib/pgsql/11/ -p 5490

This command will copy the complete data in /data directory from the primary node to /var/lib/pgsql/11/ on the replica node.

On replica node you can go to /var/lib/pgsql/11/ and find that /data directory of primary replica gets copied here. 


On Thu, Apr 25, 2024 at 4:35 PM Yongye Serkfem <yserkfem@gmail.com> wrote:
Hi All,
I do not know why I am having this problem. My pg_basebackup which I took using this command "pg_basebackup -h xxxxxx -p 5432 -U postgres_repuser -D /data/postgres -R" is failing with this error message "pg_basebackup: error: could not create directory "/data/postgres/pg_log": File exists"
I cleaned up that directory using rm -rf /data/postgres/ .*/ and I still end up with the above error message.
Any suggestions will be highly appreciated.

Yong

pgsql-admin by date:

Previous
From: Muhammad Ibrar
Date:
Subject: Pgaudit
Next
From: Kashif Zeeshan
Date:
Subject: Re: pg_basebackup Failed