Move svn server repository to new location

By neokrates, written on June 23, 2009

howto

Rate it
  • 1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 3.5 out of 5)
    Loading ... Loading ...
Ad
Poll
  • Do you plan to migrate to new SCM?

    • Our current SCM is just perfect (69%, 9 Votes)
    • Subversion (SVN) (15%, 2 Votes)
    • Git (8%, 1 Votes)
    • Mercurial (Hg) (8%, 1 Votes)
    • Bazaar (0%, 0 Votes)
    • Other (0%, 0 Votes)

    Total Voters: 13

    Vote

    Loading ... Loading ...
Feeds:
  • bodytext bodytext bodytext
Most popular search terms:

On the server, the svn repositories are stored under normal directories. You instruct subversion to “dump” the data from your source repository and “load” it into new location.

Suppose, your current repository location is : /home/svn/repositories/svn/repo1

and you want to move your repository to /home/svn/repositories/svn/scc

Do:

1
2
3
4
svnadmin dump /home/svn/repositories/svn/repo1 > ~/repo1.dmp
cd /home/svn/repositories/svn
svn create scc
svnadmin load scc < ~/repo1.dmp
 
Does that help to solve your problem?
VN:F [1.8.5_1061]
Rating: 0 (from 2 votes)
1 votes 'YES'  1 votes 'NO'

LEARN MORE (amazon bookstore)

TAGS

RELATED
Pages
Posts

SOCIAL
Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • BlinkList
  • Blogosphere News
  • E-mail this story to a friend!
  • Furl
  • LinkArena
  • Live
  • MisterWong
  • Print this article!
  • StumbleUpon
  • Technorati
  • Webnews.de
  • YahooMyWeb

INCOMING SEARCH TERMS


2 Responses to “Move svn server repository to new location”

  1. Anatoly says:

    isn’t working.
    the following simply dump works for me:
    svnadmin dump /home/svn/repositories/svn/repo1 > repo1.svn
    svnadmin load /home/svn/repositories/svn/scc

    Like or Dislike: Thumb up 0 Thumb down 0

  2. Anatoly says:

    Hi,

    As I see you have chaged your “dump” command.

    I am not sure, but earlier you had some symbols before “>” with “&”
    and all information from repo wasn’t saved to dump file and was showed to standart output.

    Sorry for my English :-)

    Like or Dislike: Thumb up 0 Thumb down 0

Leave a Reply