How do I migrate an SVN repository to another SVN repository?

前端 未结 9 989
小蘑菇
小蘑菇 2020-12-07 13:07

Is there a simple way to copy a directory from one repository into another repository with copying all of the history?

9条回答
  •  日久生厌
    2020-12-07 13:50

    In Subversion version 1.7 there is a new command, svnrdump which can be used to access a remote repository and generate the same dump format output as is generated by the svnadmin dump command. This allows you to use svnrdump with svnadmin load to transfer a Subversion repository.

    See svnrdump—Remote Subversion Repository Data Migration which has an explanation of the new command.

    In Chapter 5 of the red book, the section Migrating Repository Data Elsewhere has a sub-section Repository data migration using svnrdump that mentions:

    The primary difference [between svnrdump and svnadmin dump] is that instead of requiring direct access to the repository, svnrdump operates remotely, using the very same Repository Access (RA) protocols that the Subversion client does. As such, you might need to provide authentication credentials. Also, your remote interations [sic] are subject to any authorization limitations configured on the Subversion server.

    I would also assume that the limitations of svnadmin dump concerning server configuration customizations such as hooks may not be transferred would also apply to svnrdump.

提交回复
热议问题