{"id":1576,"date":"2013-09-13T10:58:32","date_gmt":"2013-09-12T22:58:32","guid":{"rendered":"https:\/\/www.deltics.co.nz\/blog\/?p=1576"},"modified":"2013-09-13T10:58:32","modified_gmt":"2013-09-12T22:58:32","slug":"a-backup-solution-that-just-works","status":"publish","type":"post","link":"https:\/\/www.deltics.co.nz\/blog\/posts\/1576\/","title":{"rendered":"A Backup Solution That Just Works"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">[Estimated Reading Time: <\/span> <span class=\"rt-time\"> 5<\/span> <span class=\"rt-label rt-postfix\">minutes]<\/span><\/span><p>In a comment on my Shaggy Dog story yesterday <a href=\"https:\/\/www.deltics.co.nz\/blog\/?p=1562&#038;cpage=1#comment-14554\">commenter Iztok gently chastised me<\/a> for not having backups of my VM&#8217;s.  Ironically I did.  The problem is that my backup strategy is so silently effective that I completely forgot I had it !  Having been reminded, I thought it might be worth sharing.<\/p>\n<p><!--more--><\/p>\n<h3>The Good Old Days<\/h3>\n<p>Before I switched to Mac I went through a number of backup solutions for my various PC&#8217;s over the years.  Usually some combination of optical archiving for long term backups and some form of replaceable media solution and backup software for day-to-day peace of mind.<\/p>\n<p>None was 100% reliable and all were intrusive to some degree or another.  <strong>Iomega<\/strong> featured a lot in this history&#8230; first <strong>Zip<\/strong> drives (cumbersome &#8211; all those discs), then <strong>Jaz<\/strong> (unreliable &#8211; the one time I needed it it failed to restore and ultimately died completely) and finally an Iomega HDD puck\/caddy system the name of which escapes me (this worked well but was expensive and unfortunately didn&#8217;t last long).<\/p>\n<p>Then I got my Mac and, based on my experiences of similarly supposedly effortless backup systems for PC&#8217;s, I was initially skeptical of <strong>Time Machine<\/strong>.  Not any more.<\/p>\n<p><strong>Time Machine<\/strong> is completely reliable and entirely unobtrusive.  Of all things Apple it perhaps best embodies the &#8220;It Just Works&#8221; aspect of the Apple approach.<\/p>\n<p><strong>Time Machine<\/strong> backs up <em>everything<\/em> &#8211; system HDD and external HDD&#8217;s.  You have to explicitly exclude drives and\/or folders to have them <strong>not<\/strong> included.  It automatically and unobtrusively keeps hourly backups for the past 24 hours, daily backups for a month and weekly backups thereafter, deleting the oldest backups only to make room for new ones.<\/p>\n<p>The only indication you generally have that <strong>Time Machine<\/strong> is doing it&#8217;s thing is that the icon in the Mac menu bar quietly spins while it is taking the hourly backups.  VM snapshots are a bit more noticeable, but I&#8217;ll get to that in a minute.<\/p>\n<p>On my Mac at work with a measly 1TB drive dedicated to <strong>Time Machine<\/strong> duty I have backups going back to <em>January 2012<\/em> without ever having lifted a finger !<\/p>\n<p>As I mentioned in the <em>Shaggy Dog<\/em> story, VM images can be significantly large files (actually with <strong>Parallels<\/strong> a VM is a &#8220;bundle&#8221; &#8211; which ultimately is a folder rather than a file, but the point remains).  If <strong>Time Machine<\/strong> were to include changed virtual machine files on an hourly basis it would quickly fill even a 1TB volume.<\/p>\n<p>Fortunately the VM solution I use &#8211; Parallels &#8211; has specific support for <strong>Time Machine<\/strong>.<\/p>\n<p>Backup options can be set in different ways to work with <strong>Time Machine<\/strong> on a <em>per VM basis<\/em>.  You can exclude a VM entirely if you manage a backup separately (or just don&#8217;t or need it backed up), or have it simply included as a regular file, or you can have <strong>Parallels<\/strong> take snapshots that will allow <strong>Time Machine<\/strong> to backup only those snapshots as needed.<\/p>\n<figure id=\"attachment_1577\" aria-describedby=\"caption-attachment-1577\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.deltics.co.nz\/blog\/wp-content\/uploads\/Screen-Shot-2013-09-13-at-10.08.10.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.deltics.co.nz\/blog\/wp-content\/uploads\/Screen-Shot-2013-09-13-at-10.08.10.png?resize=300%2C94&#038;ssl=1\" alt=\"Parallels Backup Options\" width=\"300\" height=\"94\" class=\"size-medium wp-image-1577\" srcset=\"https:\/\/i0.wp.com\/www.deltics.co.nz\/blog\/wp-content\/uploads\/Screen-Shot-2013-09-13-at-10.08.10.png?resize=300%2C94&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.deltics.co.nz\/blog\/wp-content\/uploads\/Screen-Shot-2013-09-13-at-10.08.10.png?resize=500%2C156&amp;ssl=1 500w, https:\/\/i0.wp.com\/www.deltics.co.nz\/blog\/wp-content\/uploads\/Screen-Shot-2013-09-13-at-10.08.10.png?w=529&amp;ssl=1 529w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1577\" class=\"wp-caption-text\">Parallels Backup Options<\/figcaption><\/figure>\n<p>When creating Snapshots (<em>SmartGuard<\/em> in <strong>Parallels<\/strong> parlance) you can define your own schedule or have it synchronized with <strong>Time Machine<\/strong> itself.<\/p>\n<figure id=\"attachment_1578\" aria-describedby=\"caption-attachment-1578\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.deltics.co.nz\/blog\/wp-content\/uploads\/Screen-Shot-2013-09-13-at-10.08.25.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.deltics.co.nz\/blog\/wp-content\/uploads\/Screen-Shot-2013-09-13-at-10.08.25.png?resize=300%2C144&#038;ssl=1\" alt=\"Set DeLorean Mode ON\" width=\"300\" height=\"144\" class=\"size-medium wp-image-1578\" srcset=\"https:\/\/i0.wp.com\/www.deltics.co.nz\/blog\/wp-content\/uploads\/Screen-Shot-2013-09-13-at-10.08.25.png?resize=300%2C144&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.deltics.co.nz\/blog\/wp-content\/uploads\/Screen-Shot-2013-09-13-at-10.08.25.png?w=472&amp;ssl=1 472w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1578\" class=\"wp-caption-text\">Set DeLorean Mode ON<\/figcaption><\/figure>\n<p>It should be mentioned that when a snapshot is taken the VM must be suspended, which occurs automatically.  You can opt to be notified first in which case you can cancel the snapshot if you are in the middle of something that you&#8217;d rather not be interrupted.  But snapshots take only a few seconds so I generally leave everything set to automatic.<\/p>\n<p>That all takes care of my carefully configured VM environments.<\/p>\n<p>The problem this week I think was that I was so engrossed in my problem &#8211; and <strong>Time Machine<\/strong> so unobtrusive &#8211; that when I needed to go back to a VM I had deleted I completely forgot that <strong>Time Machine<\/strong> had me covered!<\/p>\n<p>Had I actually &#8220;lost&#8221; something entirely I would likely have remembered but it was just a question of inconvenience rather than catastrophe.  And of course, as I mentioned in my reply to <strong>Iztok<\/strong>&#8216;s comment, on this occasion my somewhat embarrassing Senior Moment led directly to the discovery of a bug and a resolution that might not otherwise have been uncovered.  \ud83d\ude42<\/p>\n<p>The data that my VM&#8217;s exist to work with is all on an external HDD.<\/p>\n<p>As mentioned, this is also covered by TimeMachine.  The <em>really<\/em> important stuff is kept in various cloud-backed storage locations.  Of course this is primarily for sharing between machines, not part of the backup strategy as such, but it does mean that if my system ever died completely I could quickly get to the current data from my other devices without having to rebuild\/repair\/restore anything.<\/p>\n<h3>But Backup is Only Half the Story !<\/h3>\n<p>Indeed, and the other half is restoring from those backups.  And here again <strong>Time Machine<\/strong> is leaps ahead of any backup\/restore solution I ever came across before.<\/p>\n<p>To restore something from <strong>Time Machine<\/strong> you first simply &#8220;<em>Enter Time Machine<\/em>&#8221; itself.  In this mode, <strong>Time Machine<\/strong> takes over your entire display, presenting a rather whimsical star field as a backdrop  (I&#8217;d like to be able to pick a Marty McFly and\/or Doc Brown moment myself, but I can&#8217;t have everything :)) to a simple file browser window and a timeline.<\/p>\n<figure id=\"attachment_1579\" aria-describedby=\"caption-attachment-1579\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.deltics.co.nz\/blog\/wp-content\/uploads\/Screen-Shot-2013-09-13-at-10.27.19.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.deltics.co.nz\/blog\/wp-content\/uploads\/Screen-Shot-2013-09-13-at-10.27.19.png?resize=300%2C168&#038;ssl=1\" alt=\"The Infinite Now\" width=\"300\" height=\"168\" class=\"size-medium wp-image-1579\" srcset=\"https:\/\/i0.wp.com\/www.deltics.co.nz\/blog\/wp-content\/uploads\/Screen-Shot-2013-09-13-at-10.27.19.png?resize=300%2C168&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.deltics.co.nz\/blog\/wp-content\/uploads\/Screen-Shot-2013-09-13-at-10.27.19.png?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.deltics.co.nz\/blog\/wp-content\/uploads\/Screen-Shot-2013-09-13-at-10.27.19.png?resize=500%2C281&amp;ssl=1 500w, https:\/\/i0.wp.com\/www.deltics.co.nz\/blog\/wp-content\/uploads\/Screen-Shot-2013-09-13-at-10.27.19.png?w=1280&amp;ssl=1 1280w, https:\/\/i0.wp.com\/www.deltics.co.nz\/blog\/wp-content\/uploads\/Screen-Shot-2013-09-13-at-10.27.19.png?w=1920&amp;ssl=1 1920w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1579\" class=\"wp-caption-text\">The Infinite Now<\/figcaption><\/figure>\n<p>Obviously, if the particular folder you are viewing in the file browser is excluded from <strong>Time Machine<\/strong> then you lose the ability to navigate through time and can only see &#8220;Now&#8221;.<\/p>\n<p>But otherwise you can navigate the file system in the file browser window and see exactly what your system looked like at the point of time currently selected in <strong>Time Machine<\/strong>.  The initial time is &#8220;Now&#8221;.  You can then step back or forward through time one snapshot at a time or you can use the timeline to jump straight to a specific moment in time.<\/p>\n<figure id=\"attachment_1580\" aria-describedby=\"caption-attachment-1580\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.deltics.co.nz\/blog\/wp-content\/uploads\/Screen-Shot-2013-09-13-at-10.28.39.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.deltics.co.nz\/blog\/wp-content\/uploads\/Screen-Shot-2013-09-13-at-10.28.39.png?resize=300%2C191&#038;ssl=1\" alt=\"If I Could Turn Back Time\" width=\"300\" height=\"191\" class=\"size-medium wp-image-1580\" srcset=\"https:\/\/i0.wp.com\/www.deltics.co.nz\/blog\/wp-content\/uploads\/Screen-Shot-2013-09-13-at-10.28.39.png?resize=300%2C191&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.deltics.co.nz\/blog\/wp-content\/uploads\/Screen-Shot-2013-09-13-at-10.28.39.png?resize=471%2C300&amp;ssl=1 471w, https:\/\/i0.wp.com\/www.deltics.co.nz\/blog\/wp-content\/uploads\/Screen-Shot-2013-09-13-at-10.28.39.png?w=807&amp;ssl=1 807w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1580\" class=\"wp-caption-text\">If I Could Turn Back Time<\/figcaption><\/figure>\n<p>However you choose to navigate through time, the file browser updates to reflect the chosen moment.  Not the differences, just exactly how it looked, what files, folders etc were there, at that time.<\/p>\n<p>You might be able to discern my interests of a year ago from the different contents in my Downloads folder at that time.<\/p>\n<figure id=\"attachment_1584\" aria-describedby=\"caption-attachment-1584\" style=\"width: 288px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.deltics.co.nz\/blog\/wp-content\/uploads\/Screen-Shot-2013-09-13-at-10.28.13.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.deltics.co.nz\/blog\/wp-content\/uploads\/Screen-Shot-2013-09-13-at-10.28.13.png?resize=288%2C300&#038;ssl=1\" alt=\"A Year Ago Almost to the Day\" width=\"288\" height=\"300\" class=\"size-medium wp-image-1584\" srcset=\"https:\/\/i0.wp.com\/www.deltics.co.nz\/blog\/wp-content\/uploads\/Screen-Shot-2013-09-13-at-10.28.13.png?resize=288%2C300&amp;ssl=1 288w, https:\/\/i0.wp.com\/www.deltics.co.nz\/blog\/wp-content\/uploads\/Screen-Shot-2013-09-13-at-10.28.13.png?w=975&amp;ssl=1 975w\" sizes=\"auto, (max-width: 288px) 100vw, 288px\" \/><\/a><figcaption id=\"caption-attachment-1584\" class=\"wp-caption-text\">A Year Ago Almost to the Day<\/figcaption><\/figure>\n<p>Once you have found the file(s) you want or need, click &#8220;Restore&#8221; and you will be asked where you want to put the restore file &#8211; either in it&#8217;s original location or somewhere else.<\/p>\n<p>Now all I have to do is make sure to remember that I have this covering my a** in future!  \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">[Estimated Reading Time: <\/span> <span class=\"rt-time\"> 5<\/span> <span class=\"rt-label rt-postfix\">minutes]<\/span><\/span>In a comment on my Shaggy Dog story yesterday commenter Iztok gently chastised me for not having backups of my VM&#8217;s. Ironically I did. The problem is that my backup strategy is so silently effective that I completely forgot I had it ! Having been reminded, I thought it might be worth sharing.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[4,1,180],"tags":[210,211],"class_list":["post-1576","post","type-post","status-publish","format-standard","hentry","category-delphi","category-general","category-oxygene","tag-backups","tag-practices"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1TKYv-pq","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/posts\/1576","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/comments?post=1576"}],"version-history":[{"count":5,"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/posts\/1576\/revisions"}],"predecessor-version":[{"id":1586,"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/posts\/1576\/revisions\/1586"}],"wp:attachment":[{"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/media?parent=1576"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/categories?post=1576"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/tags?post=1576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}