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

Re: Repository binary compatibility?

From: Nathan Kidd <nathan-svn_at_spicycrypto.ca>
Date: 2006-04-25 22:11:27 CEST

Tim Hill wrote:
> Are repositories binary compatible across platforms? That is, if I
> create a repo using (say) the Windows version of svnserve, can I later
> move it to a Linux (or Mac) box and access it there using the
> appropriate svnserver version? Or do I need to export/import?

Using the FSFS backend, yes, you can move your repositories around at
will.

Using BDB I think the "official" line is "no", but in practice if your
CPU architectures are the same you *can* move e.g. between Windows and
Linux by (IIRC) removing the log files and doing a 'svn-admin recover'.
  I have successfully done this a few times in the past. If you search
in the archives you'll find some info from Max Bowsher on this topic.

Of course doing it the Completely-Guaranteed-Compatible-Way(TM) isn't
difficult either:

[host1] svnadmin dump oldrepo > oldrepo.dump
[host2] svnadmin create newrepo
[host2] svnadmin load newrepo < oldrepo.dump

(Add some gzip and netcat goodness in there and you're laughing.)

-Nathan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Apr 25 22:11:43 2006

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.