{"id":5222,"date":"2014-07-19T17:29:39","date_gmt":"2014-07-19T07:29:39","guid":{"rendered":"http:\/\/nsrd.info\/blog\/?p=5222"},"modified":"2018-12-11T13:43:37","modified_gmt":"2018-12-11T03:43:37","slug":"basics-force-incremental","status":"publish","type":"post","link":"https:\/\/nsrd.info\/blog\/2014\/07\/19\/basics-force-incremental\/","title":{"rendered":"Basics &#8211; Force incremental"},"content":{"rendered":"<p>In one of those &#8220;old dogs can learn new tricks&#8221; scenarios, or&nbsp;perhaps more correctly, &#8220;never believe it until you&#8217;ve read it in the manual&#8221;,&nbsp;I recently learnt what <em>force incremental<\/em> really does in NetWorker groups. I remember sitting in a training course over a decade&nbsp;ago being told, &#8220;If you turn <em>force incremental<\/em> on and the group re-runs on the same day as it would have run a full, it&#8217;ll run an incremental&#8221;. And that&#8217;s what&nbsp;I&#8217;d been working on ever since*.<\/p>\n<p>Except, that&#8217;s not&nbsp;the way the documentation describes how and what&nbsp;<em>force incremental<\/em> does.&nbsp;(And that included going back to the man pages for NetWorker 6.1.3, which I still have laying around on a lab client.)<\/p>\n<p>If you&#8217;ve not seen the setting before, here it is in the group controls:<\/p>\n<p><a href=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2014\/07\/force-incremental.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5223\" src=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2014\/07\/force-incremental.png\" alt=\"Force incremental\" width=\"869\" height=\"353\" srcset=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2014\/07\/force-incremental.png 869w, https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2014\/07\/force-incremental-300x121.png 300w\" sizes=\"auto, (max-width: 869px) 100vw, 869px\" \/><\/a><\/p>\n<p>Force Incremental is somewhat more targeted than this. In fact, for traditional&nbsp;groups with&nbsp;a 24 hour interval, it won&#8217;t do a thing.<\/p>\n<p>The force incremental setting exists for groups that have a&nbsp;<em>shorter<\/em> than 24 hour&nbsp;interval&nbsp;window. Consider for instance archive log backup groups.&nbsp;You&#8217;ll see these every now and then, where they run every 6 hours or so to collect and save any archive logs generated on a particular&nbsp;critical database server. In this sort of scenario, you&#8217;ll typically want the first backup of the day to be a full (to pick up all the log files), then each subsequent backup during the day to be an incremental (to grab the files created between the previous backup and the current one). In that sense, it&#8217;s a microcosm of a traditional weekly-full\/daily-incremental backup regime, just conducted over the course of a single day.<\/p>\n<p>To that end, the&nbsp;scheduling setup for such a group might resemble the following:<\/p>\n<p><a href=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2014\/07\/force_incremental_02.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5226\" src=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2014\/07\/force_incremental_02.png\" alt=\"Force incremental scheduling (1 of 2)\" width=\"442\" height=\"282\" srcset=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2014\/07\/force_incremental_02.png 442w, https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2014\/07\/force_incremental_02-300x191.png 300w\" sizes=\"auto, (max-width: 442px) 100vw, 442px\" \/><\/a><\/p>\n<p>The first part, shown above, is straight forward &#8211; the group should be enabled to automatically start, and given a suitable start time. In this scenario, I&#8217;ve given it a start time of 04:00.<\/p>\n<p><a href=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2014\/07\/force_incremental_03.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5227\" src=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2014\/07\/force_incremental_03.png\" alt=\"Force incremental scheduling (2 of 2)\" width=\"451\" height=\"350\" srcset=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2014\/07\/force_incremental_03.png 451w, https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2014\/07\/force_incremental_03-300x232.png 300w\" sizes=\"auto, (max-width: 451px) 100vw, 451px\" \/><\/a><\/p>\n<p>In the <em>Advanced<\/em> tab for the group, the&nbsp;<em>Level<\/em>&nbsp;field is used to set an initial level of each day to&nbsp;full, the <em>interval<\/em> is set to 06:00, meaning the group will automatically re-run every 6 hours after 4am, and the&nbsp;<em>force incremental<\/em> option is enabled to make each subsequent backup after the 4am one an incremental backup.<\/p>\n<p>With this configuration, the group execution would be as follows:<\/p>\n<ul>\n<li>04:00&nbsp;&#8211; full<\/li>\n<li>10:00&nbsp;&#8211; incr<\/li>\n<li>16:00&nbsp;&#8211; incr<\/li>\n<li>22:00&nbsp;&#8211; incr<\/li>\n<\/ul>\n<p>You might be wondering what the advantage of force incremental is: after all, this could be readily accommodated by using different groups that start at each of 04:00, 10:00, 16:00 and 22:00, but therein is your answer: this process collapses 4 groups down to 1, making management of what is effectively a&nbsp;single task considerably easier.<\/p>\n<p>&#8212;<br \/>\n* Given I&#8217;m relatively sure&nbsp;I&#8217;ve seen&nbsp;<em>force incremental<\/em> working in the&nbsp;originally described manner, I&#8217;m assuming it might have done so (perhaps accidentally) in v5.x.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In one of those &#8220;old dogs can learn new tricks&#8221; scenarios, or&nbsp;perhaps more correctly, &#8220;never believe it until you&#8217;ve read&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","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":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5,6],"tags":[1179],"class_list":["post-5222","post","type-post","status-publish","format-standard","hentry","category-backup-theory","category-basics","tag-force-incremental"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pKpIN-1me","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/5222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/comments?post=5222"}],"version-history":[{"count":5,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/5222\/revisions"}],"predecessor-version":[{"id":7457,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/5222\/revisions\/7457"}],"wp:attachment":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/media?parent=5222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/categories?post=5222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/tags?post=5222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}