Revision Control and Backups

Programming, for all ages and all languages.
Post Reply
User avatar
esa
Posts: 19
Joined: Tue May 20, 2008 1:25 pm
Location: Finland

Revision Control and Backups

Post by esa »

I just wanted to ask if you guys use any revision control system and/or if you have some backup system for your source code when developing. I found a couple of years old thread about this on the OS Development forum. Back then people seemed to be using CVS, Subversion and Darcs. What I'm wondering about is if the situation has changed and if using version control is now more widespread.

At my school (I study software engineering...) no teacher teaches anything about revision control. So the situation is indeed very depressing.

IMHO even if you work by yourself you can still use a RCS (Revision Control System). Indeed you probably should... if you use it properly you'll always have the history of your files available and can revert to a previous version if things go wrong. You can also develop different features in their own branches and merge them together gradually when they are mature enough. Not to mention that you can more easily work with other people if you happen to get someone join in your project.

I myself use Mercurial... it has installation packages for both Windows and Linux, its pretty easy to learn to use (at least the basics) and the CGI scripts (work fine with Apache) which come with it and the "hg serve" command help me put the repositories online fast (I like to browse the repositories through a web interface). I have a separate machine which holds the "central" repositories and that machine backs them up (using a combination of cron and a custom bash script) on an external disk.

And those who have never used a RCS (Revision Control System)... have you ever considered using one?

PS. Sorry, this seems to have turned into a sermon...
If debugging is the process of removing bugs, then programming must be the process of putting them in.
- Edsger W. Dijkstra
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Post by AJ »

Hi,

I use SVN (to be specific, TortoiseSVN). It integrates very smoothly in to the Windows interface and Eclipse IDE / #Develop which I use regularly and has save a lot of work on many occasions. Unless there was an extremely good reason, I wouldn't switch to any other system.

Cheers,
Adam
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Post by Solar »

I use SVN (Subversion) for my sources - and RCS for my OS configuration files (/etc et al).
Every good solution is obvious once you've found it.
User avatar
01000101
Member
Member
Posts: 1599
Joined: Fri Jun 22, 2007 12:47 pm
Contact:

Post by 01000101 »

I have a little batch file that runs every night that backs up my OS Dev files to 2 seperate storage devices. I've never used SVN and I don't think I need to, ive never had a real problem with losing both my orig file and then my backups in one night.
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Post by piranha »

Google code is hosting my project, so there is the SVN bit.

Also, I backup all my important stuff on a separate partition every other day, and once a month create a backup CD.

-JL
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

I use SVN off my own server. I don't do backups really as all my really important stuff is versioned and consequently present on at least two different computers (some stuff is present on four of them)
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
kmcguire
Member
Member
Posts: 120
Joined: Tue Nov 09, 2004 12:00 am
Location: United States
Contact:

Post by kmcguire »

I use GIT and I archive and email backups with mail client configured not to delete messages from server until I delete them in client.
User avatar
JackScott
Member
Member
Posts: 1031
Joined: Thu Dec 21, 2006 3:03 am
Location: Hobart, Australia
Contact:

Post by JackScott »

I use Vista's automatic backup to backup my files to an external drive every night. Every week (on sunday at 9pm sharp) it burns a DVD of my most important files. Nothing else is necessary at the moment, since I almost always work alone.
robos
Member
Member
Posts: 33
Joined: Sun Apr 06, 2008 7:04 pm
Location: Southern California

Post by robos »

Perforce. It's free for up to 2 users and is cross platform (Win, OS X and various *nix flavors) including the GUI tools.
- Rob
Post Reply