You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Frank Facciola <fr...@sknt.com> on 2007/03/30 17:41:00 UTC

SVN dump/load Question

Can I take a svndump from a BDB database running SVN v1.08 and load it
into a new repository on a different server that is running SVN v1.3.2,
but has been compiled without BDB and is using the FSFS?

The OS platforms are the same, both running debian linux 3.1

--------------------------------------------
Frank Facciola
Network Administration
frank.facciola@sknt.com

Sakonnet Technology
55 Fifth Avenue
13th Floor
New York NY 10003
www.sknt.com
 
+1 917 237 3810 direct 
+1 212 343 3103 fax 
+1 646 226 8534 mobile


Re: SVN dump/load Question

Posted by Larry Martell <la...@gmail.com>.
On 3/30/07, Frank Facciola <fr...@sknt.com> wrote:
>
> Ok, so I took a dump from my old subversion server v1.08 with a Berkeley DB back-end, gzipped it and transferred it via scp to my new subversion server v1.32 that was compiled without Berkeley DB
>
> I created a new repo:
> svnadmin create --fs-type=fsfs /var/svn/repo
>
> And then loaded my dump file [/var/svn/svn.dump]:
> svnadmin load /var/svn/repo < /var/svn/svn.dump
>
> This is what I get:
>
> subversion02:/var/svn# svnadmin load /var/svn/repo/ < svn.dump
> <<< Started new transaction, based on original revision 1
>      * adding path : .dummy ... done.
> svnadmin: Can't open directory '/var/svn/repo/db/transactions/0-1.txn/¥': No such file or directory
>
> Any ideas?

Check the ownership and permissions on your repo. Were you the svn user when you
created it?

-larry

