How to set up your local SVN mirror (with svk)
The goal is to have one's own subversion repository in order to add branches and changes which do not make sense in the global TWiki
SVN.
Step 0 Collect/install software
You will need:
Step 1 Setup local svn repository
If you havent already done, create a new repository.
-
# svnadmin create --fs-type fsfs /pathtonew/repos
-
# svnserve -d -r /pathtonew/repos
Step 2 Setup local svk depots
If you setup svk for the first time, create a new depot
Step 3 Setup local svn structure
- Create a new folder (i.e. /mytwiki) in your local svn repository. Would somebody please add the svn command here.
Step 4 Link up
Step 5 Mirror
-
$ svk sync //twiki.org
-
$ svk sync //mytwiki.com
This will take quite of long time for the first time.
Step 6 Local Merges
Merge changes from twiki.org to mytwiki.com.
-
$ svk smerge -sIlB //twiki.org //mytwiki.com
This will take quite of long time for the first time, too.
You probably want to add Step 5 and 6 to your crontab.

I never tried to upload changes to twiki.org via this svk setup. I always use a clean checkout from twiki.org.
See also:
http://www.nshb.net/node/71
--
Contributors: OliverKrueger
Discussion
--
OliverKrueger - 01 Mar 2006
My approach is similar, but I use svk only on the server side, and then checkout using svn:
create an svk depot and use it for the apache svn server
to create a new mirror
to create a local copy of a mirror, and then to merge changes from the mirror to it
- svk cp //mirror/project //local/myprojectbranch
- svk sync //mirrors/project
- svk smerge //mirrors/project //local/myprojectbranch
- (or in an svk checkout of the branch, run svk up -sm
I then put
svk sync -all into a cronjob
to the local branch from twiki.org
svk smerge //mirrors/twiki.org/twiki/trunk //local/TWikiTrunk -m "update from svn.twiki.org"
--
SvenDowideit - 01 Mar 2006