You've already forked pg_probackup
mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2026-06-21 01:34:15 +02:00
PGDATA parameter is required for init
This commit is contained in:
@@ -38,6 +38,12 @@ do_init(void)
|
|||||||
|
|
||||||
struct dirent **dp;
|
struct dirent **dp;
|
||||||
int results;
|
int results;
|
||||||
|
|
||||||
|
/* PGDATA is always required */
|
||||||
|
if (pgdata == NULL)
|
||||||
|
elog(ERROR, "Required parameter not specified: PGDATA "
|
||||||
|
"(-D, --pgdata)");
|
||||||
|
|
||||||
if (access(backup_path, F_OK) == 0)
|
if (access(backup_path, F_OK) == 0)
|
||||||
{
|
{
|
||||||
results = scandir(backup_path, &dp, selects, NULL);
|
results = scandir(backup_path, &dp, selects, NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user