Given:
Repository_1 - source
Repository_2 - destination
I created a dump file of Repository_1/Folder1 using combination of svnadmin and svndumpfilter
When loading from the dump file from Repository_1/Folder1 into Repository_2/Trunk everything is fine BUT
When loading from Repository_1/Folder1/Sub-folder(created another dump for this) into Repository_2/trunk i get the following error:
svnadmin: File not found: transaction '267-89', path 'trunk/Folder1/Sub-folder'
Can anyone explain?
Turns out that structure(empty folders) in destination needs to pre-created. So, If you want to do this:
When loading from Repository_1/Folder1/Sub-folder(created another dump for this) into Repository_2/trunk
you need to created this structure in svn
Repository_2/trunk/Folder1
note: you only need to create parents, not the folder itself, so DO NOT CREATE Repository_2/trunk/Folder1/Sub-folder
you'll get this error if someone copied something from trunk/Folder1 to trunk/Folder1/Sub-folder. since you have only included trunk/Folder1/Sub-folder in your dump, it cannot find the required file(s) from trunk/Folder1 anymore and stops with this error.
to solve this you'll have to make sure to include everything in the dump that has been the source of a copy.
As noted in this thread, svnrdump
works differently from svndump
.
svndump
+ svndumpfilter
:
svnrdump
:
svndumpfilter include
. For example, svnrdump https://server.example.com/svn/repo/branches/1.4
would grab all the revisions affecting /branches/1.4.| svndumpfilter include / --drop-all-empty-revs --renumber-revs
.Bottom line: svnrdump
will probably work better.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With