From f5e95dd46a890568cabe7c692d1c315869956dc1 Mon Sep 17 00:00:00 2001 From: Jaime Casanova Date: Wed, 6 Oct 2010 01:04:30 -0500 Subject: [PATCH] Exclude pid files from standby clone --- repmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }