summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShen Longxing2015-05-14 16:34:21 +0000
committerPavan Deolasee2015-09-15 09:45:49 +0000
commit4d6fd664bbe04ec48d80a81dbd373edf3e91ab00 (patch)
treeafe7508366cb3816ec31daf24a07bf421d63c5fc
parentfdcc449e4d19bf0cdea37c0f0bd0a8a7716fe087 (diff)
A bug in pgxc_ctl when using the configBackup.
There is a bug in pgxc_ctl when using the configBackup. The reason is that the parameter of scp command used to copy config file is a little wrong. I have test it. And every thing is OK.
-rw-r--r--contrib/pgxc_ctl/do_shell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/pgxc_ctl/do_shell.c b/contrib/pgxc_ctl/do_shell.c
index 20c35ac96b..7dd126c851 100644
--- a/contrib/pgxc_ctl/do_shell.c
+++ b/contrib/pgxc_ctl/do_shell.c
@@ -697,10 +697,10 @@ int doConfigBackup(void)
{
int rc;
- rc = doImmediateRaw("ssh %s@%s mkdir -p %s;scp %s %s@%sp:%s",
+ rc = doImmediateRaw("ssh %s@%s mkdir -p %s;scp %s %s@%s:%s/%s",
sval(VAR_pgxcUser), sval(VAR_configBackupHost), sval(VAR_configBackupDir),
pgxc_ctl_config_path, sval(VAR_pgxcUser), sval(VAR_configBackupHost),
- sval(VAR_configBackupFile));
+ sval(VAR_configBackupDir), sval(VAR_configBackupFile));
return(rc);
}