You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-06-14 23:44:58 +02:00
Fixed an issue that suppressed locality errors for backup and restore.
When a backup host is present, backups should only be allowed on the backup host and restores should only be allowed on the database host unless an alternate configuration is created that ignores the remote host. Reported by Lardière Sébastien.
This commit is contained in:
@ -304,7 +304,7 @@ sub run
|
||||
|
||||
$self->configTestLoadExpect(
|
||||
cfgCommandName(CFGCMD_BACKUP), ERROR_OPTION_INVALID_VALUE, 4, cfgOptionName(CFGOPT_PROTOCOL_TIMEOUT),
|
||||
"'protocol-timeout' option should be greater than 'db-timeout' option");
|
||||
"'protocol-timeout' option (4) should be greater than 'db-timeout' option (5)");
|
||||
}
|
||||
|
||||
if ($self->begin(cfgCommandName(CFGCMD_RESTORE) . ' invalid value ' . cfgOptionName(CFGOPT_RECOVERY_OPTION)))
|
||||
|
Reference in New Issue
Block a user