Return to Snippet

Revision: 54420
at December 22, 2011 22:04 by altern

Initial Code
REM script dumps specific project by getting it from the repository 

IF "%1"=="" (
	ECHO "Usage: %0 project" 
svn list file:///%cd:\=/%/ | grep ^%1/ > tmp.file
set /p grepResult=<tmp.file
del tmp.file
IF "%grepResult%"=="" (
	ECHO There is no '%1' project in the current repository
svnadmin dump . > repo.dump
svndumpfilter include %1/ < repo.dump > %1.dump
ECHO Project '%1' has been successfully dumped to file %1.dump

Initial URL

Initial Description
Batch script creates repository dump of specific project in repository. It assumes that repository has following structure:



Needs UnxUtils installed to be executed successfully(

Initial Title
Create svn repository dump

Initial Tags
svn, windows

Initial Language
DOS Batch