r5 - 17 Feb 2008 - 04:05:30 - SvenDowideitYou are here: TWiki >  Codev Web > SVN > SubversionMirrorSetUp
Tags:
, create new tag

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:
  • svk (http://svk.elixus.org/) (>0.30)
  • svn
  • space, lots of space... (about 2 times of repository checkout size)

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
  • $ svk depotmap --init

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.

ALERT! 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

 
BasicForm
TopicClassification Select one...
TopicSummary How to setup one's own svn mirror.
InterestedParties

RelatedTopics

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r5 < r4 < r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo