svnadmin

Piping data on Windows command prompt

橙三吉。 提交于 2019-11-27 17:54:22
问题 I need to get a backup dump of a large (~8gb) svn repository. My current method involves using svnadmin dump to a file and then using 7-Zip to compress and split the file. > svnadmin dump c:\path\to\myrepo > c:\svndump.svn > 7z svndump.svn svndump.7z // or whatever the correct syntax is I was wondering if there would be a way to skip the middle-man here, and get the svn dump data to be compressed in one go by using pipes or something? Is this possible? What would the syntax be? 回答1: svnadmin

SVN move single directory into other repository (with history)

我们两清 提交于 2019-11-27 09:59:25
问题 Related question: Moving repository trunk to another’s branch (with history) I know that one can dump a complete SVN repository with history and load it into a user-defined (sub)directory of the target repository using: // in source repo > svnadmin dump . > mydumpfilename // in destination repo (backslashes because I'm using Windows) > svnadmin load . < mydumpfilename --parent-dir some\sub\directory But this will import the full repository into the target repository's sub-directory. What I

Subversion Obliterate feature

↘锁芯ラ 提交于 2019-11-27 07:27:28
I was just thinking of writing a shell script to implement the obliterate functionality in an easy to do way (externally, using the suggested way, but automated). Here's what I had in mind: On the client svn list -R > file-list . filter file-list in several ways like grep to create a file "files-to-delete", something like a set of grep XXX file-list>>files-to-delete . transfer files-to-delete to the server using scp. On the server Dump the repository svnadmin dump /path/to/repos > repos-dumpfile , this can be kept as a backup too. Filter the dump file, for each word in "files-to-delete", do:

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

♀尐吖头ヾ 提交于 2019-11-27 05:06:20
问题 Is there a simple way to copy a directory from one repository into another repository with copying all of the history? 回答1: The simplest way is using: svnadmin dump path/to/repos > repos.out This will create a portable format for your repository (with history) in the file repos.out . You can then use svnadmin load path/to/newrepos < repos.out to load your 'dumped' repository to the new or existing one. Chapter 5. Repository Maintenance -> Migrating Repository Data Elsewhere has this note

How do I dump one project out of an SVN repository which contains multiple projects?

[亡魂溺海] 提交于 2019-11-26 19:11:40
问题 I am working with an SVN repository with many projects. I need to move a few of the projects out of that repository into individual repositories, one for each project, keeping the history. I've been able to use svnadmin dump to dump the entire repository and svnadmin load it into another repository, but I can't find a way of dumping only one project from the original repository so I can load it into the new one. Is this possible? If so how? 回答1: You can use the svndumpfilter utility to do

Subversion Obliterate feature

微笑、不失礼 提交于 2019-11-26 13:17:42
问题 I was just thinking of writing a shell script to implement the obliterate functionality in an easy to do way (externally, using the suggested way, but automated). Here's what I had in mind: On the client svn list -R > file-list . filter file-list in several ways like grep to create a file "files-to-delete", something like a set of grep XXX file-list>>files-to-delete . transfer files-to-delete to the server using scp. On the server Dump the repository svnadmin dump /path/to/repos > repos