svn commands to dump and load project

testing host
-------------------------------------------
url = http://192.168.214.31:5000/svn/
path = c:/repositories/
-------------------------------------------

//look at the latest revision number in the existing 'factory' project to be dumped
svnlook youngest C:/repositories/factory

//dump 'factory' project
svnadmin dump C:/repositories/factory > C:/temp/factory.dump

//create new project in the repository called 'testing321'
svnadmin create C:/repositories/testing321

//1.load dumped project to the new project
svnadmin load C:/repositories/testing321 < C:/temp/factory.dump

//2. load into a subdirectory , e.g. testing321 /loadhere

//2.1 create subdirectory called 'loadhere'
svn mkdir [url/path]/testing321/loadhere , e.g.
svn mkdir http://192.168.214.31:5000/svn/testing321/loadhere

//2.2 load dump file into the subdirectory 'loadhere'
svnadmin load c:/repositories/testing321 --parent-dir loadhere < c:/temp/factory.dump

//3.load into a subdirectory in a subdirectory, e.g. testing321/loadhere/loadnow

//3.1 create subdirectory 'loadnow'
svn mkdir [url/path]/testing321/loadhere/loadnow, e.g.
svn mkdir http://192.168.214.31:5000/svn/testing321/loadhere/loadnow

//3.2 load dump file into the subdirectory 'loadnow'
svnadmin load c:/repositories/testing321 --parent-dir loadhere/loadnow < c:/temp/factory.dump


0 comments:

Post a Comment