Skip to content

Instantly share code, notes, and snippets.

@nanusdad
Last active November 30, 2015 03:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nanusdad/70738d698d3eaded98cc to your computer and use it in GitHub Desktop.
Save nanusdad/70738d698d3eaded98cc to your computer and use it in GitHub Desktop.
SVN - repository move to another server
  • Install svnserve server in newbox
  • Check working directory is fully checked-in at oldbox to subversion, and back it up.
  • Dump the subversion repository. This is done with an svnadmin command: at oldbox svnadmin dump /export/svnrepo/reponame | gzip -9 - > reponame.dump.gz
  • Create the new subversion repository ---- at newbox To create a repository ‘newrepo’ run the svnadmin create command from $SVNHOME/bin. Provide fullpath to the repository at newbox. svnadmin create /export/svnrepo/newrepo .
  • Copy the reponame.dump.gz file up to the newbox server.
  • Load the dumpfile into the new repository: at newbox zcat reponame.dump.gz | svnadmin load /export/svnrepo/newrepo
  • Checkout the new repository to a directory at dev11 svn co svn:// newbox.dev.location.somename.com/export/svnrepo/newrepo/trunk
  • switch my working directory to the new repository:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment