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