You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-15 01:04:37 +02:00
Partial multi-repository implementation.
Multi-repository implementations for the archive-push, check, info, stanza-create, stanza-upgrade, and stanza-delete commands. Multi-repo configuration is disabled so there should be no behavioral changes between these commands and their current single-repo implementations. Multi-repo documentation and integration tests are still in the multi-repo development branch. All unit tests work as multi-repo since they are able to bypass the configuration restrictions.
This commit is contained in:
@ -1465,6 +1465,7 @@ testRun(void)
|
||||
harnessCfgLoad(cfgCmdStanzaCreate, argList);
|
||||
|
||||
cmdStanzaCreate();
|
||||
harnessLogResult("P00 INFO: stanza-create for stanza 'test1' on repo1");
|
||||
|
||||
// -------------------------------------------------------------------------------------------------------------------------
|
||||
TEST_TITLE("error when pg appears to be running");
|
||||
@ -1640,6 +1641,7 @@ testRun(void)
|
||||
harnessCfgLoad(cfgCmdStanzaCreate, argList);
|
||||
|
||||
cmdStanzaCreate();
|
||||
harnessLogResult("P00 INFO: stanza-create for stanza 'test1' on repo1");
|
||||
|
||||
// Load options
|
||||
argList = strLstNew();
|
||||
@ -2105,6 +2107,7 @@ testRun(void)
|
||||
harnessCfgLoad(cfgCmdStanzaUpgrade, argList);
|
||||
|
||||
cmdStanzaUpgrade();
|
||||
harnessLogResult("P00 INFO: stanza-upgrade for stanza 'test1' on repo1");
|
||||
|
||||
// Load options
|
||||
argList = strLstNew();
|
||||
@ -2253,6 +2256,7 @@ testRun(void)
|
||||
harnessCfgLoad(cfgCmdStanzaUpgrade, argList);
|
||||
|
||||
cmdStanzaUpgrade();
|
||||
harnessLogResult("P00 INFO: stanza-upgrade for stanza 'test1' on repo1");
|
||||
|
||||
// Load options
|
||||
argList = strLstNew();
|
||||
@ -2477,7 +2481,11 @@ testRun(void)
|
||||
// Load options
|
||||
StringList *argList = strLstNew();
|
||||
strLstAddZ(argList, "--" CFGOPT_STANZA "=test1");
|
||||
hrnCfgArgRaw(argList, cfgOptRepoPath, repoPath);
|
||||
hrnCfgArgKeyRawZ(argList, cfgOptRepoPath, 1, "/repo-bogus");
|
||||
hrnCfgArgKeyRaw(argList, cfgOptRepoPath, 2, repoPath);
|
||||
hrnCfgArgKeyRawZ(argList, cfgOptRepoRetentionFull, 2, "1");
|
||||
hrnCfgArgKeyRawBool(argList, cfgOptRepoHardlink, 2, true);
|
||||
hrnCfgArgRawZ(argList, cfgOptRepo, "2");
|
||||
hrnCfgArgRaw(argList, cfgOptPgPath, pg1Path);
|
||||
hrnCfgArgRawZ(argList, cfgOptRepoRetentionFull, "1");
|
||||
strLstAddZ(argList, "--" CFGOPT_TYPE "=" BACKUP_TYPE_INCR);
|
||||
|
Reference in New Issue
Block a user