Personalmente lo he usado para migrar todos los commits de un servidor a otro pero la herramienta svnsync esta pensada para sincronizar servidores subversion.

A continuacion las instrucciones ejecutadas en el nuevo servidor SVN.

cd /home/javivf/
mkdir svn
svnadmin create svn/

cat <<'EOF' > svn/hooks/pre-revprop-change
#!/bin/sh
USER="$3"
if [ "$USER" = "javivf" ]; then exit 0; fi
echo "Only the svnsync user can change revprops" >&2
exit 1
EOF

chmod +x svn/hooks/pre-revprop-change
svnsync initialize --username svnsync file:///home/javivf/svn svn+ssh://javivf@server.svn.donde.estaba/home/javivf/svn/

svnsync sync file:///home/javivf/svn

Tomado prestado de http://svn.collab.net/repos/svn/trunk/notes/svnsync.txt :)

Tags

  • subversion
  • svn

Add new comment

Filtered HTML

  • Web page addresses and email addresses turn into links automatically.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
CAPTCHA
1 + 7 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.