Multiple Repositories svnsync
pip install httplib2
Set the destination path to store the mirror repositories:
SVNBackupDir = C:/SvnBackup
If you run mrsvnsync locally on the SVN server , you should set the SVNPathParentPath , for example :
SVNPathParentPath = C:/Repositories
If you run mrsvnsync on another server , and you access the SVN server by HTTP or HTTPS protocol , you should set the SVNAccessUrl , for example:
SVNAccessUrl = https://192.168.1.1/svn/
If your SVN server requires authentication , you may specify the username and password:
UserName = username
Password = passowrd
python mrsvnsync.py
While you access your SVN Server by HTTPS protocol , you may receive an error message like this:
Traceback (most recent call last):
File "usinghttplib2.py", line 28, in module
response, content = http.request(url, "GET", headers=headers)
File "/usr/local/python3/lib/python3.2/site-packages/httplib2/__init__.py", line 1059, in request
self.disable_ssl_certificate_validation)
File "/usr/local/python3/lib/python3.2/site-packages/httplib2/__init__.py", line 775, in __init__
check_hostname=True)
File "/usr/local/python3/lib/python3.2/http/client.py", line 1086, in __init__
raise ValueError("check_hostname needs a SSL context with "
ValueError: check_hostname needs a SSL context with either CERT_OPTIONAL or CERT_REQUIRED
You can download the patch for httplib2 via https://code.google.com/p/httplib2/issues/detail?id=173
httplib2 (pip install httplib2)