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

Re: load/dump between different OS's?

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2004-02-27 18:59:11 CET

"Garrett, Benjamin D" <benjamin.d.garrett@lmco.com> writes:

> Is it possible/supported to do a svnadmin dump from one operating
> system, and then do a svnadmin load of that repository onto a
> different OS?

Yes. But it's also an incredible waste of time. Use the Berkeley
db_dump and db_load utilities for that purpose, and save yourself the
overhead of deducting changesets for each of your revisions, of
undeltifying old versions for each of your changed files, etc...

Seriously:

   On old machine:
      $ for DBFILE in changes copies nodes representations \
                      revisions strings transactions uuids; do \
        db_dump ${DBFILE} > ${DBFILE}.dump; \
        done

   On new machine:

      $ svnadmin create new-repos
      $ cd new-repos/db
      $ # copy *.dump from the old machine
      $ for DBFILE in changes copies nodes representations \
                      revisions strings transactions uuids; do \
        rm ${DBFILE}
        db_load ${DBFILE} < ${DBFILE}.dump; \
        done

  

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 27 18:59:28 2004

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.