<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pushing Pixels &#187; backup</title>
	<atom:link href="http://familywhitfield.co.uk/wordpress/tag/backup/feed/" rel="self" type="application/rss+xml" />
	<link>http://familywhitfield.co.uk/wordpress</link>
	<description>Computing and Digital Imaging</description>
	<lastBuildDate>Thu, 24 Mar 2011 20:54:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Backing up using Carbonite</title>
		<link>http://familywhitfield.co.uk/wordpress/2010/12/31/backing-up-using-carbonite/</link>
		<comments>http://familywhitfield.co.uk/wordpress/2010/12/31/backing-up-using-carbonite/#comments</comments>
		<pubDate>Fri, 31 Dec 2010 01:06:48 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[PC]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://familywhitfield.co.uk/wordpress/2010/12/31/backing-up-using-carbonite/</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style" addthis:url='http://familywhitfield.co.uk/wordpress/2010/12/31/backing-up-using-carbonite/' addthis:title='Backing up using Carbonite' ><a class="addthis_button_twitter"></a><a class="addthis_button_facebook"></a><a class="addthis_button_email"></a><a class="addthis_button_google_plusone"></a><a class="addthis_button_digg"></a><a class="addthis_button_compact"></a></div>At home I have a fairly good backup scheme for ensuring my main PC and the wife’s laptop have their critical data stored on at least a couple of other disks. In addition to using cross-copying each other’s content, I have a second hard disk in the main PC just for backups and an external [...]]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style" addthis:url='http://familywhitfield.co.uk/wordpress/2010/12/31/backing-up-using-carbonite/' addthis:title='Backing up using Carbonite' ><a class="addthis_button_twitter"></a><a class="addthis_button_facebook"></a><a class="addthis_button_email"></a><a class="addthis_button_google_plusone"></a><a class="addthis_button_digg"></a><a class="addthis_button_compact"></a></div><div class="posterous_autopost">
