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

Re: svn repository issue

From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Tue, 30 Dec 2008 02:39:13 -0600

On Dec 30, 2008, at 01:23, Yong Shiuh Rong wrote:

> Ryan Schmidt wrote:
>
>> On Dec 23, 2008, at 22:22, Yong Shiuh Rong wrote:
>>
>>> But i encounter another issue now, which is when i do the
>>> "svnadmin dump /svn/repos/abc/repo1 > /path/to/dump1" as told i
>>> got the following error.
>>>
>>> sudo svnadmin dump /svn/repos/abd/def/ > /svn/dumprepos/abc/def/
>>> -bash: /svn/dumprepos/abc/def/: Is a directory
>>>
>>> is there anything i done wrong?
>>
>> Give svnadmin the name of the file you want to dump to, e.g.:
>>
>> sudo svnadmin dump /svn/repos/abd/def/ > /svn/dumprepos/abc/def.dump
>
> i tried to run the following command:
> sudo svnadmin load /svn/repos/abc/ < /svn/dumprepos/abc/hij.dump
>
> but it gave me the following error:
>
> <<< Started new transaction, based on original revision 1
> svnadmin: File already exists: filesystem '/svn/repos/abc/db',
> transaction '14-h', path 'branches'
> * adding path : branches

Ah, so both repositories contain the directory "branches" (and
probably the directories "tags" and "trunk" as well, yes?)

So you should be loading each repository into a subdirectory of the
destination repository instead. Look into the --parent-dir option to
svnadmin load. Note that you will need to "svn mkdir" the directory
in question before you can load anything into it with the --parent-
dir option.

> i think i may redo the whole repository from scratch, is there any
> guide so that i won't repeat the same mistake again?

You don't have to start over if you don't want to; just use the --
parent-dir option.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=995622

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2008-12-30 09:40:18 CET

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.