|
Recent
Articles |
Lenovo Finally Releases SuSE Installed Thinkpads After a bit of a delay, Lenovo has finally released it's Thinkpads with Linux pre-installed. The company first mentioned it's plans to do just that all the way back in August, calling for a fourth-quarter 2007 release.
Linux Expands Even Further Into The Enterprise Linux adoption extends deeper into the corporate enterprise as companies start picking up on the latest versions of Linux for ordinary users. Linux desktop has seen a lot of adoption in smaller companies...
Microsoft And Turbolinux Try To Simplify IT It appears that Microsoft and Turbolinux are getting closer than ever as the two parties announced a partnership yesterday to smooth out the "ease of use" between Windows and Turbolinux machines...
Looking Back At RedHat 6.2 Today I meandered down state to answer a distress call on a Linux box exhibiting a number of baffling symptoms (well, they baffled me on the phone at least).
Does The FSF Have Teeth Vs. Microsoft? Reading Matt's blog today, I found this press release (via Groklaw) from the FSF. The title says it all: "Microsoft cannot declare itself exempt from the requirements of GPLv3? We discussed this a little bit on a previous post.
Responses To "Why Microsoft Should Buy Red Hat" Earlier this week I wrote a "what if" post suggesting that Microsoft buy Red Hat. The comments here and on Open Sources at InfoWorld were lively to say the least.
Should Microsoft Buy Red Hat? Some background: 1. Matt asked "Why doesn't Oracle just buy Red Hat?" 2. I explained why Oracle would not buy Red Hat 3. Luis Villa replied to Matt's question...
|
|
|
02.13.08
Moving a Subversion Repository from Windows to a Linux Server
By
Pete Freitag
I recently had to move a subversion (svn) repository to another server. The repository was on a Windows server and had to be moved to a Linux server.
Step 1: Backup your old Repository
The first thing you need when moving from one server to another is a dump of your subversion repository. Hopefully you are already creating dump's with a backup script, but if not here's how you can create a subversion dump file:
svnadmin dump /path/to/repository > repo_name.svn_dump
The dump file contains all the revisions you have ever made to your svn repository, so it will probably be quite large (it even includes files you may have deleted in a previous revision).
Step 2: Create the new Repository
Now, simply transfer the dump file on to your new subversion server, and create an empty repository:
svnadmin create /path/to/repository
Step 3: Import your old repository into the new one
Next import your dump file:
svnadmin load /path/to/repository < repo_name.svn_dump
You may want to force subversion to use the same UUID for the new repository as the old repository. To do this add --force-uuid to your svnadmin load command. In my case I wanted to do this. If you have already loaded your repository, there is a way to set the UUID at a later date, check the docs.
That's it, you now have a replica of your old repository on your new server.
FAQ's
What if someone committed a new revision to the old server during installation?
You can easily import the new revision, by creating an incremental dump on the old server:
svnadmin dump --incremental -r 1234 /path/to/repository > rev1234.svn_dump
Now to import that revision on your new server:
svnadmin load /path/to/repository < rev1234.svn_dump
Can't I just use a hotcopy to restore the repository?
It depends, hotcopies created with svnadmin hotcopy must be moved to a server with identical setup. You should have the same version of subversion installed on both servers, same operating system, etc.
Subversion dumps are designed to work with different versions of subversion, and are just more flexible. Hotcopies are handy to have, but I recommend creating both hotcopies and dumps as part of your backup plan.
(Originally published at Pete Freitag's Homepage)
About the Author:
Pete Freitag (http://www.petefreitag.com/) is a software engineer, and web developer located in central new york. Pete specializes in the HTTP protocol, web services, xml, java, and coldfusion. In 2003 Pete published the ColdFusion MX Developers Cookbook with SAMs Publishing.
Pete owns a Firm called Foundeo (http://foundeo.com/) that specializes in Web Consulting, and Products for Web Developers.
|