Hi guys,
Thanks a lot for your help - it worked fine with the dump/load with option
"--parent-dir".
Since I'm using SVN on Windows, it gives something like that:
C:\> svnadmin dump C:/SVN/MYREPO > C:\TEMP\SVN_REPO_2004_10_12.dump
C:\> move C:\SVN\MYREPO C:\SVN\MYREPO.OLD
C:\> SVNsvnadmin ADMIN create C:/SVN/MYREPO
C:\> svn mkdir C:/SVN/MYREPO/trunk
C:\> svn mkdir C:/SVN/MYREPO/branches
C:\> svn mkdir C:/SVN/MYREPO/tags
C:\> svnadmin load C:/SVN/MYREPO --parent-dir=trunk <
C:\TEMP\SVN_REPO_2004_10_12.dump
My migration went well - no big issues, no crashes, no loss in history...
Great!
Thanks again (beerfrick too!),
Cheers,
E.
> -----Original Message-----
> From: Dave Neary [mailto:david@phenix.fr]
> Sent: mercredi 29 septembre 2004 18:11
> To: Dave Neary
> Cc: Ian Brockbank; emmanuel.kartmann@lutecia.info;
> users@subversion.tigris.org
> Subject: Re: Recreate repository with proper structure
> trunk/branches/tags - without losing change history?
>
>
>
> Hi all,
>
> Dave Neary wrote:
> > An alternative way to do this is
> > $ svnadmin dump /path/to/repos > dumpfile
> > $ mv /path/to/repos /path/to/repos_saved_just_in_case
> > $ sed -e 's/^\(Node-path: \)\(.*\)/\1trunk\/\2/;s/^\(Copy-from-path:
> > \)\(.*\)/\1trunk\/\2/' dumpfile > dumpfile.new
> > $ svnadmin create /path/to/repos
> > $ svnadmin load dumpfile.new
> > $ svn mkdir file:///path/to/repos/branches
> > $ svn mkdir file:///path/to/repos/tags
>
> Someone on IRC (beerfrick, come on down!) just showed me a
> *much* easier
> way.
>
> $ svnadmin dump /path/to/repos > dumpfile
> $ mv /path/to/repos /path/to/repos_saved_just_in_case
> $ svnadmin create /path/to/repos
> $ svn mkdir -m "create directory structure"
> file:///path/to/repos/trunk
> file:///path/to/repos/branches file:///path/to/repos/tags
> $ svnadmin load /path/to/repos --parent-dir=trunk <dumpfile
>
> The keen-eyed will have noticed that my svnadmin load command line in
> the first mail was completely wrong. In my defense, I have loaded a
> repository from a dumpfile twice ever, and both times I had
> to run with
> -h first :)
>
> Cheers,
> Dave.
>
> --
> David Neary
> Phenix Engineering
> 110 ave Jean Jaures, 69007 Lyon
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Oct 12 22:01:13 2004