You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Peter Pommelich <Pe...@web.de> on 2011/08/04 09:07:04 UTC
Migrate parts of repository - got it right?
Hi everbody,
I searched the web and the mailing list archive and now just want to make sure that got everything right.
I have the task to move some folders (projects) of repository A into a different repository B. I have no admin access to any of the repositories. The only way to accomplish this is to set up a (local) temporary repo A_tmp, do a 'svnsync' of complete A to A_tmp, dump and filter the wanted projects, load the into a another temporary repo B_tmp and synchronize this with B. There is no way (without admin access to A and B) to just synchronize or mirror parts of repos A without using temporary repositories, right? I just want to that sure, because A is very large and it will take some time to get this done.
Thanks a lot!
Kind regards,
pete
___________________________________________________________
Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die
Toolbar eingebaut! http://produkte.web.de/go/toolbar
Re: Migrate parts of repository - got it right?
Posted by Les Mikesell <le...@gmail.com>.
On 8/4/2011 9:18 AM, Daniel Shahaf wrote:
> Konstantin Kolinko wrote on Thu, Aug 04, 2011 at 14:58:24 +0400:
>> 2011/8/4 Peter Pommelich<Pe...@web.de>:
>>> I just want to that sure, because A is very large and it will take some time to get this done.
>>
>> Note, that svnsync can be used to synchronize only a subset of repository.
>>
>> As says help printed by "svnsync help init",
>> If the source URL is not the root of a repository, only the
>> specified part of the repository will be synchronized.
>>
>> Though I suspect that there are caveats: there should not be move or
>> copy operations that cross the boundary between this project and the
>> rest of repository.
>
> I expect it to work in that case too. (A copy into the tree would be
> converted into an add.)
Just be sure to check that you are actually getting the content you
expected. I once set up svnsync with an incorrect source URL pointing
at a path that didn't exist in the repository, watched it copy every
revision and revprop, and thought for a while that I had a backup of the
content.
--
Les Mikesell
lesmikesell@gmail.com
Re: Migrate parts of repository - got it right?
Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Konstantin Kolinko wrote on Thu, Aug 04, 2011 at 14:58:24 +0400:
> 2011/8/4 Peter Pommelich <Pe...@web.de>:
> > I just want to that sure, because A is very large and it will take some time to get this done.
>
> Note, that svnsync can be used to synchronize only a subset of repository.
>
> As says help printed by "svnsync help init",
> If the source URL is not the root of a repository, only the
> specified part of the repository will be synchronized.
>
> Though I suspect that there are caveats: there should not be move or
> copy operations that cross the boundary between this project and the
> rest of repository.
I expect it to work in that case too. (A copy into the tree would be
converted into an add.)
Re: Migrate parts of repository - got it right?
Posted by Konstantin Kolinko <kn...@gmail.com>.
2011/8/4 Peter Pommelich <Pe...@web.de>:
> I just want to that sure, because A is very large and it will take some time to get this done.
Note, that svnsync can be used to synchronize only a subset of repository.
As says help printed by "svnsync help init",
If the source URL is not the root of a repository, only the
specified part of the repository will be synchronized.
Though I suspect that there are caveats: there should not be move or
copy operations that cross the boundary between this project and the
rest of repository.
In SVN 1.7 there will also be "svnrdump" utility that will allow to
create repository dump remotely, internally using the same approach as
svnsync. I have not tried it though.
Best regards,
Konstantin Kolinko