[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Need advice: svnadmin dump and load between different versions of subversion?

From: Andrey Repin <anrdaemon_at_freemail.ru>
Date: Thu, 2 Apr 2009 18:18:33 +0400

Greetings, Timothy Kallinis!

TK> I need to filter out some modules from a fairly large svn repo running under Debian Sarge. The version of subversion is 1.1.4. I am able to perform "svnadmin dump repo", "svnfilter
TK> --renumber-revs --drop-empty-revs" successfully. However, I cannot load the dump file into an empty repo. I don't recall the exact error, but I believe it was "transaction not found" or something
TK> similar.

TK> As a test, I setup a Debian Lenny environment running subversion 1.5.1. I made a backup copy of the svn repo from the Debian sarge environment into the Lenny one and performed the following
TK> operations:

TK> svnadmin --pre-1.4-compatible --fs-type fsfs create svn-old-format
TK> svnadmin dump svn-back > svn-back.dump (Note that svn-back is a copy of the repo running under svn 1.1.4)
TK> cat svn-back.dump | lengthy svndumpfilter command > svn-filtered.dump
TK> cat svn-filtered.dump | svnadmin load svn-old-format

TK> This works perfectly fine in my Lenny chroot under svn 1.5.1. Can I now copy the repo I generated into the old Debian Sarge environment and expect svn 1.1.4 to work with it without any data
TK> corruption or other problems? Is this safe to do and are there any tests I can perform to verify data integrity? Perhaps, this is something that should never be done between such differing
TK> versions of subversion. I just don't know.

TK> Although I would dearly love to upgrade the Debian Sarge server to Debian Lenny, I will not be allowed to do this. However, I also need to filter out some modules and the only way that seems to
TK> work is the approach detailed above. There are huge differences between 1.1 and 1.5, so any advice would be appreciated.

TK> Subversion is installed from the standard Debian packages. BTW this is a production repo of a large size, about 15 GB.

Can you recompile 1.5 or 1.6 under your working server?
That would be much better solution.

 Andrey Repin (anrdaemon_at_freemail.ru) 02.04.2009, <18:17>
Sorry for my terrible english...
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-02 16:22:58 CEST

This is an archived mail posted to the Subversion Users mailing list.