Skip to content

laofo/mrsvnsync

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mrsvnsync

Multiple Repositories svnsync

Usage

Install the httplib2 package
pip install httplib2
Open mrsvnsync.ini , and set the parameter

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 the 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
Run mrsvnsync , and you can run it by crontab or Schedule Task
python mrsvnsync.py

Notes

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

Dependencies

httplib2 (pip install httplib2)

About

Multiple Repositories svnsync

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published