You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by ms...@gmx.de on 2004/03/28 02:18:19 UTC

backup / restore between different platforms

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.

-- 
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: backup / restore between different platforms

Posted by Max Bowsher <ma...@ukf.net>.
> 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

Re: backup / restore between different platforms

Posted by Brian Mathis <bm...@directedge.com>.
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.


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
http://directedge.com/b/


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: backup / restore between different platforms

Posted by Jan Hendrik <ja...@bigfoot.com>.
Concerning backup / restore between different 
mscondo@gmx.de wrote on 28 Mar 2004, 4:18, at least in part:

> 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?

If you mean svn dump/load with backup, then that should do what 
you want and move your repository over to another platform. 
Hotbackup/copy (?) surely will not as it replicates the repository as 
is, that is with the restrictions of Berkeley to the respective OS it is 
used on.

Jan Hendrik
---------------------------------------
Freedom quote:

     Another current catch-phrase is the complaint
     that the nations of the world are divided
     into 'haves' and the 'have-nots.'
     Observe that the 'haves' are those who have freedom,
     and that it is freedom that the 'have-nots' have not.
                -- Ayn Rand


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org