Question

I am trying to migrate from repoA containing the usual structure (branches, tags, and trunk) with subfolders in the trunk only to an existing RepoB that has projects and codes in branches, tags and trunk.

I have a dump file created through code:

svnadmin dump "s:\Repository_A" > x:\RepoA.svn_dump

This gives me everything from repoA.

Then I try to load RepoA.svn_dump to repoB using the following commend:

svnadmin load --parent-dir "svn://svn/_Backup" "S:\Repository_B" < X:\Ceto.svn_dump --ignore-uuid

It gives me an error message:

Adding path: svn://svn/_backup/branches ...svnadmin: File not found: transaction 'xxxx=xxx', path 'svn://svn/_backup/branches'

After googling, I added folders to RepoB using following commends:

svn mkdir -m "+ created branches in svn for repository backup.........." svn://svn/_Backup/trunk/Designs
svn mkdir -m "+ created branches in svn for repository backup.........." svn://svn/_Backup/trunk/Source
svn mkdir -m "+ created branches in svn for repository backup.........." svn://svn/_Backup/trunk/Tools
svn mkdir -m "+ created branches in svn for repository backup.........." svn://svn/_Backup/trunk/Videos

There is no subfolders in RepoA branches and tags and there are subfolders under the directories created above.

After this it still give me the same error

Adding path: svn://svn/_backup/branches ...svnadmin: File not found: transaction 'xxxx=xxx', path 'svn://svn/_backup/branches'

Where have I done wrong OR what should I actually do? Please help.

Was it helpful?

Solution

You should only add the parent parent dir:

svn mkdir -m "+ created parent-dir for repo import." svn://svn/_Backup/

btw: you could create multlple paths in a single transaction by adding more than 1 path in svn mkdir.

You must not include the protocol into your path:

svnadmin load --parent-dir "/_Backup" "S:\Repository_B" < X:\RepoA.svn_dump 

OTHER TIPS

Perhaps you should try specifying the folder name for --parent-dir instead of svn://

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top