You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-09-16 09:06:18 +02:00
Include archive_status directory in online backups.
The archive_status directory is now recreated on restore to support PostgreSQL 8.3 which does not recreate it automatically like more recent versions do. Also fixed log checking after PostgreSQL shuts down to include FATAL messages and disallow immediate shutdowns which can throw FATAL errors in the log. Reported by Stephen Frost.
This commit is contained in:
@@ -473,6 +473,9 @@ sub run
|
||||
|
||||
# Confirm the check command runs without error on a standby
|
||||
$oHostDbStandby->check('verify check command on standby');
|
||||
|
||||
# Shutdown the stanby before creating tablespaces (this will error since paths are different)
|
||||
$oHostDbStandby->clusterStop({bIgnoreLogError => true});
|
||||
}
|
||||
|
||||
# Execute stop and make sure the backup fails
|
||||
@@ -954,12 +957,7 @@ sub run
|
||||
|
||||
# Stop clusters to catch any errors in the postgres log
|
||||
#---------------------------------------------------------------------------------------------------------------------------
|
||||
$oHostDbMaster->clusterStop({bImmediate => true});
|
||||
|
||||
if (defined($oHostDbStandby))
|
||||
{
|
||||
$oHostDbStandby->clusterStop({bImmediate => true});
|
||||
}
|
||||
$oHostDbMaster->clusterStop();
|
||||
|
||||
# Test no-online backups
|
||||
#---------------------------------------------------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user