TortoiseSVN, how to dump a repository?

前端 未结 5 1103
被撕碎了的回忆
被撕碎了的回忆 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:28

    Subversion 1.7 now has the svnrdump command line utility.

    svnrdump dump https://host/repo > repo.dump

    Note that this always creates a dump with deltas, which might not be what you want.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2021-02-14 16:36

    TortoiseSVN is a svn client. It cannot take a dump of your repository. You need a tool like svnadmin on the server hosting your SVN repository to take a dump. You need access to the server and its filesystem.

    Also see here for migrating a repository

    0 讨论(0)
  • 2021-02-14 16:37

    The first thing you need to do is follow this tutorial to get some idea about how to use TortoiseSVN on the local machine.

    http://www.thinkplexx.com/learn/howto/scm/svn/how-to-create-and-use-local-svn-subversion-repository-on-windows-or-linux-simple-and-fast-step-by-step

    once you have done with above tutorial and committed your files to the repository, execute below command.

    svnadmin dump TortoiseRepository > dumpfile

    If your TortoiseSVN repository is not called 'TortoiseRepository' just change the name above to whatever you have called it. If the dump works you should see lots of '*Dumped revision' messages. The 'dumpfile' now contains an entire export of your TortoiseSVN repository and all the revisions, comments etc.

    0 讨论(0)
  • 2021-02-14 16:42

    svnadmin is part of the SVN server, so you should have a direct admin access to your repository server.

    0 讨论(0)
提交回复
热议问题