You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Derek Gathright <dr...@gmail.com> on 2007/08/23 21:58:08 UTC

Problem migrating repo from windows to linux

I started with an svn repo on a windows box, and now I'm trying to migrate
it to a linux box.

I did your standard dump on the windows box:
svnadmin dump /path/to/repo > reponame.dump

Then I moved it to the linux box and ran:
svnadmin load /path/to/repo ~/reponame.dump

And I got this error:
svnadmin: Malformed dumpfile header


I've searched around and the only lead I have is that it has to do with how
windows handles newlines compared to linux. Any ideas on fixing it?

Thanks

Re: Problem migrating repo from windows to linux

Posted by Matt Sickler <cr...@gmail.com>.
The problem is that svnadmin load expects the dumpfile on STDIN.
you want
svnadmin load /path/to/repo < ~/reponame.dump

On 8/23/07, Andy Levy <an...@gmail.com> wrote:
> On 8/23/07, Derek Gathright <dr...@gmail.com> wrote:
> > I started with an svn repo on a windows box, and now I'm trying to migrate
> > it to a linux box.
> >
> > I did your standard dump on the windows box:
> > svnadmin dump /path/to/repo > reponame.dump
> >
> > Then I moved it to the linux box and ran:
> > svnadmin load /path/to/repo ~/reponame.dump
> >
> > And I got this error:
> > svnadmin: Malformed dumpfile header
> >
> >
> > I've searched around and the only lead I have is that it has to do with how
> > windows handles newlines compared to linux. Any ideas on fixing it?
>
> The dumpfile format should make that a non-issue.
>
> Is it possible the file just got corrupted when transferring it
> between the systems? Have you tried creating a new dumpfile from the
> Windows box & loading that into the Linux-hosted repository? How about
> loading the dumpfile into another repository on the Windows box?
>
> You did run svnadmin create /path/to/repo before attempting the load, right?
>
> ---------------------------------------------------------------------
> 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: Re: Problem migrating repo from windows to linux

Posted by "Srilakshmanan, Lakshman" <la...@police.vic.gov.au>.
Hi Subversion Gurus,

Any thoughts/feedback on moving FSFS Repository across OS by
zipping/tarring the repository and unzipping/untarring on the new OS.
Are there any technical reasons why this should not be done as described
by Talden below. 

I have done the above from Linux to Windows and did not experience any
issues. Your clarification on this issue is greatly appreciated.

This process assumes there is no activity on the repository during the
move. 


Thanks
Lakshman

-----Original Message-----
From: Talden [mailto:talden@gmail.com] 
Sent: Tuesday, 28 August 2007 8:57 AM
To: Srilakshmanan, Lakshman
Cc: Derek Gathright; users@subversion.tigris.org
Subject: Re: Problem migrating repo from windows to linux

> Hi Derek,
>
> If your repository is on FSFS and you can ensure there will be no 
> activity during the migration process, then I believe you could zip 
> the repository and unzip it on the Linux server.
>
> Thanks
> Lakshman

My understanding was that textual diffs were EOL normalised to be server
native.  This would break when copying a repo between platforms wouldn't
it?

