Re: pg_basebackup Error could not open directory

From: John Scalia <jayknowsunix(at)gmail(dot)com>
To: Ankur Kaushik <ankurkaushik(at)gmail(dot)com>, pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: pg_basebackup Error could not open directory
Date: 2015-10-24 03:04:02
Message-ID: 562AF522.1020000@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Ankur,

This should be really easy to solve:

1) Who owns this backup directory
2) what is the mode of that directory, i.e., 555, 755, or what?

You could simply try "chmod 777 ./backup" and then reattempt your pg_basebackup command.
--
Jay

On 10/23/2015 8:56 PM, Ankur Kaushik wrote:
>
> User created as CREATE ROLE base_backup_user REPLICATION LOGIN PASSWORD 'backupuser';
>
>
> -bash-4.1$ pg_basebackup -h 127.0.0.1 -U base_backup_user -D "./pgbackup" -Ft -z -P
> pg_basebackup: could not get backup header: ERROR: could not open directory "./backup": Permission denied
>
>
> Getting Below error while using pg_basebackup

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Ankur Kaushik 2015-10-24 04:57:05 Re: pg_basebackup Error could not open directory
Previous Message Ankur Kaushik 2015-10-24 01:56:49 pg_basebackup Error could not open directory