How to back up/convert your VSS data to SVN
January 21st, 2009
Whole process looks very simple: grab VSS, produce text file, run SVN and consume produced file.
- Download and install (unpack) vss2svn
- Run vss2svn.exe
vss2svn.exe --vssdir \\vss\repository\path
- That will produce
vss2svn-dumpfile.txt
file which will be consume by svnadmin
- [Optional]: compress and send vss2svn-dumpfile.txt file. I’m using 7-zip:
"{PathTo7-Zip}\7-Zip\7z.exe" a "%DATE% vss2svn-dumpfile.7z" "vss2svn-dumpfile.txt" -t7z -mx9 -aoa - Run svnadmin, use vss2svn-dumpfile.txt
"{PathToSVN Server}\VisualSVN Server\bin\svnadmin" load "E:\SVN Repositories\BackupVSS" < "vss2svn-dumpfile.txt" - And thats it.
Whole script might look like this:
E: CD E:\Vss2Svn\ vss2svn.exe --vssdir \\vss\repository\path :: ### Optional compression, you might do this if you want send file somewhere else ### "C:\Program Files (x86)\7-Zip\7z.exe" a "%DATE% vss2svn-dumpfile.7z" "vss2svn-dumpfile.txt" -t7z -mx9 -aoa :: ### SVNAdmin ### "C:\Program Files (x86)\VisualSVN Server\bin\svnadmin" load "E:\SVN Repositories\BackupVSS" < "vss2svn-dumpfile.txt"