- Create your local repository: svnadmin create PATH
- Create an empty pre-revprop-change hook script: echo '#!/bin/bash' > PATH/hooks/pre-revprop-change
- Make the pre-revprop-change hook script executable: chmod +x PATH/hooks/pre-revprop-change
- Initialize svnsync: svnsync init file:⁄⁄⁄PATH URL_TO_REPO_ROOT_TO_CLONE
- Synchronize: svnsync sync DEST_URL
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:
Post a Comment