Migrating Subversion Repositories across servers

后端 未结 3 1935
礼貌的吻别
礼貌的吻别 2020-12-30 07:13

We\'re in the process of moving servers and one of the last items is moving over the svn repositories.

There are about 10 gigs of various svn repositories. They wer

3条回答
  •  执念已碎
    2020-12-30 07:54

    Subversion's FSFS is pretty stable on doing copies and movements, even across different OSes. While mliebelt is correct about doing it via dump reload, it takes ages to move 10 GB!

    That's why I would recommend the following procedure:

    1. Copy the repositories via filesystem to new server.
      e.g. $ scp -r /var/repos/ user@newServer:repos/

    2. Do an $ svnadmin upgrade to do an update on repository for 1.6 (this is optional, but highly recommended if you want to use 1.5/1.6 features like merge tracking, sparse checkouts, etc.)

    3. Do an $ svnadmin verify on each repository to verify all revisions are okay (You can do this on already running server).

    By this procedure you need probably 10 to 100 times less time:

    e.g. for dumping a repository it takes usually approx 1 GB per hour (largely depending on HD-speed), the dump files are much bigger than the repositories(in SVN 1.4!) So you have to move the larger file to the new server and do there an dump-load which also takes approx 1 hrs / GB. Compare this to a filesystem copy which usually is only limited by network connection (100 mbit approx. 10 MB / sec) or HD (approx 100 MB/sec), if you have GBit-LAN.

提交回复
热议问题