Re: pg_basebackup Error could not open directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux