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

Re: Revision sizes...

From: Ian Anderson <i.tsvn_at_operation-sensory-overload.com>
Date: 2006-01-05 07:54:51 CET

Thomas Hruska wrote:
> So...I was submitting revisions the other day to my own local repository
> and got curious as to how large the database was. I've only made about
> 30 revisions, but the database is already 50MB in size. Is this normal?

The repository shouldn't be much more than the original file sizes plus
the size of the diffs between each revision. Subversion uses a binary
differencing algorithm on binary files to keep the size of the
repository down. If you have 40MB of files, this number makes sense. If
you have 10MB of files, it probably doesn't.

If your copy of Subversion is linked against a version of Berkeley DB
older than 4.3, old log files may be building up in your database
directory. These logs can be used to reconstruct the database should it
ever be corrupted but for most people they just sit around taking up
space. If you want to get rid of old log files you can, under Unix,
issue the command:

svnadmin list-unused-dblogs | xargs rm

This won't remove anything from the repository itself, it will just
delete old database logs. Naturally this information doesn't apply to
FSFS repositories nor to repositories using BDB 4.3 or newer which clean
old logs automatically.

> If so, how do people with thousands of revisions back up the
> database? The stuff I'm putting in is mostly source code but it also
> includes some binary data that doesn't change very often (e.g. icons and
> the PSD files used to create the icons).

I have a 500 revision, 600MB repository that gets backed up to CD
weekly. Sooner or later it will exceed the capacity of a CD, at which
point I'll probably start using DVDs but that won't be for a little
while since the repository doesn't generally get more than 500KB larger
when I do a commit.

Hope this helps.

Ian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Jan 5 08:01:11 2006

This is an archived mail posted to the TortoiseSVN Dev mailing list.

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