svn-dump-reloc - rewrite paths in a Subversion dump
svn-dump-reloc from to [from1 to1 [...]]
This utility modifies a repository dump, rewriting file paths in accordance with the passed arguments.
It reads the original repository dump from stdin and writes the modified dump to stdout.
It is useful to import a repository as a subdirectory of another already existent one. For instance:
$ svnadmin dump /my/repos | svn-dump-reloc "/" "my/project" >dump
will relocate all the files in the dump to the subdirectory my/project.
Or to rename or move directories:
$ svnadmin dump /my/repos | svn-dump-reloc "foo/doz" "bar" >dump
that will move the files in the directory foo/doz to bar leaving the rest untouched.
Paths are always absolute and there is no need to begin them with a slash (/). For instance, foo and /foo are equivalent.
This program does not check for colisions on the file tree and so, it is possible to generate corrupted dumps when some target path overlaps with another directory present in the dump.
svnadmin, svndumpfilter, http://svnbook.red-bean.com/.
Salvador Fandiño <email@example.com>
Copyright (C) 2007-2008 by Qindel Formacion y Servicios S.L.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1 POD Error
The following errors were encountered while parsing the POD:
alternative text 'http://svnbook.red-bean.com/' contains non-escaped | or /
To install SVN::DumpReloc, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.