Perforce Public Knowledge Base - Creating an SVN MD5 dump file from an SVN repository
Perforce Software logo
Reset Search
 

 

Article

Creating an SVN MD5 dump file from an SVN repository

« Go Back

Information

 
Problem

How to create a SVN MD5 dump file from a Subversion repository and how to load the same dump file into another Subversion repository.

This is useful to debug conversion tool issues which are file path or file name dependent, and where customers do not want to send their entire dump to Perforce for debugging.  Instead the MD5 dump replaces all file content with an MD5 string, while preserving the same dump structure and file names.

Solution

0. Check svn and svnadmin versions

$ svn --version
svn, version 1.6.4 (r38063)
   compiled Nov 30 2010, 18:32:22

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/

This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
  - handles 'http' scheme
  - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - handles 'http' scheme
  - handles 'https' scheme

$ svnadmin --version
svnadmin, version 1.6.4 (r38063)
   compiled Nov 30 2010, 18:32:22

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/

This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository back-end (FS) modules are available:

* fs_fs : Module for working with a plain file (FSFS) repository.

 

1. Creating a MD5 dump (i.e. without any data)

$ svnadmin dump SVN_REPO > complete_repo.dump
$ ./svn-dump-shrink.pl complete_repo.dump > MD5_REPO.dump

2. Loading the MD5 dump

$ mkdir MD5_REPO
$ svnadmin create MD5_REPO
$ svnadmin load MD5_REPO < MD5_REPO.dump

Related Links

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255