Ignore pg_log when cloning, just like we ignore pg_xlog

This commit is contained in:
Jaime Casanova
2013-12-04 01:23:48 -05:00
parent 3c8df59eb9
commit 43af00aa12

View File

@@ -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);
}