<p>How do you back up your development machine so that in the event of a catastrophic hardware malfunction, you are up and running in the least amount of time possible?</p>

[{'answer_id': 26803, 'author': 'Mark Biek', 'author_id': 305, 'author_profile': 'https://Stackoverflow.com/users/305', 'pm_score': 4, 'selected': False, 'text': "<ol>\n<li>All important files are in version control (Subversion)\n\n<ul>\n<li>My subversion layout generally matches the file layout on my web server so I can just do a checkout and all of my library files and things are in the correct places.</li>\n</ul></li>\n<li>Twice-daily backups to an external hard drive</li>\n<li>Nightly rsync backups to a remote server.  \n\n<ul>\n<li>This means that I send stuff on my home server over to my webhost and all files &amp; databases on my webhost back home so I'm not screwed if I lose either my house or my webhost.</li>\n</ul></li>\n</ol>\n"}, {'answer_id': 26808, 'author': 'Vaibhav', 'author_id': 380, 'author_profile': 'https://Stackoverflow.com/users/380', 'pm_score': 1, 'selected': False, 'text': '<p>A little preparation helps:</p>\n\n<ul>\n<li>All my code is kept organized in one single directory (with categorized sub-directories).</li>\n<li>All email is kept in various PSTs.</li>\n<li>All code is also checked into source control at the end of every day.</li>\n<li>All documents are kept in one place as well.</li>\n</ul>\n\n<p>Backup:</p>\n\n<ul>\n<li>Backup your code, email, documents as often as it suits you (daily).</li>\n<li>Keep an image of your development environment always ready.</li>\n</ul>\n\n<p>Failure and Recovery</p>\n\n<ul>\n<li>If everything fails, format and install the image.</li>\n<li>Copy back everything from backup and you are up and running.</li>\n</ul>\n\n<p>Of course there are tweaks here and there (incremental backup, archiving, etc.) which you have to do to make this process real.</p>\n'}, {'answer_id': 26810, 'author': 'Adam Haile', 'author_id': 194, 'author_profile': 'https://Stackoverflow.com/users/194', 'pm_score': 1, 'selected': False, 'text': "<p>If you are talking absolute least amount of restore time... I've often setup machines to do Ghost (Symantec or something similar) backups on a nightly basis to either an image or just a direct copy to another drive.  That way all you have to do is reimage the machine from the image or just swap the drives.  You can be back up in under 10 minutes...  The setup I did before was in situation where we had some production servers that were redundant and it was acceptable for them to be offline long enough to clone the drive...but only at night.  During the day they had to be up 100%...it saved my butt a couple times when a main drive failed... I just opened the case, swapped the cables so the backup drive was the new master and was back online in 5 minutes.</p>\n"}, {'answer_id': 26818, 'author': 'John', 'author_id': 2168, 'author_profile': 'https://Stackoverflow.com/users/2168', 'pm_score': 2, 'selected': False, 'text': '<p>I use <a href="http://www.apple.com/macosx/features/timemachine.html" rel="nofollow noreferrer">TimeMachine</a>.</p>\n'}, {'answer_id': 26819, 'author': 'Dave Ward', 'author_id': 60, 'author_profile': 'https://Stackoverflow.com/users/60', 'pm_score': 3, 'selected': False, 'text': '<p>I use <a href="http://mozy.com/" rel="noreferrer">Mozy</a>, and rarely think about it.  That\'s one weight off my shoulders that I won\'t ever miss.</p>\n'}, {'answer_id': 26823, 'author': 'Don', 'author_id': 1989, 'author_profile': 'https://Stackoverflow.com/users/1989', 'pm_score': 0, 'selected': False, 'text': '<p>Maybe just a simple hardware hard disk raid would be a good start.  This way if one drive fails, you still have the other drive in the raid.  If something other than the drives fail you can pop these drives into another system and get your files quickly.</p>\n'}, {'answer_id': 26833, 'author': 'Johnno Nolan', 'author_id': 1116, 'author_profile': 'https://Stackoverflow.com/users/1116', 'pm_score': 0, 'selected': False, 'text': "<p>I'm just sorting this out at work for the team. An image with all common tools is on Network. (We actually have a hotswap machine ready). All work in progress is on network too.</p>\n\n<p>So Developers machine goes boom. Use hotswap machine and continue. Downtime ~15 mins + coffee break.</p>\n"}, {'answer_id': 26858, 'author': 'Andrew Grant', 'author_id': 1043, 'author_profile': 'https://Stackoverflow.com/users/1043', 'pm_score': 7, 'selected': True, 'text': '<p>There\'s an important distinction between backing up your development machine and backing up your work.</p>\n\n<p>For a development machine your best bet is an imaging solution that offers as near a "one-click-restore" process as possible. TimeMachine (Mac) and Windows Home Server (Windows) are both excellent for this purpose. Not only can you have your entire machine restored in 1-2 hours (depending on HDD size), but both run automatically and store deltas so you can have months of backups in relatively little space. There are also numerous "ghosting" packages, though they usually do not offer incremental/delta backups so take more time/space to backup your machine.</p>\n\n<p>Less good are products such as Carbonite/Mozy/JungleDisk/RSync. These products WILL allow you to retrieve your data, but you will still have to reinstall the OS and programs. Some have limited/no histories either.</p>\n\n<p>In terms of backing up your code and data then I would recommend a sourcecode control product like SVN. While a general backup solution will protect your data, it does not offer the labeling/branching/history functionality that SCC packages do. These functions are invaluable for any type of project with a shelf-life.</p>\n\n<p>You can easily run a SVN server on your local machine. If your machine is backed up then your SVN database will be also. This IMO is the best solution for a home developer and is how I keep things.</p>\n'}, {'answer_id': 26870, 'author': 'Pascal Paradis', 'author_id': 1291, 'author_profile': 'https://Stackoverflow.com/users/1291', 'pm_score': 2, 'selected': False, 'text': '<p>For my home and development machines I use <a href="http://www.acronis.com/homecomputing/products/trueimage/" rel="nofollow noreferrer">Acronis True Image</a>.</p>\n\n<p>In my opinion, with the HD cheap prices nothing replaces a full incremental daily HD backup.</p>\n'}, {'answer_id': 26888, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': "<p>We have a corporate solution pushed down on us called Altiris, which works when it wants to. It depends on whether or not it's raining outside. I think Altiris might be a rain-god, and just doesn't know it. I am actually delighted when it's not working, because it means that I can have my 99% of CPU usage back, thank you very much.</p>\n\n<p>Other than that, we don't have any rights to install other software solutions for backing things up or places we are permitted to do so. We are not permitted to move data off of our machines.</p>\n\n<p>So, I end up just crossing my fingers while laughing at the madness.</p>\n"}, {'answer_id': 26926, 'author': 'mkrus', 'author_id': 2711, 'author_profile': 'https://Stackoverflow.com/users/2711', 'pm_score': 0, 'selected': False, 'text': "<p>I don't.</p>\n\n<p>We do continuous integration, submit code often to the central source control system (which is backed up like crazy!). </p>\n\n<p>If my machine dies at most I've lost a couple of days work. </p>\n\n<p>And all I need to do is get a clean disk at setup the dev environment from a ghost image or by spending a day sticking CDs in, rebooting after Windows update, etc. Not a pleasant day but I do get a nice clean machine.</p>\n"}, {'answer_id': 27067, 'author': 'Tim Williscroft', 'author_id': 2789, 'author_profile': 'https://Stackoverflow.com/users/2789', 'pm_score': 2, 'selected': False, 'text': '<p>Virtual machines and CVS.</p>\n\n<p>Desktops are rolled out with ghost and are completely vanilla. \nExcept they have VirtualBox.</p>\n\n<p>Then developers pull the configured baseline development environment\ndown from CVS.</p>\n\n<p>They log into the development VM image as themselves, refresh the source and libraries  from CVS and they\'re up and working agian.</p>\n\n<p>This also makes doing develpment and maintenance at the same time a <strong>lot</strong> easier.</p>\n\n<p>(I know some people won\'t like CVS or VirtualBox, so feel free to substiture your tools of choice)</p>\n\n<p>oh, and You check you work into a private branch off Trunk daily.</p>\n\n<p>There you go.  </p>\n\n<p>Total time to recover : 1 hour (tops)</p>\n\n<p>Time to "adopt" a shbiy new laptop for a customer visit : 1 hour ( tops)</p>\n\n<p>And a step towards CMMI Configuration Management.</p>\n'}, {'answer_id': 27144, 'author': 'krujos', 'author_id': 511, 'author_profile': 'https://Stackoverflow.com/users/511', 'pm_score': 0, 'selected': False, 'text': '<p>At work NetBackup or PureDisk depending on the box, at home rsync. </p>\n'}, {'answer_id': 27167, 'author': 'jonezy', 'author_id': 2272, 'author_profile': 'https://Stackoverflow.com/users/2272', 'pm_score': 0, 'selected': False, 'text': '<p>like a few others, I have a clean copy of my virtual pc that I can grab and start fresh at anytime and all code is stored in subversion.</p>\n'}, {'answer_id': 32742, 'author': 'Martin Marconcini', 'author_id': 2684, 'author_profile': 'https://Stackoverflow.com/users/2684', 'pm_score': 0, 'selected': False, 'text': "<p>I use SuperDuper! and backup my Virtual Machine to another external drive (i have two). \nAll the code is on a SVN server. \nI have a clean VM in case mine fails. But in either case it takes me a couple of hours to install WinXP+Vstudio. i don't use anything else in that box. </p>\n"}, {'answer_id': 32783, 'author': 'Peter C', 'author_id': 1952, 'author_profile': 'https://Stackoverflow.com/users/1952', 'pm_score': 0, 'selected': False, 'text': "<p>I use xcopy to copy all my personal files to an external hard drive on startup.</p>\n\n<p>Here's my startup.bat:</p>\n\n<p>xcopy d:\\files f:\\backup\\files /D /E /Y /EXCLUDE:BackupExclude.txt</p>\n\n<p>This recurses directories, only copies files that have been modified and suppresses the message to replace an existing file, the list of files/folders in BackupExclude.txt will not be copied.</p>\n"}, {'answer_id': 36342, 'author': 'lo_fye', 'author_id': 3407, 'author_profile': 'https://Stackoverflow.com/users/3407', 'pm_score': 1, 'selected': False, 'text': '<p>I\'ve finally gotten my "fully automated data back-up strategy" down to a fine art. I never have to manually intervene, and I\'ll never lose another harddrive worth of data. If my computer dies, I\'ll always have a full bootable back-up that is no more than 24 hours old, and incremental back-ups no more than an hour old. Here are the details of how I do it.</p>\n\n<p>My only computer is a 160 gig MacBook running OSX Leopard.\nOn my desk at work I have 2 external 500 gig harddrives.\nOne of them is a single 500 gig partition called "External".\nThe other has a 160 gig partition called "Clone" and a 340 gig partition called TimeMachine.</p>\n\n<p>TimeMachine runs whenever I\'m at work, constantly backing up my "in progress" files (which are also committed to Version Control throughout the day).</p>\n\n<p>Every weekday at 12:05, SuperDuper! automatically copies my entire laptop harddrive to the "Clone" drive. If my laptop\'s harddrive dies, I can actually boot directly from the Clone drive and pick up work without missing a beat -- giving me some time to replace the drive (This HAS happened to me TWICE since setting this up!). (Technical Note: It actually only copies over whatever has changed since the previous weekday at 12:05... not the entire drive every time. Works like a charm.)</p>\n\n<p>At home I have a D-Link DNS-323, which is a 1TB (2x500 gig) Network Attached Storage device running a Mirrored RAID, so that everything on the first 500 gig drive is automatically copied to the second 500 gig drive. This way, you always have a backup, and it\'s fully automated. This little puppy has a built-in Dynamic DNS client, and FTP server. </p>\n\n<p>So, on my WRT54G router, I forward the FTP port (21) to my DNS-323, and leave its FTP server up.</p>\n\n<p>After the SuperDuper clone has been made, rSync runs and synchronizes my "External" drive with the DNS-323 at home, via FTP.</p>\n\n<p>That\'s it.\nUsing 4 drives (2 external, 2 in the NAS) I have:\n1) An always-bootable complete backup less than 24 hours old, Monday-Friday\n2) A working-backup of all my in-progress files, which is never more than 30 minutes old, Monday-Friday (when I\'m at work and connected to the external drives)\n3) Access to all my MP3s (170GB) at documents at work on the "External" and at home on the NAS\n4) Two complete backups of all my MP3s and documents on the NAS (External is original copy, both drives on NAS are mirrors via ChronoSync)</p>\n\n<p>Why do I do all of this?\nBecause:\n1) In 2000, I dropped a 40 gig harddrive 1 inch, and it cost me $2500 to get that data back.\n2) In the past year, I\'ve had to take my MacBook in for repair 4 times. One dead harddrive, two dead motherboards, and a dead webcam. On the 4th time, they replaced my MacBook with a newer better one at no charge, and I haven\'t had a problem since. </p>\n\n<p>Thanks to my daily backups, I didn\'t lose any work, or productivity. If I hadn\'t had them, though, all my work would have been gone, along with my MP3s, and my writing, and all the photos of my trips to Peru, Croatia, England, France, Greece, Netherlands, Italy, and all my family photos. Can you imagine? I\'m sure you can, because I bet you have a pile of digital photos sitting on your computer right now... not backed-up in any way.</p>\n'}, {'answer_id': 64491, 'author': 'cek', 'author_id': 8381, 'author_profile': 'https://Stackoverflow.com/users/8381', 'pm_score': 0, 'selected': False, 'text': '<p>Windows Home Server.  My dev box has two drives with about 750GB of data between them (C: is a 300GB SAS 15K RPM drive with apps and system on it, D: is a mirrored 1TB set with all my enlistments).  I use Windows Home Server to back this machine up and have successfully restored it several times after horking it.</p>\n'}, {'answer_id': 64652, 'author': 'quick_dry', 'author_id': 3716, 'author_profile': 'https://Stackoverflow.com/users/3716', 'pm_score': 0, 'selected': False, 'text': "<p>My development machine is backed up using Retrospect and Acronis. These are nightly backups that run when I'm asleep - one to an external drive and one to a network drive.</p>\n\n<p>All my source code is in SVN repositories, I keep all my repositories under a single directory so I have a scheduled task running a script that spiders a path for all SVN repositories and performs a number of hotcopies (using the hotcopy.py script) as well as an svndump of each repository.</p>\n\n<p>My work machine gets backed up however they handle it, however I also have the same script running to do hotcopies and svndumps onto a couple of locations that get backed up.</p>\n\n<p>I make sure that of the work backups, one location is NOT on the SAN, yes it gets backed up and managed, but when it is down, it is down.</p>\n"}, {'answer_id': 64735, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 1, 'selected': False, 'text': '<p>A combination of RAID1, Acronis, xcopy, DVDs and ftp. See:\n<a href="http://successfulsoftware.net/2008/02/04/your-harddrive-will-fail-its-just-a-question-of-when/" rel="nofollow noreferrer">http://successfulsoftware.net/2008/02/04/your-harddrive-will-fail-its-just-a-question-of-when/</a></p>\n'}, {'answer_id': 644909, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': "<p>I would like a recommendation for an external RAID container, or perhaps just an external drive container, preferably interfacing using FireWire 800.</p>\n\n<p>I also would like a recommendation for a manufacturer for the backup drives to go into the container.  I read so many reviews of drives saying that they failed I'm not sure what to think.</p>\n\n<p>I don't like backup services like Mozy because I don't want to trust them to not look at my data.</p>\n"}, {'answer_id': 644923, 'author': 'jimiyash', 'author_id': 458496, 'author_profile': 'https://Stackoverflow.com/users/458496', 'pm_score': 0, 'selected': False, 'text': '<ul>\n<li>SuperDuper complete bootable backups every few weeks</li>\n<li>Time Machine backups for my most important directories daily</li>\n<li>Code is stored in network subversion/git servers</li>\n<li>Mysql backups with cron on the web servers, use ssh/rsync to pull it down onto our local servers also using cron nightly.</li>\n</ul>\n'}, {'answer_id': 645006, 'author': 'gareth_bowles', 'author_id': 10715, 'author_profile': 'https://Stackoverflow.com/users/10715', 'pm_score': 0, 'selected': False, 'text': '<p>If you use a Mac, it\'s a no brainer - just plug in an external hard drive and the built in Time Machine software will back up your whole system, then maintain an incremental backup on the schedule you define.  This has got me out of a hole many a time when I\'ve messed up my environment; it also made it super easy to restore my system after installing a bigger hard drive. </p>\n\n<p>For offsite backups, I like <a href="http://www.jungledisk.com" rel="nofollow noreferrer">JungleDisk</a> - it works on Mac, Windows and Linux and backs up to Amazon S3 (or, added very recently, the Rackspace cloud service).  This is a nice solution if you have multiple machines (or even VMs) and want to keep certain directories backed up without having to think about it.</p>\n'}, {'answer_id': 645098, 'author': 'Andrew Harry', 'author_id': 30576, 'author_profile': 'https://Stackoverflow.com/users/30576', 'pm_score': 0, 'selected': False, 'text': "<p><strong>Home Server Warning!</strong></p>\n\n<p>I installed Home Server on my development Server for two reasons: Cheap version of Windows Server 2003 and for backup reasons.</p>\n\n<p>The backup software side of things is seriously hit or miss.  If you 'Add' a machine to the list of computers to be backed up right at the start of installing Home Server, generally everything is great.</p>\n\n<p>BUT it seems it becomes a WHOLE lot harder to add any other machines after a certain amount of time has passed.</p>\n\n<p>(Case in point: I did a complete rebuild on my laptop, tried to Add it - NOPE!)</p>\n\n<p>So i'm seriously doubting the reliability of this platform for backup purposes.  Seems to be defeating the purpose if you can't trust it 100%</p>\n"}, {'answer_id': 645497, 'author': 'cherouvim', 'author_id': 72478, 'author_profile': 'https://Stackoverflow.com/users/72478', 'pm_score': 2, 'selected': False, 'text': "<p>BTW your development machine should not contain anything of value. All your work (and your company's work) should be in central repositories (SVN).</p>\n"}, {'answer_id': 22725212, 'author': 'Alec Istomin', 'author_id': 3413528, 'author_profile': 'https://Stackoverflow.com/users/3413528', 'pm_score': 0, 'selected': False, 'text': '<p>I have the following backup scenarios and use rsync as a primary backup tool.</p>\n\n<ol>\n<li><p>(<strong>weekly</strong>) Windows backup for "bare metal" recovery\n<br>Content of System drive C:\\ using Windows Backup for quick recovery after physical disk failure, as I don\'t want to reinstall Windows and applications from scratch. This is configured to run automatically using Windows Backup schedule.</p></li>\n<li><p>(<strong>daily</strong> and <strong>conditional</strong>) Active content backup using rsync\n<br>Rsync takes care of all changed files from laptop, phone, other devices. I backup laptop every night and after significant changes in content, like import of the recent photo RAWs from SD card to laptop.</p></li>\n</ol>\n\n<p>I\'ve created a bash script that I run from Cygwin on Windows to start rsync: <a href="https://github.com/paravz/windows-rsync-backup" rel="nofollow">https://github.com/paravz/windows-rsync-backup</a></p>\n'}]
['https://Stackoverflow.com/questions/26799', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1574/']