You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-06-16 23:47:38 +02:00
Add stanza-delete command to cleanup unused stanzas.
Contributed by Cynthia Shang.
This commit is contained in:
committed by
David Steele
parent
526acca5bd
commit
0e9ba98a50
@ -364,6 +364,13 @@ sub run
|
||||
|
||||
# Confirm info command displays the JSON correctly
|
||||
$oHostDbMaster->info('db upgraded - db-1 and db-2 listed', {strOutput => CFGOPTVAL_INFO_OUTPUT_JSON});
|
||||
|
||||
# Delete the stanza
|
||||
#--------------------------------------------------------------------------------------------------------------------------
|
||||
$oHostBackup->stanzaDelete('fail on missing stop file', {iExpectedExitStatus => ERROR_FILE_MISSING});
|
||||
|
||||
$oHostBackup->stop({strStanza => $self->stanza()});
|
||||
$oHostBackup->stanzaDelete('successfully delete the stanza');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user