2015年4月14日 星期二

How to Use svnsync Command to Backup SVN Repository ?

 

Platform : Ubuntu 14.04 LTS 64bits

 

1. Create a Null SVN Repository

# sudo svnadmin create Project_Name

 

2. Modify the content of pre-revprop-change file

# cd Project_Name/hooks/

# sudo cp  pre-revprop-change.tmpl pre-revprop-change

# sudo chmod +x pre-revprop-change

# sudo vim pre-revprop-change

=> The Last Line : exit 1

=> The Last Line : exit 0

 

3. Synchornize your SVN Repostiory from my google code project

# sudo svnsync init file:///home/svn/Project_Name https://bohan-debug-utility.googlecode.com/svn/ --username spyker729@gmail.com --allow-non-empty

 

# sudo svnsync sync file:///home/svn/Project_Name https://bohan-debug-utility.googlecode.com/svn --username spyker729@gmail.com

image