You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-03 00:26:59 +02:00
Allow repo-hardlink option to be changed after full backup.
This rule was added because there were not sufficient tests to demonstrate that the repo-hardlink option could be changed in a backup set. Remove the restriction and add/update tests to show that it works. This is necessary now because bundling requires that hardlinking be disabled. Rather than add code complexity, it seems better just to address this limitation.
This commit is contained in:
@ -1978,7 +1978,6 @@ testRun(void)
|
||||
hrnCfgArgRawZ(argList, cfgOptRepoRetentionFull, "1");
|
||||
hrnCfgArgRawBool(argList, cfgOptOnline, false);
|
||||
hrnCfgArgRawBool(argList, cfgOptCompress, true);
|
||||
hrnCfgArgRawBool(argList, cfgOptRepoHardlink, true);
|
||||
hrnCfgArgRawStrId(argList, cfgOptType, backupTypeDiff);
|
||||
HRN_CFG_LOAD(cfgCmdBackup, argList);
|
||||
|
||||
@ -1986,8 +1985,7 @@ testRun(void)
|
||||
|
||||
TEST_RESULT_LOG(
|
||||
"P00 INFO: last backup label = [FULL-1], version = " PROJECT_VERSION "\n"
|
||||
"P00 WARN: diff backup cannot alter compress-type option to 'gz', reset to value in [FULL-1]\n"
|
||||
"P00 WARN: diff backup cannot alter hardlink option to 'true', reset to value in [FULL-1]");
|
||||
"P00 WARN: diff backup cannot alter compress-type option to 'gz', reset to value in [FULL-1]");
|
||||
|
||||
// -------------------------------------------------------------------------------------------------------------------------
|
||||
TEST_TITLE("offline incr backup to test unresumable backup");
|
||||
@ -2268,7 +2266,6 @@ testRun(void)
|
||||
hrnCfgArgRawZ(argList, cfgOptRepoRetentionFull, "1");
|
||||
hrnCfgArgRawStrId(argList, cfgOptType, backupTypeFull);
|
||||
hrnCfgArgRawBool(argList, cfgOptStopAuto, true);
|
||||
hrnCfgArgRawBool(argList, cfgOptRepoHardlink, true);
|
||||
hrnCfgArgRawBool(argList, cfgOptArchiveCopy, true);
|
||||
HRN_CFG_LOAD(cfgCmdBackup, argList);
|
||||
|
||||
|
Reference in New Issue
Block a user