<p><span style="font-family: Arial; font-size: x-small;"><span style="font-size: 10.0pt; font-family: Arial;"><a href="http://posterous.com/getfile/files.posterous.com/gregwhitfield/WzFa44TP6epW8CHkTVPP0Auunc0xUYtL50qts306obWPICPsbKFZaNZK6epj/image002.jpg"><img src="http://posterous.com/getfile/files.posterous.com/gregwhitfield/qhdQmTFGXS9icsXvF4K7qocEEPVTpheKJ1ZMGDbpzdQA5LaOZL1ulgJiRAbR/image002.jpg.scaled.500.jpg" alt="" width="500" height="222" /></a> </span></span></p>
<p><span style="font-family: Arial; font-size: x-small;"><span style="font-size: 10.0pt; font-family: Arial;"> </span></span></p>
<p><span style="font-family: Arial; font-size: x-small;"><span style="font-size: 10.0pt; font-family: Arial;">At home I have a fairly good backup scheme for ensuring my main PC and the wife’s laptop have their critical data stored on at least a couple of other disks. In addition to using cross-copying each other’s content, I have a second hard disk in the main PC just for backups and an external USB disk for backing this up to. I also have a few hundred megabytes of useful everyday stuff synced across machines and into ‘the cloud’ using the excellent <a href="http://www.dropbox.com/">Dropbox</a> utility. So I’m pretty well covered against hard disk failure, and my critical files on Dropbox are insurance against houshold disaster.</span></span></p>
<p><span style="font-family: Arial; font-size: x-small;"><span style="font-size: 10.0pt; font-family: Arial;">Yet I’ve always had this nagging feeling at the back of my mind about the 80+Gb (and growing) of other data such as photos, videos, and general stuff that falls under the category of don’t-look-at-much-but-don’t-want-to-lose. While the hard disk duplication may cover me against hardware failure, and in fact did so a couple of years ago, I retain a nervousness over fire, theft, flood, or enormous wine spillage in my IT area.</span></span></p>
<p><span style="font-family: Arial; font-size: x-small;"><span style="font-size: 10.0pt; font-family: Arial;"><span id="more-368"></span><br />
</span></span></p>
<p><span style="font-family: Arial; font-size: x-small;"><span style="font-size: 10.0pt; font-family: Arial;">So I decided over the Christmas break to try out an offsite ‘cloud’ archiving system call Carbonite, that for a mere £40/year will store copies of all the data I want, and automatically update changes. This takes away the weekly naus of doing backups myself. You simply install a little monitor program, and – much like Dropbox – whenever changes to your files happen, they are pushed up out onto some big hairy servers humming away in a couple of duplicated multiple-redundancy data centers somewhere in the world. I chose Carbonite as it had a good reputation, and gets a lot of mentions on the <a href="http://www.twit.tv/">TWiT network</a>, many of whose podcasts are sponsored by the company.</span></span></p>
<p><span style="font-family: Arial; font-size: x-small;"><span style="font-size: 10.0pt; font-family: Arial;">I am currently right at the beginning of a free 15-day trial period, which is painless as you don’t even need to hand over credit card details to do this. Should I decide to buy (likely at the moment), there is a TWiT coupon code for a couple of free months subscription. Getting started was easy – sign up, download a program, and just let it go on the initial backup, which by Carbonites’ own admission could take several days. I slimmed down the initial 120+Gb that was selected for upload, but that still leaves it with just under 100Gb to do. As you can see from the above picture, it will take a while – it has so far needed about 25hours to do 3%. Even though I have a good download speed, because of the ‘A’ in ADSL, you don’t get such a great upload (approx 800kbits/sec) rate.</span></span></p>
<p><span style="font-family: Arial; font-size: x-small;"><span style="font-size: 10.0pt; font-family: Arial;">So, I think all my free trial period will be taken by uploading, and I need to remember to keep the PC turned on as much as possible. But looking good so far. There is an iPhone app that lets you browse your backed up files, and this works quite well for the limited use I have made of it so far. You can also do this using a regular web browser interface, but to date I have not yet tried it.</span></span></p>
<p><span style="font-family: Arial; font-size: x-small;"><span style="font-size: 10.0pt; font-family: Arial;">The feature that has most impressed me so far is that the program that sits in the background seems pretty clever about when to pause uploading so it does not get in the way of regular usage of the PC. I’ve watched streamed TV programmes, used Photoshop, browsed the web, used a few different applications, all without noticable slowdown. Carbonite just detects other activity, sleeps or slows down for a bit, then wakes up again when not so busy. Smart.</span></span></p>
</div>
<a href="javascript:toggleStartStop();PicLensLite.start({feedUrl:'http://familywhitfield.co.uk/wordpress/wp-content/plugins/wp-piclens/mrss.php?id=368'});">Start Slide Show with PicLens Lite <img src="http://familywhitfield.co.uk/wordpress/wp-content/plugins/wp-piclens/PicLensButton.png" alt="PicLens" width="16" height="12" border="0" align="top"></a>]]></content:encoded>
			<wfw:commentRss>http://familywhitfield.co.uk/wordpress/2010/12/31/backing-up-using-carbonite/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A simple Perforce backup script for the home</title>
		<link>http://familywhitfield.co.uk/wordpress/2007/07/07/a-simple-perforce-backup-script-for-the-home/</link>
		<comments>http://familywhitfield.co.uk/wordpress/2007/07/07/a-simple-perforce-backup-script-for-the-home/#comments</comments>
		<pubDate>Sat, 07 Jul 2007 20:46:38 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[Perforce]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[PC]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://familywhitfield.co.uk/wordpress/?p=24</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style" addthis:url='http://familywhitfield.co.uk/wordpress/2007/07/07/a-simple-perforce-backup-script-for-the-home/' addthis:title='A simple Perforce backup script for the home' ><a class="addthis_button_twitter"></a><a class="addthis_button_facebook"></a><a class="addthis_button_email"></a><a class="addthis_button_google_plusone"></a><a class="addthis_button_digg"></a><a class="addthis_button_compact"></a></div>I use the free license of Perforce on my home network just to ensure version control and management of home coding projects, university thesis stuff, and general files that I just want to ensure I have previous versions of. It&#8217;s a really nice part of the Perforce licensing model that I can get two users [...]]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style" addthis:url='http://familywhitfield.co.uk/wordpress/2007/07/07/a-simple-perforce-backup-script-for-the-home/' addthis:title='A simple Perforce backup script for the home' ><a class="addthis_button_twitter"></a><a class="addthis_button_facebook"></a><a class="addthis_button_email"></a><a class="addthis_button_google_plusone"></a><a class="addthis_button_digg"></a><a class="addthis_button_compact"></a></div><p>I use the free license of <a href="http://www.perforce.com">Perforce</a> on my home network just to ensure version control and management of home coding projects, university thesis stuff, and general files that I just want to ensure I have previous versions of. It&#8217;s a really nice part of the Perforce licensing model that I can get two users and five clients for free. My network has my main PC (with Perforce depot), my personal laptop, my wife&#8217;s laptop, and my work laptop all connected. It&#8217;ll get worse when my four-year old starts wanting to source control things from his PC!</p>
