我有3台具有起搏器高可用性群集的服务器。我想使用svnsync创建SVN备份。
#!/bin/sh
REVISION=${2}
# Launch (backgrounded) sync jobs for each slave server.
svnsync copy-revprops --username admin --password Qwe12345! http://xx.xxx.xxx.206/svn/myrepo ${REVISION} &
svnsync copy-revprops --username admin --password Qwe12345! http://xx.xxx.xxx.207/svn/myrepo ${REVISION} &
exit 0
/ var / lib / svn / myrepo / hooks / post-commit
#!/bin/sh
# Launch (backgrounded) sync jobs for each slave server
svnsync sync --username admin --password Qwe12345! http://xx.xxx.xxx.206/svn/myrepo &
使该文件成为可执行文件
chmod + x / var / lib / svn / myrepo / hooks / pre-revprop-change
chmod + x / var / lib / svn / myrepo / hooks / post-commit
在这里出现错误。
第一次尝试
svnsync init --username admin --password Qwe12345! file:///var/lib/svn/myrepo/ http://xx.xxx.xxx.206/svn/myrepo ${REVISION} &
svnsync: E170013: Unable to connect to a repository at URL 'http://xx.xxx.xxx.206/svn/myrepo'
svnsync: E000111: Error running context: Connection refused
第二次尝试
svnsync init --username admin --password Qwe12345! file:///var/lib/svn/myrepo/ --allow-non-empty
http://xx.xxx.xxx.206/svn/myrepo ${REVISION} &
svnsync: E170013: Unable to connect to a repository at URL 'http://xx.xxx.xxx.206/svn/myrepo'
svnsync: E000111: Error running context: Connection refused
检查网络
svn checkout http://xx.xxx.xxx.206/svn/myrepo
svn: E170013: Unable to connect to a repository at URL 'http://xx.xxx.xxx.206/svn/myrepo'
svn: E000111: Error running context: Connection refused
使用端口80的我的svn
请帮助我