You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Tim Hill <ti...@realmgp.com> on 2006/04/25 19:57:00 UTC

Repository binary compatibility?

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?

--Tim



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

Re: Repository binary compatibility?

Posted by Tim Hill <ti...@realmgp.com>.
thanks for the info. As you note, I'll probably do it the official way 
to avoid any possible issues.

--Tim

Nathan Kidd wrote:
> 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
>


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

Re: Repository binary compatibility?

Posted by Nathan Kidd <na...@spicycrypto.ca>.
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

Re: Repository binary compatibility?

Posted by Nico Kadel-Garcia <nk...@comcast.net>.
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?
>
> --Tim

It Depends(tm). For example, pre-commit scripts may be sensitive to 
end-of-line issues between Windows, UNIX-like systems, and MacOS. 


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