Now that I have my svnserve services running, it's time to setup svnsync. Here's the steps I followed:
- Begin with a blank, copy repository
- Created a user to be used for the synch process (svnsync)
- User has read permissions on original repository
- User has r/w on the copy repository
- I had to create a pre-revprop-change.bat file. This was a bit of a pain, as I've written very few DOS scripts, and the templates provided were unix shell scripts. I finally sludged my way through it and ended up with the following, incredibly basic implementation:
IF %3==svnsync exit 0
ELSE (
echo "Only the svnsync user can change revprops"
exit 1
)
- I then needed to initialize the sync, with the following command:
- svnsync init --username svnsync svn://copyRepository:port svn://originalRepository:port
- Finally, I executed a sync
- svnsync sync svn://copyRepository:port
I browsed the copyRepository with tortoise and it was in synch with originalRepository.
No comments:
Post a Comment