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

Re: backup / restore between different platforms

From: Max Bowsher <maxb_at_ukf.net>
Date: 2004-03-29 23:01:21 CEST

> mscondo@gmx.de wrote:
>
>> Hello,
>>
>> I just read a hint in the svn documentation that a simple copy between
>> different os architectiures is not possible (eg. between Linux and
Windows).
>> What's about a restore of a backup and sequential log backups instead of
the
>> copy job? Will this work?
>>
>> Regards, Mario.

Brian Mathis wrote:
> If you use "svnadmin dump" to dump the repository, you can then load the
> dump file onto another platform without problems. You just can't copy
> the db files directly.

Well, sort of.

Berkeley databases are fully portable. Berkeley log files are portable
between machines with the same byte order. Only shared region files are
extremely non-portable. (This info comes from the Berkeley DB reference
manual, section "Database environment introduction")

What this means is, if you shut down all processes accessing the repository,
and call the Berkeley DB function DB_ENV->remove() to remove the __db.00?
region files, you can then begin using the repository on another OS. If it
is inconvenient to write some code to call DB_ENV->remove(), then running
the db_recover command line utility might be suitable, as it removes the
environment as part of running recovery. Even simply "rm"-ing the region
files seems to work fine.

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Mar 29 23:02:16 2004

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