<p>Having been responsible for some pretty heavyweight Perforce installations in my working life, I did not want to forget the golden rule of checkpointing and backing up. While it would not be a disaster if my Perforce data got lost or messed up, it would be an inconvenience. The scripts published on Perforce user forums, however, tend to be focussed on industrial installations and can be quite complex. For the home it is nice to have something more simple.<br />
<span id="more-24"></span></p>
<p>So the script here is really aimed at the home user. I don&#8217;t use Perforce everyday at home, and so a nightly checkpoint and backup is a waste of time. I tend to run it every two to four weeks. My environment is that I have my main home PC running Perforce, and hanging off this on a USB-2 link is a Western-Digital MyBook external drive that shows itself as D: .  Sitting in the Perforce root folder (where the P4 db.* files are, and defined by the P4ROOT environment variable), I have a simple batch file called &#8220;backup.bat&#8221; (see code below).</p>
<p>The basic backup mechanism is this:</p>
<ol>
<li>Stop the Perforce server</li>
<li>Take a checkpoint</li>
<li>Copy checkpoint to a location on the MyBook external disk</li>
<li>Copy checkpoints to a location on the main PC &#8211; just duplication for safety</li>
<li>Delete checkpoints from P4ROOT</li>
<li>Use Robocopy to incrementally backup all depot files for each depot</li>
<li>Restart Perforce server</li>
</ol>
<p>Here&#8217;s the script. Just copy it into a .bat file put it into the P4ROOT folder. To run it, either do as a scheduled task or &#8211; as I do &#8211; just run it manually at whatever frequency you are happy with.</p>

<div class="wp_syntax"><div class="code"><pre class="dos" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">REM  *** Backs up Perforce</span>
p4 admin stop
p4d -jc -z
<span style="color: #b1b100; font-weight: bold;">copy</span> *.gz d:\Perforce\checkpoints
<span style="color: #b1b100; font-weight: bold;">copy</span> *.gz old_checkpoints
<span style="color: #b1b100; font-weight: bold;">del</span> /Q /F *.gz
<span style="color: #808080; font-style: italic;">rem *** now backup depot files. See following text for explanation</span>
robocopy depot d:\perforce\depotfiles\depot /S /E /MIR /R:1 /W:5 <span style="color: #33cc33;">&amp;</span>gt;robolog-depot.txt
robocopy perforce d:\perforce\depotfiles\perforce /S /E /MIR /R:1 /W:5 <span style="color: #33cc33;">&amp;</span>gt;<span style="color: #33cc33;">&amp;</span>gt;robolog-p4.txt
robocopy work d:\perforce\depotfiles\work /S /E /MIR /R:1 /W:5 <span style="color: #33cc33;">&amp;</span>gt;<span style="color: #33cc33;">&amp;</span>gt;robolog-work.txt
<span style="color: #808080; font-style: italic;">rem *** Restart server</span>
net start Perforce</pre></div></div>

<p>The three robocopy lines reflect that I have three depots on my server &#8211; &#8216;depot&#8217;, &#8216;perforce&#8217;, and &#8216;work&#8217;. Change these to reflect your own depots.</p>
<p>Robocopy is a free utility that runs under Windows that provides extremely flexible folder copy functionality. See the <a href="http://en.wikipedia.org/wiki/Robocopy">Wikipedia entry</a> for more details. Just make sure it is either on your search path, or place the EXE in the P4ROOT folder.</p>
<p>The options given to Robocopy just tell it to only copy files that are different to those that already exist. In otherwords, it synchronises one folder structure to another. I pipe the output into a log file so I can see exactly what new files have been copied if I need to.</p>
<p>And that&#8217;s it. Dead simple &#8211; will take you two minutes to set up, but could save you hours of hassle should something go awry in the future.</p>
]]></content:encoded>
			<wfw:commentRss>http://familywhitfield.co.uk/wordpress/2007/07/07/a-simple-perforce-backup-script-for-the-home/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

