mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2026-06-20 01:17:49 +02:00
Rename retention-* options to repo-retention-*.
This commit is contained in:
@@ -553,24 +553,24 @@ sub process
|
||||
|
||||
if (defined($iExpireFull))
|
||||
{
|
||||
$strCommand .= ' --retention-full=' . $iExpireFull;
|
||||
$strCommand .= ' --repo1-retention-full=' . $iExpireFull;
|
||||
}
|
||||
|
||||
if (defined($iExpireDiff))
|
||||
{
|
||||
$strCommand .= ' --retention-diff=' . $iExpireDiff;
|
||||
$strCommand .= ' --repo1-retention-diff=' . $iExpireDiff;
|
||||
}
|
||||
|
||||
if (defined($strExpireArchiveType))
|
||||
{
|
||||
if (defined($iExpireArchive))
|
||||
{
|
||||
$strCommand .= ' --retention-archive-type=' . $strExpireArchiveType .
|
||||
' --retention-archive=' . $iExpireArchive;
|
||||
$strCommand .= ' --repo1-retention-archive-type=' . $strExpireArchiveType .
|
||||
' --repo1-retention-archive=' . $iExpireArchive;
|
||||
}
|
||||
else
|
||||
{
|
||||
$strCommand .= ' --retention-archive-type=' . $strExpireArchiveType;
|
||||
$strCommand .= ' --repo1-retention-archive-type=' . $strExpireArchiveType;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -695,8 +695,8 @@ sub expire
|
||||
$self->backrestExe() .
|
||||
' --config=' . $self->backrestConfig() .
|
||||
' --log-level-console=detail' .
|
||||
(defined($$oParam{iRetentionFull}) ? " --retention-full=$$oParam{iRetentionFull}" : '') .
|
||||
(defined($$oParam{iRetentionDiff}) ? " --retention-diff=$$oParam{iRetentionDiff}" : '') .
|
||||
(defined($$oParam{iRetentionFull}) ? " --repo1-retention-full=$$oParam{iRetentionFull}" : '') .
|
||||
(defined($$oParam{iRetentionDiff}) ? " --repo1-retention-diff=$$oParam{iRetentionDiff}" : '') .
|
||||
' --stanza=' . $self->stanza() . ' expire',
|
||||
{strComment => $strComment, iExpectedExitStatus => $$oParam{iExpectedExitStatus}, oLogTest => $self->{oLogTest},
|
||||
bLogOutput => $self->synthetic()});
|
||||
|
||||
Reference in New Issue
Block a user