diff --git a/repmgr.c b/repmgr.c index c1977cc5..c170730f 100644 --- a/repmgr.c +++ b/repmgr.c @@ -819,7 +819,7 @@ copy_remote_files(char *host, char *remote_path, char *local_path, bool is_direc if (is_directory) { - strcat(options, " --archive --exclude=pg_xlog* --exclude=pg_control"); + strcat(options, " --archive --exclude=pg_xlog* --exclude=pg_control --exclude=*.pid"); sprintf(script, "rsync %s %s:%s/* %s", options, host, remote_path, local_path); }