Skip Corrupt Revisions During SvnAdmin Load

Posted by cisellis on Server Fault See other posts from Server Fault or by cisellis
Published on 2011-01-14T21:34:26Z Indexed on 2011/01/14 21:55 UTC
Read the original article Hit count: 347

Filed under:

I have a dump file that I am generating from VSS with the use of the VSS2SVN script. I've tested the generated dump file before and some of the revisions are corrupt for one reason or another (binary data or long path strings seem to be the main culprit). This is fine. In the past I have used svndumpfilter to split the dump file, remove the corrupt revisions and continue to load the repository. It worked but took a lot of manual effort to start the load, hit the bad revision, split the dump file, continue loading the repo, etc.

This dump file is pretty large (~5GB) and takes several hours to load. I think I know the answer to this but is there any way to simply tell svnadmin load to keep going and skip corrupt revisions? I know how to verify, backup, etc. the dump file and don't need any of that. I don't care about recovering corrupt revisions. I just want to start the load, walk away, and not worry about checking it every few hours to manually remove the corrupt revisions.

Is that possible? Thanks.

© Server Fault or respective owner

Related posts about svn