I am trying to create hundreds of individual dump files for an svn repo. So far I have this command to work off of which creates one single dump file for a specific revision.
svnrdump dump https://somesite.com/svn/project -r 1111 --incremental > Project_rev1111.dump
However, this is unfeasible for creating many revisions manually. I know I can something like:
svnrdump dump https://somesite.com/svn/project -r 1111:1114 --incremental > Project_rev1111.dump
Which will display in the cmd prompt:
* Dumped revision 1111.
* Dumped revision 1112.
* Dumped revision 1113.
* Dumped revision 1114.
So it looks like it dumps all the files in the specified range, but only creates the file "Project_rev1111.dump"
Is there a way to "pipe" in each of these revisions individually into their own corresponding files by modifying the command so that there will be 4 files created instead of 1?
You will have to use a for
loop in order to run the svnrdump
command separately for every applicable revision:
for %R in (1111 1112 1113 1114) do svnrdump dump https://somesite.com/svn/project -r %R --incremental > Project_rev%R.dump
If you have got a continuous range of revisions, you can use a for /L
loop instead:
for /L %R in (1111,1,1114) do svnrdump dump https://somesite.com/svn/project -r %R --incremental > Project_rev%R.dump