mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 17:06:29 +00:00
Don't copy 'recovery.done' or 'recovery.conf' when cloning a standby
'recovery.conf' will be overwritten, but we don't want a 'recovery.done' for another server.
This commit is contained in:
3
repmgr.c
3
repmgr.c
@@ -3886,6 +3886,9 @@ copy_remote_files(char *host, char *remote_user, char *remote_path,
|
|||||||
appendPQExpBuffer(&rsync_flags, "%s",
|
appendPQExpBuffer(&rsync_flags, "%s",
|
||||||
" --exclude=postmaster.pid --exclude=postmaster.opts --exclude=global/pg_control");
|
" --exclude=postmaster.pid --exclude=postmaster.opts --exclude=global/pg_control");
|
||||||
|
|
||||||
|
appendPQExpBuffer(&rsync_flags, "%s",
|
||||||
|
" --exclude=recovery.conf --exclude=recovery.done");
|
||||||
|
|
||||||
if (server_version_num >= 90400)
|
if (server_version_num >= 90400)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user