Search This Blog

Monday, March 28, 2011

Clone Remote Subversion Repositories With svnsync

http://www.thoughtspark.org/node/10
  1. Create your local repository: svnadmin create PATH
  2. Create an empty pre-revprop-change hook script: echo '#!/bin/bash' > PATH/hooks/pre-revprop-change
  3. Make the pre-revprop-change hook script executable: chmod +x PATH/hooks/pre-revprop-change
  4. Initialize svnsync: svnsync init file:⁄⁄⁄PATH URL_TO_REPO_ROOT_TO_CLONE
  5. Synchronize: svnsync sync DEST_URL
(Note: "DEST_URL" is the url to the Subversion repository you created in step 1.)



export nameREPO=svnfractal
export fromREPO=/media/Dell/media/mybook/subversion/albertsk2011/$nameREPO
export fromTYPE=file
export destREPO=/media/seagate/svnsync/$nameREPO
export destTYPE=file

svnadmin create $destREPO
echo '#!/bin/sh'      >    $destREPO/hooks/pre-revprop-change
chmod  +x  $destREPO/hooks/pre-revprop-change
svnsync  init  $destTYPE://$destREPO    $fromTYPE://$fromREPO
svnsync  sync  $destTYPE://$destREPO 

No comments:

Labels

Blog Archive

Bacteria

Loading...