Archive
Posts Tagged ‘svn’
How to backup svn repository using svnsync and VisualSVN Server on Windows
January 2, 2011
2 comments
This guide is for windows (Tested on Windows 7)
Nice guide for linux / unix is available at http://www.thoughtspark.org/node/10
Steps:
- Instal VisualSVN Server
this will also install svn and svnsync command line tools - Create empty repository using VisualSVN Server managment console
- righ click on the Repositories
- Click Create new repository
- Enter repository name (do not check create Create default structure)
- Create svn user
- Righ click on the users
- Click Create users …
- Enter username and password
- Set permissions
- Righ click on repository
- Click properties
- Set read / write permissions for user
- Create empty hook
- Righ click on repository
- Click properties
- Open tab Hooks
- Click pre-revision property change hook
- Click edit
- Insert couple of blank lines
- pre-revision property change should be in bold text
- Click OK
- Initialize repository for svnsync
- Open command line (start>run>cmd)
cd to the VisualSVNServer directory, for example:
- In this directory there should be svn.exe, svnsync.exe and similar binaries
- run following command:
svnsync init https://MACHINENAME:8443/svn/project/ http://svn.example.online.repo.com/svn/project
if needed, you will be asked for username / password
- Open command line (start>run>cmd)
- Synchronize
- run following command:
svnsync sync https://MACHINENAME:8443/svn/project/
- wait for synchronization to complete 🙂
- run following command:
Advertisements
Categories: Software versioning
backup, svn, svnsync, VisualSVN server
Generating SVN statistics using statSVN
October 17, 2010
Leave a comment
Today I generated svn statistics for a project I am working on for a last year and half. It’s very insightful
Here is a short guide on how to it using windows machine
- You should install java from http://www.java.com/en/download/manual.jsp
- Download statsvn from http://www.statsvn.org/downloads.html. I used version 0.7
- Download CollabNet Subversion Command-Line Client from http://www.collab.net/downloads/subversion/ and install it
- Do svn checkout
C:\project>svn checkout http://svn.your.svn.repository.url.com/trunk/ - Generate svn log
C:\project>svn log ––xml -v > svn.log - Generate statistics
C:\project>java -jar statsvn.jar Project\svn.log Project - Wait
(my project has about 1 000 000 lines of code… I waited for a few hours) - Open generated index.html and enjoy
Categories: Software versioning
statistics, statsvn, svn