From 43af00aa12de5d8d9e5a695198202d0e12495a48 Mon Sep 17 00:00:00 2001 From: Jaime Casanova Date: Wed, 4 Dec 2013 01:23:48 -0500 Subject: [PATCH] Ignore pg_log when cloning, just like we ignore pg_xlog --- repmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repmgr.c b/repmgr.c index 5ed4c7d2..aa27713f 100644 --- a/repmgr.c +++ b/repmgr.c @@ -1827,7 +1827,7 @@ copy_remote_files(char *host, char *remote_user, char *remote_path, if (is_directory) { - strcat(rsync_flags, " --exclude=pg_xlog* --exclude=pg_control --exclude=*.pid"); + strcat(rsync_flags, " --exclude=pg_xlog* --exclude=pg_log* --exclude=pg_control --exclude=*.pid"); maxlen_snprintf(script, "rsync %s %s:%s/* %s", rsync_flags, host_string, remote_path, local_path); }