Exclude pid files from standby clone

This commit is contained in:
Jaime Casanova
2010-10-06 01:04:30 -05:00
parent 172caf8968
commit f5e95dd46a

View File

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