mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
standby clone: enable overwrite of existing data directory
But only if the --force is used, and the instance isn't active.
This commit is contained in:
@@ -1411,7 +1411,7 @@ check_source_server()
|
||||
*/
|
||||
if (mode == pg_basebackup)
|
||||
{
|
||||
if (is_pg_dir(local_data_directory))
|
||||
if (is_pg_dir(local_data_directory) && runtime_options.force != true)
|
||||
{
|
||||
log_error(_("target data directory appears to be a PostgreSQL data directory"));
|
||||
log_detail(_("target data directory is \"%s\""), local_data_directory);
|
||||
|
||||
Reference in New Issue
Block a user