pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John Scalia <jayknowsunix@gmail.com>
To: Ankur Kaushik <ankurkaushik@gmail.com>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: pg_basebackup Error could not open directory
Date: Fri, 23 Oct 2015 22:04:02 -0500
Message-ID: <562AF522.1020000@gmail.com> (raw)
In-Reply-To: <CALXoLqz9CfKQdaE3ZemBk+MHUtyB9GJsT2dGFFEEFLraR=Mw+g@mail.gmail.com>
References: <CALXoLqz9CfKQdaE3ZemBk+MHUtyB9GJsT2dGFFEEFLraR=Mw+g@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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



-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (4+ messages)  latest in thread

Message-ID: <562AF522.1020000@gmail.com>
Permalink:  ../562AF522.1020000@gmail.com/
Also on:    postgresql.org/message-id/562AF522.1020000@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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: jayknowsunix@gmail.com, ankurkaushik@gmail.com
  Subject: Re: pg_basebackup Error could not open directory
  In-Reply-To: <562AF522.1020000@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