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

Re: svn dump and load - half size repository?

From: Ryan Schmidt <subversion-2009d_at_ryandesign.com>
Date: Fri, 18 Dec 2009 07:08:22 -0600

On Dec 18, 2009, at 06:52, Andrew Hardy wrote:

> Performed a dump of one repository to create a new one (for testing/backup/etc.). No errors reported during either operation. Both repositories are BDS.

Do you mean BDB -- BerkeleyDB?

> The new repository is around half the size of the original - should I be worried? I notice that the 'revs' directory in the new repository has a different format to the old - the old had all files in the base directory, the new one has a new directory for every hundred revisions.

The presence of the revs directory indicates this is not a BDB repository but an FSFS one. FSFS is the default repository type since Subversion 1.2.

The behavior you are observing in the revs directory is called sharding and is new for Subversion 1.5, and was improved in 1.6, and can lead to significant space savings:

http://subversion.tigris.org/svn_1.6_releasenotes.html#fsfs-packing

There can also be other differences in size between BDB and FSFS representations of the same repository.

BDB was the default in Subversion 1.1 and earlier, i.e. a long time ago. BerkeleyDB uses log files, and in older versions of BDB, old log files were not automatically deleted. No such logs would be present in your newly loaded repository, which could further account for the space savings you're seeing.

> How can I compare two repositories to ensure that they are consistent up to a certain revision?

Since no errors were reported during dump and load, I assume your repositories are fine. You can additionally run "svnadmin verify" on them.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2431485

Please start new threads on the <users_at_subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <users-subscribe_at_subversion.apache.org>.
Received on 2009-12-18 14:09:14 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.