svn只有可读权限时远程dump

xiaoxiao2021-02-28  38

原文

As of subversion 1.7, you can also use the new command svnrdump. From the docs

Dump—that is, generate a repository dump stream of—revisions of the repository item located at SOURCE_URL, printing the information to standard output.

Usage would be:

svnrdump dump http://example.com/repos/ > repos.dump

This creates a “dump file” of the repository in repos.dump. This is a complete backup of your repository data including history, but is not directly readable by a subversion client. If you need to restore this data, use the standard svnadmin tools:

svnadmin create c:\backup-repos svnadmin load c:\backup-repose < repos.dump

Haven’t done any testing, but this might end up being slower than svnsync. svnrdump will do a complete dump of the repository everytime, where I’m assuming synsync will only import changes in the repository since the last time it was run. You will have a single file containing your entire repository though, which may or may not be easier to manage.

Note that you may want to pipe the output of svnrdump through gzip or similar program to possibly significantly reduce the size of the outputted file.

转载请注明原文地址: https://www.6miu.com/read-2629194.html

最新回复(0)