LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-25-2011, 12:09 PM   #1
blainemiller
Member
 
Registered: Dec 2003
Posts: 78

Rep: Reputation: 1
Step by step method of copying a svn repository from linux server to Windows server


Hello,

I know little if anything about svn, so need your assistance. I have a linux server running svn. I have a Windows server running svn. First, I'm looking for a way to copy an svn repository from the linux server to a new Windows server repository. I've looked for how to do this on the Internet and within the Apache.org website(which is now the maintainer of SVN).

I haven't found anything on a very granuler way to copy a repository from one O/S to another other than folks say it can be done. Not how.

Second, is there a way to automatically do this on a regular basis? I see the manual process of svnadmin dump and svnload. Also there is a manual process of svnadmin hotcopy.

I'd appreciate any input on how these two things may work. Anyone have any experience on how to do these two things?

Thanks very much for your time and consideration.

Blaine
 
Old 04-25-2011, 12:17 PM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Have a look at these two sites, you'll get moving your data pretty fast.

Migrating repository data elsewhere
Step by step: moving a subversion repository to another server

About automating, you have the disadvantage of working with two operating systems, so I would think you'd need to script something in a language that's supported on both OS, like Python for example, for the automation process.

Kind regards,

Eric
 
Old 04-25-2011, 01:23 PM   #3
blainemiller
Member
 
Registered: Dec 2003
Posts: 78

Original Poster
Rep: Reputation: 1
Thanks, EricTRA!

I'll look into the two sites you suggest. As far as scripting between the two O/S's, would you think this would be a onetime process for the first transfer then incremental transfers after that? Sorry, I'm not a coder and will have to get with the developers on both ends of the O/S stream.

Thanks again for your time and consideration...

Blaine
 
Old 04-25-2011, 01:27 PM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

You're welcome. Are you going to maintain both repositories, one being a copy of the other? May I ask why? Because I don't see a direct use for that.

Kind regards,

Eric
 
Old 04-25-2011, 03:25 PM   #5
blainemiller
Member
 
Registered: Dec 2003
Posts: 78

Original Poster
Rep: Reputation: 1
Thanks for asking, Eric...

In a nutshell, we're in a tight spot for our code repository. I'm trying to come up with the safest and most cost effective means of having the repository backed up and immediately available should the primary server go down.

The primary is an old linux box and the corporate server(in another geographical location) is a new Windows server running the Windows version of svn.

Not exactly my choice, but I have to play the cards I'm given.

Perhaps you know of a better way?

Blaine
 
Old 04-26-2011, 12:30 AM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

If it's just for backup purposes, then why don't you make a svndump on a regular basis with a script running through crontab and copy that dump over to the Windows server? In case the Linux box goes down, you'll be able to import the dump instantly on the Windows server and all your users have to do is sync with the Windows version of Subversion. Just an idea. The fact of having two copies of the same code available is asking for trouble since you can never trust all your users to play by the rules. Having two copies will surely get you in trouble after some time, having different versions of the same code on the two repositories. You'll loose a lot more time when you need to solve that kind of problems then when you have to import a dump file in my opinion.

Kind regards,

Eric
 
Old 05-18-2011, 03:15 PM   #7
blainemiller
Member
 
Registered: Dec 2003
Posts: 78

Original Poster
Rep: Reputation: 1
Ah! That makes sense... I tried a modification of what you suggested using a crontab entry in a cygwin terminal on the windows server and it seems to work like a charm.

Thanks for teh help and validation!

Blaine
 
  


Reply

Tags
svn


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Step by Step Method for Installing Ubuntu 10.10 on a Windows 7 System (Dual booting) allu john sudhakar Linux - Newbie 2 11-21-2010 12:07 PM
LXer: Step By Step Ubuntu 10.04 (Lucid Lynx) LAMP Server Setup LXer Syndicated Linux News 0 08-30-2010 10:40 AM
linux print server setup step by step salimshahzad Linux - Newbie 6 02-16-2010 04:51 PM
Step-by-step to set up a RedHat Linux box for use as a Windows Server? Hercules Linux - Software 2 11-16-2003 11:16 PM
step by step .. Install Linux server ???? Help me tibacom Linux - Newbie 6 09-08-2003 03:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration