You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Himanshu Raina <ra...@yahoo.com> on 2007/03/29 06:22:01 UTC

Moving SVN to another server !!

HI,

I have moved my existing svn server to another server.
192.168.2.11/testing -- is the old server that has testing repository.Since i am setting up a new server and want all the data in testing repos to be available in new server is there a way i can import/dump the data without any revision history so that in the new server the revision should start from scratch.

thanks and regards
Himanshu Raina

 
---------------------------------
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.

Re: Moving SVN to another server !!

Posted by Himanshu Raina <ra...@yahoo.com>.
Hey Ryan,

Well it sure does work and solves the purpose.I was a bit apprehensive earlier thinking it mite just keep the revision numbers but this way it starts the revision from the begining..

thanks and regards
Himanshu Raina

Ryan Schmidt <su...@ryandesign.com> wrote: On Mar 29, 2007, at 04:14, Himanshu Raina wrote:

>> si  wrote:
>>
>> > I have moved my existing svn server to another server.
>> > 192.168.2.11/testing -- is the old server that has testing  
>> repository.Since
>> > i am setting up a new server and want all the data in testing  
>> repos to be
>> > available in new server is there a way i can import/dump the  
>> data without
>> > any revision history so that in the new server the revision  
>> should start
>> > from scratch.
>>
>> 1. Export all of your old repository into a temporary directory.
>> svn export
>>
>> 2. Create a new repository on your new server.
>>
>> 3. Import this temporary directory into your new repository.
>> svn import
>>
>> 4. Checkout new working copy from your new repository.
>
> Thanks for the help..This is what i was exactly looking for (Forgot  
> that with svn export it is possible )

Note that svn export will not preserve any properties you may have  
set up in the old repository. eol-styles, keywords, mime-types,  
externals, all gone. Not so with svnadmin dump -rHEAD as I suggested,  
which preserves all of that.


-- 

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



 
---------------------------------
Don't be flakey. Get Yahoo! Mail for Mobile and 
always stay connected to friends.

Re: Moving SVN to another server !!

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Mar 29, 2007, at 04:14, Himanshu Raina wrote:

>> si <ss...@gmail.com> wrote:
>>
>> > I have moved my existing svn server to another server.
>> > 192.168.2.11/testing -- is the old server that has testing  
>> repository.Since
>> > i am setting up a new server and want all the data in testing  
>> repos to be
>> > available in new server is there a way i can import/dump the  
>> data without
>> > any revision history so that in the new server the revision  
>> should start
>> > from scratch.
>>
>> 1. Export all of your old repository into a temporary directory.
>> svn export
>>
>> 2. Create a new repository on your new server.
>>
>> 3. Import this temporary directory into your new repository.
>> svn import
>>
>> 4. Checkout new working copy from your new repository.
>
> Thanks for the help..This is what i was exactly looking for (Forgot  
> that with svn export it is possible )

Note that svn export will not preserve any properties you may have  
set up in the old repository. eol-styles, keywords, mime-types,  
externals, all gone. Not so with svnadmin dump -rHEAD as I suggested,  
which preserves all of that.


-- 

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: Moving SVN to another server !!

Posted by Himanshu Raina <ra...@yahoo.com>.
Hi Si,

Thanks for the help..This is what i was exactly looking for (Forgot that with svn export it is possible )

thanks and regards
Himanshu Raina

si <ss...@gmail.com> wrote: Hi Himanshu,

> I have moved my existing svn server to another server.
> 192.168.2.11/testing -- is the old server that has testing repository.Since
> i am setting up a new server and want all the data in testing repos to be
> available in new server is there a way i can import/dump the data without
> any revision history so that in the new server the revision should start
> from scratch.

1. Export all of your old repository into a temporary directory.
svn export  

2. Create a new repository on your new server.

3. Import this temporary directory into your new repository.
svn import  

4. Checkout new working copy from your new repository.

peace
si



 
---------------------------------
Don't be flakey. Get Yahoo! Mail for Mobile and 
always stay connected to friends.

Re: Moving SVN to another server !!

Posted by si <ss...@gmail.com>.
Hi Himanshu,

> I have moved my existing svn server to another server.
> 192.168.2.11/testing -- is the old server that has testing repository.Since
> i am setting up a new server and want all the data in testing repos to be
> available in new server is there a way i can import/dump the data without
> any revision history so that in the new server the revision should start
> from scratch.

1. Export all of your old repository into a temporary directory.
svn export <old_repos_url> <temp_path>

2. Create a new repository on your new server.

3. Import this temporary directory into your new repository.
svn import <temp_path> <new_repos_url>

4. Checkout new working copy from your new repository.

peace
si

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

Re: Moving SVN to another server !!

Posted by si <ss...@gmail.com>.
> > ...is there a way i can
> > import/dump the data without any revision history so that in the
> > new server the revision should start from scratch.
>
> I think that's:
>
> svnadmin create /path/to/newrepo
> svnadmin dump -rHEAD /path/to/oldrepo | svnadmin load /path/to/newrepo

Yup, that's a better way!

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

Re: Moving SVN to another server !!

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Mar 29, 2007, at 01:22, Himanshu Raina wrote:

> I have moved my existing svn server to another server.
> 192.168.2.11/testing -- is the old server that has testing  
> repository.Since i am setting up a new server and want all the data  
> in testing repos to be available in new server is there a way i can  
> import/dump the data without any revision history so that in the  
> new server the revision should start from scratch.

I think that's:

svnadmin create /path/to/newrepo
svnadmin dump -rHEAD /path/to/oldrepo | svnadmin load /path/to/newrepo


-- 

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