{"id":676,"date":"2008-04-02T10:46:19","date_gmt":"2008-04-02T10:46:19","guid":{"rendered":"http:\/\/www.nargalzius.com\/blog2\/http:\/www.nargalzius.com\/blog2\/archives\/2008\/04\/2008_04_02_1846.php"},"modified":"2017-02-10T02:31:46","modified_gmt":"2017-02-10T02:31:46","slug":"forcing-a-time-machine-size-limit","status":"publish","type":"post","link":"http:\/\/nargalzius.com\/blog\/archives\/2008\/04\/02\/forcing-a-time-machine-size-limit","title":{"rendered":"Forcing a Time Machine size limit"},"content":{"rendered":"<p>After getting my <em>Time Capsule,<\/em> I&#8217;ve now started using <em>Time Machine (TM)<\/em> to backup my data.<\/p>\n<p>The &#8220;image&#8221; file TM uses is <strong>variable.<\/strong> Upon the creation and first backup; it starts out small (or whatever size the data you&#8217;ve just backed up). It does however grow over time as it tries to retain copies of old files as well. So basically the bigger the space it can work with, the further &#8220;back in time&#8221; you could restore your files as it were.<\/p>\n<p>Now that&#8217;s all fine and dandy, but they should really give the user an option to <strong>specify<\/strong> how big they allow this image to be.   And I&#8217;ll explain in a sec why this is something you&#8217;d want&#8230; as well as how to accomplish it.<!--more-->[1]: <a href=\"http:\/\/www.macosxhints.com\/article.php?story=20071108020121567\">http:\/\/www.macosxhints.com\/article.php?story=20071108020121567<\/a> &#8220;view hint&#8221;<\/p>\n<p>As it is, the TM backup file, being variable, will just keep on eating your hard drive&#8217;s free space. In the instance of a 1TB <em>Time Capsule (TC),<\/em> most of the time, you would want to use the space for stuff <em>other<\/em> than backing up. Since you cannot partition <span class=\"footnote_referrer\"><a role=\"button\" tabindex=\"0\" onclick=\"footnote_moveToReference_676_1('footnote_plugin_reference_676_1_1');\" onkeypress=\"footnote_moveToReference_676_1('footnote_plugin_reference_676_1_1');\" ><sup id=\"footnote_plugin_tooltip_676_1_1\" class=\"footnote_plugin_tooltip_text\">1 <\/sup><\/a><span id=\"footnote_plugin_tooltip_text_676_1_1\" class=\"footnote_tooltip\">Or at least partition it without voiding your warranty.<\/span><\/span><script type=\"text\/javascript\"> jQuery('#footnote_plugin_tooltip_676_1_1').tooltip({ tip: '#footnote_plugin_tooltip_text_676_1_1', tipClass: 'footnote_tooltip', effect: 'fade', predelay: 0, fadeInSpeed: 200, delay: 400, fadeOutSpeed: 200, position: 'top right', relative: true, offset: [10, 10], });<\/script> the TC, TM will think that you have 1TB available for backup and will just keep on growing that image until it fills whatever free space is in there.<\/p>\n<p>Now we don&#8217;t want that do we?<\/p>\n<p>So to solve this, there&#8217;s a [procedure you can apply][1]. While that article has everything you need to accomplish it, I&#8217;m taking the time to re-post (and expound on) it here because it took me a couple of tries to get it working. You could experience file mounting\/locking problems if you do things in a certain order. On one try TM wouldn&#8217;t write to the backup image file <em>at all.<\/em><\/p>\n<p>So I&#8217;ve made this step by step tutorial (with pictures) on how to accomplish that same end result discussed in the mentioned article.<\/p>\n<h1>IF\/ELSE<\/h1>\n<p>If you have a TM image (or have already been using TM), then you can skip this section. If it&#8217;s your first time however, this will hopefully be a less painful experience. And you&#8217;ll know why in the succeeding sections.<\/p>\n<p>Turn TM <strong>on<\/strong> and have it start backing up your files. As soon as you see the this image:<\/p>\n<div align=\"center\">\n<a rel=\"lightbox\" href=\"http:\/\/farm4.static.flickr.com\/3213\/2381785659_a7bc439ca9_o.jpg\" target=\"_blank\" title=\"You may click on the image for more details\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/farm4.static.flickr.com\/3213\/2381785659_a0389bb065_m.jpg\"><\/a>\n<\/div>\n<p>Don&#8217;t mind the values in there, as I took the screenshot much later. Basically what you need to make sure of is that it&#8217;s <strong>past<\/strong> the &#8220;preparing&#8221; phase and actually has started putting data into the image. If so, then cancel the backup, and let it wrap up with your incomplete backup. Why incomplete? You&#8217;ll see.<\/p>\n<h3>on second thought&#8230;<\/h3>\n<p>I thought about it and figured there&#8217;s another way to end up with a faster initial backup <strong>while<\/strong> letting TM finish properly. Before you start backing up, press the <em>options<\/em> button on TM preferences.<\/p>\n<div align=\"center\">\n<a rel=\"lightbox\" href=\"http:\/\/farm3.static.flickr.com\/2056\/2385483532_7e360e7374_o.jpg\" target=\"_blank\" title=\"You may click on the image for more details\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/farm3.static.flickr.com\/2056\/2385483532_60f93dee4c_m.jpg\"><\/a>\n<\/div>\n<p>This should give you the option to <em>exclude<\/em> files. What I did was exclude <strong>absolutely everything<\/strong> save for a single text file, it could be exisiting, or you could create it specifically for this purpose.<\/p>\n<p>If you go this route, you should be able to just let it finish backing up&#8230; and proceed to the next section.<\/p>\n<h1>STEP 1: Preliminaries<\/h1>\n<p>Turn TM <strong>off<\/strong> and find where it stored its backup image (usually at the root of the disk\/volume which you set it to backup to):<\/p>\n<div align=\"center\">\n<a rel=\"lightbox\" href=\"http:\/\/farm3.static.flickr.com\/2120\/2382527946_c214efe3c2_o.jpg\" target=\"_blank\" title=\"You may click on the image for more details\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/farm3.static.flickr.com\/2120\/2382527946_7c247852c7_m.jpg\"><\/a>\n<\/div>\n<p>Obviously, the text in red is <strong>not<\/strong> the name of the file. The real filename would depend on your situation. For argument&#8217;s sake, lets say your computer name is &#8220;MyComputer&#8221; and your <strong>MAC address<\/strong> is <code>0A:1B:2C:3D:4E:5F<\/code>, you&#8217;d have the filename <code>MyComputer_0a1b2c3d4e5f.sparsebundle<\/code><\/p>\n<p>This will also be a good time to check if the image file is mounted &#8211; if it is, <strong>unmount<\/strong> it.<\/p>\n<h1>STEP 2: Creating Alternate Image<\/h1>\n<p>Now run <code>Disk Utility.app<\/code> and click on the <em>New Image<\/em> icon. You should see something similar to this (less the <em>&#8220;custom volume size&#8221;<\/em> dialog box)<\/p>\n<div align=\"center\">\n<a rel=\"lightbox\" href=\"http:\/\/farm3.static.flickr.com\/2228\/2382528106_36ae3642a6_o.jpg\" target=\"_blank\" title=\"You may click on the image for more details\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/farm3.static.flickr.com\/2228\/2382528106_6ed5abeefd_m.jpg\"><\/a>\n<\/div>\n<p>Again, text in red will depend on your situation. But basically, follow all the settings on that picture. Change &#8220;computer_name&#8221; to your computer&#8217;s name (e.g. <code>MyComputer<\/code> from the previous section). Click on the <em>Volume Size<\/em> disclosure field and enter the desired size you want. This will now be the <strong>maximum<\/strong> size your image will be allowed to grow to.<\/p>\n<p>Enter <code>test.sparsebundle<\/code> in the <em>Save As<\/em> field (which is covered by the <em>Custom volume size<\/em> dialog in the picture). Then press the <em>Create<\/em> button. Creating the file is not instantaneous, and should take a few moments to do. Once it&#8217;s done creating the file, unmount it [if its mounted]; then carry on.<\/p>\n<h1>STEP 3: Clone That Shit!<\/h1>\n<p>Now it&#8217;s time to <strong>mount<\/strong> both image files.<\/p>\n<p>Mount <code>MyComputer_0a1b2c3d4e5f.sparsebundle<\/code> (or whatever the hell name it is)&#8230; then mount <code>test.sparsebundle<\/code>.<\/p>\n<p>Go back to <code>Disk Utility.app<\/code> and you should see something like this (pay attention to the items on the left side):<\/p>\n<div align=\"center\">\n<a rel=\"lightbox\" href=\"http:\/\/farm3.static.flickr.com\/2346\/2382528032_1bc9918684_o.jpg\" target=\"_blank\" title=\"You may click on the image for more details\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/farm3.static.flickr.com\/2346\/2382528032_96f8b12d05_m.jpg\"><\/a>\n<\/div>\n<p>If you&#8217;ve done everything correctly you should see both <code>MyComputer_0a1b2c3d4e5f.sparsebundle<\/code> (or whatever) and <code>test.sparsebundle<\/code> on the right, and <strong>both<\/strong> of them should show <strong>identical<\/strong> volumes under them (e.g. <em>&#8220;Backup of MyComputer&#8221;<\/em>)<\/p>\n<p>Now click on the <em>Restore<\/em> tab and follow the instructions on the picture.<\/p>\n<p>Make sure <em>Erase destination<\/em> is checked and click <em>Restore<\/em>.<\/p>\n<p>What it will do now is clone every block of data from <code>MyComputer_0a1b2c3d4e5f.sparsebundle<\/code> to <code>test.sparsebundle<\/code>. So recall the <em>IF\/ELSE<\/em> section; if you had a large backup file this would take quite a while. And if you&#8217;re starting from scratch , it would be better to just let it end with an incomplete (but small) image, so you can resume\/complete the backup with the clone you&#8217;ve just made.<\/p>\n<h1>STEP 4: The Switcheroo<\/h1>\n<p>Once the Restore\/Erase\/cloning process is done. Close <code>Disk Utility.app<\/code> Unmount the two volumes.<\/p>\n<p>Now <strong>rename<\/strong> <code>test.sparsebundle<\/code> to <code>MyComputer_0a1b2c3d4e5f.sparsebundle<\/code> and <strong>replace<\/strong> the latter with your now newly renamed file.<\/p>\n<p>When everything&#8217;s ready&#8230; turn TM on again, and start backing up. If you did everything right, it should now use that new image you&#8217;ve made &#8211; with the benefit of having a maximum size limit \ud83d\ude09<\/p>\n<p>Hope this helps.<\/p>\n<p>\/\/<\/p>\n<p>If you want to play it safe, you can temporarily move the official TM backup image to a <em>different<\/em> location (or rename it). This is more prudent as you can delete it only after you&#8217;ve confirmed if the new image and TM are playing nice with each other, if not, you can always put the old one back \ud83d\ude42<\/p><div class=\"speaker-mute footnotes_reference_container\"> <div class=\"footnote_container_prepare\"><p><span role=\"button\" tabindex=\"0\" class=\"footnote_reference_container_label pointer\" onclick=\"footnote_expand_collapse_reference_container_676_1();\">Notes<\/span><span role=\"button\" tabindex=\"0\" class=\"footnote_reference_container_collapse_button\" style=\"display: none;\" onclick=\"footnote_expand_collapse_reference_container_676_1();\">[<a id=\"footnote_reference_container_collapse_button_676_1\">+<\/a>]<\/span><\/p><\/div> <div id=\"footnote_references_container_676_1\" style=\"\"><table class=\"footnotes_table footnote-reference-container\"><caption class=\"accessibility\">Notes<\/caption> <tbody> \r\n\r\n<tr class=\"footnotes_plugin_reference_row\"> <th scope=\"row\" class=\"footnote_plugin_index_combi pointer\"  onclick=\"footnote_moveToAnchor_676_1('footnote_plugin_tooltip_676_1_1');\"><a id=\"footnote_plugin_reference_676_1_1\" class=\"footnote_backlink\"><span class=\"footnote_index_arrow\">&#8673;<\/span>1<\/a><\/th> <td class=\"footnote_plugin_text\">Or at least partition it without voiding your warranty.<\/td><\/tr>\r\n\r\n <\/tbody> <\/table> <\/div><\/div><script type=\"text\/javascript\"> function footnote_expand_reference_container_676_1() { jQuery('#footnote_references_container_676_1').show(); jQuery('#footnote_reference_container_collapse_button_676_1').text('\u2212'); } function footnote_collapse_reference_container_676_1() { jQuery('#footnote_references_container_676_1').hide(); jQuery('#footnote_reference_container_collapse_button_676_1').text('+'); } function footnote_expand_collapse_reference_container_676_1() { if (jQuery('#footnote_references_container_676_1').is(':hidden')) { footnote_expand_reference_container_676_1(); } else { footnote_collapse_reference_container_676_1(); } } function footnote_moveToReference_676_1(p_str_TargetID) { footnote_expand_reference_container_676_1(); var l_obj_Target = jQuery('#' + p_str_TargetID); if (l_obj_Target.length) { jQuery( 'html, body' ).delay( 0 ); jQuery('html, body').animate({ scrollTop: l_obj_Target.offset().top - window.innerHeight * 0.2 }, 380); } } function footnote_moveToAnchor_676_1(p_str_TargetID) { footnote_expand_reference_container_676_1(); var l_obj_Target = jQuery('#' + p_str_TargetID); if (l_obj_Target.length) { jQuery( 'html, body' ).delay( 0 ); jQuery('html, body').animate({ scrollTop: l_obj_Target.offset().top - window.innerHeight * 0.2 }, 380); } }<\/script>","protected":false},"excerpt":{"rendered":"<p>After getting my Time Capsule, I&#8217;ve now started using Time Machine (TM) to backup my data. The &#8220;image&#8221; file TM uses is variable. Upon the creation and first backup; it starts out small (or whatever size the data you&#8217;ve just backed up). It does however grow over time as it tries to retain copies of &hellip; <p class=\"link-more\"><a href=\"http:\/\/nargalzius.com\/blog\/archives\/2008\/04\/02\/forcing-a-time-machine-size-limit\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Forcing a Time Machine size limit&#8221;<\/span><\/a><\/p><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[4,5,9,13],"tags":[96,473,595,810,1178,1179],"class_list":["post-676","post","type-post","status-publish","format-standard","hentry","category-general","category-internet","category-nargalzius","category-technology","tag-apple","tag-general","tag-internet","tag-nargalzius","tag-time-capsule","tag-time-machine"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"http:\/\/nargalzius.com\/blog\/wp-json\/wp\/v2\/posts\/676","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/nargalzius.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nargalzius.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nargalzius.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nargalzius.com\/blog\/wp-json\/wp\/v2\/comments?post=676"}],"version-history":[{"count":1,"href":"http:\/\/nargalzius.com\/blog\/wp-json\/wp\/v2\/posts\/676\/revisions"}],"predecessor-version":[{"id":1725,"href":"http:\/\/nargalzius.com\/blog\/wp-json\/wp\/v2\/posts\/676\/revisions\/1725"}],"wp:attachment":[{"href":"http:\/\/nargalzius.com\/blog\/wp-json\/wp\/v2\/media?parent=676"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nargalzius.com\/blog\/wp-json\/wp\/v2\/categories?post=676"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nargalzius.com\/blog\/wp-json\/wp\/v2\/tags?post=676"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}