In addition I thought I heard mention of an architecture dependency as
well (I'm assuming endian-ness and possibly word-width) but this may
have been only BDB.

If this isn't the case then it makes FSFS even more compelling.

--
Talden

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



=======================================================
The information contained in this email and any files attached may
be confidential information to the intended recipient and may be
the subject of legal professional privilege or public interest immunity.

If you are not the intended recipient, any use, disclosure or copying is
unauthorised.

If you have received this document in error please telephone 1300 307 082

*******************************************************************
This footnote also confirms that this email message has been swept
for the presence of computer viruses.
*******************************************************************

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


Re: Problem migrating repo from windows to linux

Posted by Talden <ta...@gmail.com>.
> Hi Derek,
>
> If your repository is on FSFS and you can ensure there will be no activity
> during the migration process, then I believe you could zip the repository
> and unzip it on the Linux server.
>
> Thanks
> Lakshman

My understanding was that textual diffs were EOL normalised to be
server native.  This would break when copying a repo between platforms
wouldn't it?

In addition I thought I heard mention of an architecture dependency as
well (I'm assuming endian-ness and possibly word-width) but this may
have been only BDB.

If this isn't the case then it makes FSFS even more compelling.

--
Talden

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

RE: Problem migrating repo from windows to linux

Posted by "Srilakshmanan, Lakshman" <la...@police.vic.gov.au>.
Hi Derek,
 
If your repository is on FSFS and you can ensure there will be no
activity during the migration process, then I believe you could zip the
repository and unzip it on the Linux server.
 
Thanks
Lakshman

________________________________

From: Derek Gathright [mailto:drgath@gmail.com] 
Sent: Friday, 24 August 2007 11:06 AM
To: Andy Levy
Cc: users@subversion.tigris.org
Subject: Re: Problem migrating repo from windows to linux


I actually figured it out.  The issue was

svnadmin load /path/to/repo /path/to/backup

should be

svnadmin load /path/to/repo < /path/to/backup

doh!  The tutorial I was reading left that important part out.


On 8/23/07, Andy Levy <andy.levy@gmail.com > wrote: 

	On 8/23/07, Derek Gathright <drgath@gmail.com > wrote:
	> I started with an svn repo on a windows box, and now I'm
trying to migrate
	> it to a linux box.
	>
	> I did your standard dump on the windows box:
	> svnadmin dump /path/to/repo > reponame.dump
	>
	> Then I moved it to the linux box and ran:
	> svnadmin load /path/to/repo ~/reponame.dump
	>
	> And I got this error:
	> svnadmin: Malformed dumpfile header
	>
	> 
	> I've searched around and the only lead I have is that it has
to do with how
	> windows handles newlines compared to linux. Any ideas on
fixing it?
	
	The dumpfile format should make that a non-issue. 
	
	Is it possible the file just got corrupted when transferring it
	between the systems? Have you tried creating a new dumpfile from
the
	Windows box & loading that into the Linux-hosted repository? How
about 
	loading the dumpfile into another repository on the Windows box?
	
	You did run svnadmin create /path/to/repo before attempting the
load, right?
	




=======================================================
The information contained in this email and any files attached may
be confidential information to the intended recipient and may be
the subject of legal professional privilege or public interest immunity.

If you are not the intended recipient, any use, disclosure or copying is
unauthorised.

If you have received this document in error please telephone 1300 307 082

*******************************************************************
This footnote also confirms that this email message has been swept
for the presence of computer viruses.
*******************************************************************


Re: Problem migrating repo from windows to linux

Posted by Derek Gathright <dr...@gmail.com>.
I actually figured it out.  The issue was

svnadmin load /path/to/repo /path/to/backup

should be

svnadmin load /path/to/repo < /path/to/backup

doh!  The tutorial I was reading left that important part out.

On 8/23/07, Andy Levy <an...@gmail.com> wrote:
>
> On 8/23/07, Derek Gathright <dr...@gmail.com> wrote:
> > I started with an svn repo on a windows box, and now I'm trying to
> migrate
> > it to a linux box.
> >
> > I did your standard dump on the windows box:
> > svnadmin dump /path/to/repo > reponame.dump
> >
> > Then I moved it to the linux box and ran:
> > svnadmin load /path/to/repo ~/reponame.dump
> >
> > And I got this error:
> > svnadmin: Malformed dumpfile header
> >
> >
> > I've searched around and the only lead I have is that it has to do with
> how
> > windows handles newlines compared to linux. Any ideas on fixing it?
>
> The dumpfile format should make that a non-issue.
>
> Is it possible the file just got corrupted when transferring it
> between the systems? Have you tried creating a new dumpfile from the
> Windows box & loading that into the Linux-hosted repository? How about
> loading the dumpfile into another repository on the Windows box?
>
> You did run svnadmin create /path/to/repo before attempting the load,
> right?
>

Re: Problem migrating repo from windows to linux

Posted by Andy Levy <an...@gmail.com>.
On 8/23/07, Derek Gathright <dr...@gmail.com> wrote:
> I started with an svn repo on a windows box, and now I'm trying to migrate
> it to a linux box.
>
> I did your standard dump on the windows box:
> svnadmin dump /path/to/repo > reponame.dump
>
> Then I moved it to the linux box and ran:
> svnadmin load /path/to/repo ~/reponame.dump
>
> And I got this error:
> svnadmin: Malformed dumpfile header
>
>
> I've searched around and the only lead I have is that it has to do with how
> windows handles newlines compared to linux. Any ideas on fixing it?

The dumpfile format should make that a non-issue.

Is it possible the file just got corrupted when transferring it
between the systems? Have you tried creating a new dumpfile from the
Windows box & loading that into the Linux-hosted repository? How about
loading the dumpfile into another repository on the Windows box?

You did run svnadmin create /path/to/repo before attempting the load, right?

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