TortoiseSVN, how to dump a repository?

前端 未结 5 1105
被撕碎了的回忆
被撕碎了的回忆 2021-02-14 15:50

I use Windows 7 and also I use TortoiseSVN to keep track of my code, now I want to migrate my repository to a cloud-service and the requirement is create a *.dump file, but I ca

5条回答
  •  北荒
    北荒 (楼主)
    2021-02-14 16:32

    TortoiseSVN ships the svnadmin utility with it. It is a command line utillity. So you will have to create a dump of your repository in the command line.

    To create a dump of your repository, use

    svnadmin dump C:\SVN\MyProject > C:\tmp\MyProject.dump
    

    where C:\SVN\MyProject is the path to your SVN repo and C:\tmp\MyProject.dump is the path to the dump file, which will be created.

    To import your previously made dump file into a new repository, use

    svnadmin load C:\SVN\MyProject < C:\tmp\MyProject.dump
    

    where C:\SVN\MyProject is the path to your new SVN repo and C:\tmp\MyProject.dump is the path to the dump file, which should be imported.

提交回复
热议问题