Barman support, draft #1

TODO: we need to check what happens with configuration files placed in
non-standard locations.
This commit is contained in:
Gianni Ciolli
2016-07-22 15:08:21 +02:00
parent 9853581d12
commit 2f529e20c1
5 changed files with 609 additions and 39 deletions

View File

@@ -56,6 +56,7 @@
#define OPT_PWPROMPT 7
#define OPT_CSV 8
#define OPT_NODE 9
#define OPT_WITHOUT_BARMAN 10
/* Run time options type */
@@ -79,6 +80,7 @@ typedef struct
bool fast_checkpoint;
bool ignore_external_config_files;
bool csv_mode;
bool without_barman;
char masterport[MAXLEN];
/*
* configuration file parameters which can be overridden on the
@@ -102,7 +104,7 @@ typedef struct
char recovery_min_apply_delay[MAXLEN];
} t_runtime_options;
#define T_RUNTIME_OPTIONS_INITIALIZER { "", "", "", "", "", "", "", DEFAULT_WAL_KEEP_SEGMENTS, false, false, false, false, false, false, false, false, false, false, "", "", "", "", "fast", "", 0, 0, "", ""}
#define T_RUNTIME_OPTIONS_INITIALIZER { "", "", "", "", "", "", "", DEFAULT_WAL_KEEP_SEGMENTS, false, false, false, false, false, false, false, false, false, false, false, "", "", "", "", "fast", "", 0, 0, "", ""}
struct BackupLabel
{