TortoiseSVN, how to dump a repository?

2020-06-14 03:24发布

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 can't find a way to create it. Some forums say to use "svnadmin" but I can't find it also.

My question is how can I create a *.dump file with TortoiseSVN?

标签: tortoisesvn
5条回答
爷的心禁止访问
2楼-- · 2020-06-14 03:34

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.

查看更多
\"骚年 ilove
3楼-- · 2020-06-14 03:52

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

查看更多
贼婆χ
4楼-- · 2020-06-14 03:59

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.

查看更多
够拽才男人
5楼-- · 2020-06-14 03:59

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

查看更多
聊天终结者
6楼-- · 2020-06-14 04:01

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.

查看更多
登录 后发表回答