> -----Original Message-----
> From: Maxim Veksler [mailto:hq4ever@gmail.com]
> Sent: Friday, March 30, 2007 1:56 PM
> To: Andy Levy
> Cc: Frank Facciola; users@subversion.tigris.org
> Subject: Re: SVN dump/load Question
>
> On 3/30/07, Andy Levy <an...@gmail.com> wrote:
> > On 3/30/07, Frank Facciola <fr...@sknt.com> wrote:
> > >
> > >
> > >
> > > Can I take a svndump from a BDB database running SVN v1.08 and load
> > > it into a new repository on a different server that is running SVN
> > > v1.3.2, but has been compiled without BDB and is using the FSFS?
> >
> > Yes, this is one of the reasons for having the dumpfile functionality.
> > SVN dumps are platform- and backend-agnostic and are one of the the
> > safest ways to move repositories across Subversion versions (and the
> > only way to change back-ends, AFAIK).
> >
>
> And on an OT note: Dumps are also better for backups, because the software (if it's smart enough) can make incremental backup of the dumped file.
>
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: users-help@subversion.tigris.org
> >
> >
>
>
> --
> Cheers,
> Maxim Veksler
>
> "Free as in Freedom" - Do u GNU ?
>
> ---------------------------------------------------------------------
> 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: SVN dump/load Question

Posted by Andy Levy <an...@gmail.com>.
On 3/30/07, Maxim Veksler <hq...@gmail.com> wrote:
> On 3/30/07, Andy Levy <an...@gmail.com> wrote:
> > On 3/30/07, Maxim Veksler <hq...@gmail.com> wrote:
> > > On 3/30/07, Andy Levy <an...@gmail.com> wrote:
> > > > On 3/30/07, Frank Facciola <fr...@sknt.com> wrote:
> > > > >
> > > > >
> > > > >
> > > > > Can I take a svndump from a BDB database running SVN v1.08 and load it into
> > > > > a new repository on a different server that is running SVN v1.3.2, but has
> > > > > been compiled without BDB and is using the FSFS?
> > > >
> > > > Yes, this is one of the reasons for having the dumpfile functionality.
> > > > SVN dumps are platform- and backend-agnostic and are one of the the
> > > > safest ways to move repositories across Subversion versions (and the
> > > > only way to change back-ends, AFAIK).
> > > >
> > >
> > > And on an OT note: Dumps are also better for backups, because the
> > > software (if it's smart enough) can make incremental backup of the
> > > dumped file.
> >
> > Or you could keep track of when you last dumped, and use svnadmin dump
> > --incremental to only dump the changes since the last dump.
> >
>
> Good tip! Thanks.
>
> Can I make svnadmin dump each revision as a separate file?

Yes. See:
http://svnbook.red-bean.com/en/1.2/svn.ref.svnadmin.c.dump.html
http://svnbook.red-bean.com/en/1.2/svn.reposadmin.maint.html#svn.reposadmin.maint.migrate

> Will I be able to make off line modifications to the dumped content
> and have a pain free import in case of need (NOT - if I make
> collusion. but what if I don't?)

IIRC there's a checksum in the dumpfile, so fiddling with the contents
can be tricky or maybe even not possible. I know it's been discussed
on the list but I don't recall the details.

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

Re: SVN dump/load Question

Posted by Maxim Veksler <hq...@gmail.com>.
On 3/30/07, Andy Levy <an...@gmail.com> wrote:
> On 3/30/07, Maxim Veksler <hq...@gmail.com> wrote:
> > On 3/30/07, Andy Levy <an...@gmail.com> wrote:
> > > On 3/30/07, Frank Facciola <fr...@sknt.com> wrote:
> > > >
> > > >
> > > >
> > > > Can I take a svndump from a BDB database running SVN v1.08 and load it into
> > > > a new repository on a different server that is running SVN v1.3.2, but has
> > > > been compiled without BDB and is using the FSFS?
> > >
> > > Yes, this is one of the reasons for having the dumpfile functionality.
> > > SVN dumps are platform- and backend-agnostic and are one of the the
> > > safest ways to move repositories across Subversion versions (and the
> > > only way to change back-ends, AFAIK).
> > >
> >
> > And on an OT note: Dumps are also better for backups, because the
> > software (if it's smart enough) can make incremental backup of the
> > dumped file.
>
> Or you could keep track of when you last dumped, and use svnadmin dump
> --incremental to only dump the changes since the last dump.
>

Good tip! Thanks.

Can I make svnadmin dump each revision as a separate file?
Will I be able to make off line modifications to the dumped content
and have a pain free import in case of need (NOT - if I make
collusion. but what if I don't?)
-- 
Cheers,
Maxim Veksler

"Free as in Freedom" - Do u GNU ?

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

Re: SVN dump/load Question

Posted by Andy Levy <an...@gmail.com>.
On 3/30/07, Maxim Veksler <hq...@gmail.com> wrote:
> On 3/30/07, Andy Levy <an...@gmail.com> wrote:
> > On 3/30/07, Frank Facciola <fr...@sknt.com> wrote:
> > >
> > >
> > >
> > > Can I take a svndump from a BDB database running SVN v1.08 and load it into
> > > a new repository on a different server that is running SVN v1.3.2, but has
> > > been compiled without BDB and is using the FSFS?
> >
> > Yes, this is one of the reasons for having the dumpfile functionality.
> > SVN dumps are platform- and backend-agnostic and are one of the the
> > safest ways to move repositories across Subversion versions (and the
> > only way to change back-ends, AFAIK).
> >
>
> And on an OT note: Dumps are also better for backups, because the
> software (if it's smart enough) can make incremental backup of the
> dumped file.

Or you could keep track of when you last dumped, and use svnadmin dump
--incremental to only dump the changes since the last dump.

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

Re: SVN dump/load Question

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Mar 30, 2007, at 15:18, Frank Facciola wrote:

> subversion02:/var/svn# svnadmin load /var/svn/repo/ < svn.dump
> <<< Started new transaction, based on original revision 1
>      * adding path : .dummy ... done.
> svnadmin: Can't open directory '/var/svn/repo/db/transactions/ 
> 0-1.txn/¥': No such file or directory

Not sure whether it's normal for it to be creating a file or  
directory called "¥" but that looks weird to me. If you haven't  
already, try setting the LANG environment variable to something  
(probably to a UTF-8 locale, like en_US.utf8, or whatever it's called  
on your system (check /usr/share/locale)) before loading and see if  
that makes a difference.


-- 

To reply to the mailing list, please use your mailer's Reply To All  
function


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


RE: SVN dump/load Question

Posted by Frank Facciola <fr...@sknt.com>.
 
Ok, so I took a dump from my old subversion server v1.08 with a Berkeley DB back-end, gzipped it and transferred it via scp to my new subversion server v1.32 that was compiled without Berkeley DB

I created a new repo:
svnadmin create --fs-type=fsfs /var/svn/repo

And then loaded my dump file [/var/svn/svn.dump]:
svnadmin load /var/svn/repo < /var/svn/svn.dump

This is what I get:

subversion02:/var/svn# svnadmin load /var/svn/repo/ < svn.dump 
<<< Started new transaction, based on original revision 1
     * adding path : .dummy ... done.
svnadmin: Can't open directory '/var/svn/repo/db/transactions/0-1.txn/¥': No such file or directory

Any ideas?
-----Original Message-----
From: Maxim Veksler [mailto:hq4ever@gmail.com] 
Sent: Friday, March 30, 2007 1:56 PM
To: Andy Levy
Cc: Frank Facciola; users@subversion.tigris.org
Subject: Re: SVN dump/load Question

On 3/30/07, Andy Levy <an...@gmail.com> wrote:
> On 3/30/07, Frank Facciola <fr...@sknt.com> wrote:
> >
> >
> >
> > Can I take a svndump from a BDB database running SVN v1.08 and load 
> > it into a new repository on a different server that is running SVN 
> > v1.3.2, but has been compiled without BDB and is using the FSFS?
>
> Yes, this is one of the reasons for having the dumpfile functionality.
> SVN dumps are platform- and backend-agnostic and are one of the the 
> safest ways to move repositories across Subversion versions (and the 
> only way to change back-ends, AFAIK).
>

And on an OT note: Dumps are also better for backups, because the software (if it's smart enough) can make incremental backup of the dumped file.

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


--
Cheers,
Maxim Veksler

"Free as in Freedom" - Do u GNU ?

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


Re: SVN dump/load Question

Posted by Maxim Veksler <hq...@gmail.com>.
On 3/30/07, Andy Levy <an...@gmail.com> wrote:
> On 3/30/07, Frank Facciola <fr...@sknt.com> wrote:
> >
> >
> >
> > Can I take a svndump from a BDB database running SVN v1.08 and load it into
> > a new repository on a different server that is running SVN v1.3.2, but has
> > been compiled without BDB and is using the FSFS?
>
> Yes, this is one of the reasons for having the dumpfile functionality.
> SVN dumps are platform- and backend-agnostic and are one of the the
> safest ways to move repositories across Subversion versions (and the
> only way to change back-ends, AFAIK).
>

And on an OT note: Dumps are also better for backups, because the
software (if it's smart enough) can make incremental backup of the
dumped file.

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


-- 
Cheers,
Maxim Veksler

"Free as in Freedom" - Do u GNU ?

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

Re: SVN dump/load Question

Posted by Andy Levy <an...@gmail.com>.
On 3/30/07, Frank Facciola <fr...@sknt.com> wrote:
>
>
>
> Can I take a svndump from a BDB database running SVN v1.08 and load it into
> a new repository on a different server that is running SVN v1.3.2, but has
> been compiled without BDB and is using the FSFS?

Yes, this is one of the reasons for having the dumpfile functionality.
SVN dumps are platform- and backend-agnostic and are one of the the
safest ways to move repositories across Subversion versions (and the
only way to change back-ends, AFAIK).

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