{"id":654,"date":"2009-07-09T12:58:01","date_gmt":"2009-07-09T02:58:01","guid":{"rendered":"http:\/\/nsrd.wordpress.com\/?p=654"},"modified":"2018-12-12T15:59:15","modified_gmt":"2018-12-12T05:59:15","slug":"basics-achieving-higher-frequency-backups","status":"publish","type":"post","link":"https:\/\/nsrd.info\/blog\/2009\/07\/09\/basics-achieving-higher-frequency-backups\/","title":{"rendered":"Basics &#8211; Achieving higher frequency backups"},"content":{"rendered":"<p>For the most part we run standard backups once every 24 hours \u2013 daily. A lot of the time if you need to meet recovery point objectives smaller than this, you&#8217;ll be looking at complimenting backups with snapshot, CDP, etc.<\/p>\n<p>However, sometimes snapshots and other high-availability options <em>aren&#8217;t really<\/em> what we want \u2013 we just want to be able to run a backup more frequently than 24 hours, and have it run automatically. (For instance, on particularly busy Oracle systems, you might want archived redo logs backed up every 4 hours, with logs deleted after 2 backups.)<\/p>\n<p>Thankfully, NetWorker supports this (and has done for quite some time), via the <em>interval<\/em> setting in groups. By default, this is set to &#8220;24:00&#8221; \u2013 24 hours. It can however be set to a smaller value, which will trigger the group to run more frequently.<\/p>\n<p>Before we consider smaller intervals, lets first revisit the key timing settings involved in a traditional group:<\/p>\n<ul>\n<li>Start Time \u2013 The time the group is configured to run. (Defaults to 03:33*).<\/li>\n<li>Interval \u2013 How often the group is configured to run. (Defaults to 24 hours).<\/li>\n<li>Restart Window \u2013 How many hours after the start time will the group, if restarted, only re-run those savesets that failed or never ran, instead of re-running the entire group. (Defaults to 12 hours.)<\/li>\n<\/ul>\n<p>Now, all these options are still used (and required) under higher frequency backups, with their meaning as follows:<\/p>\n<ul>\n<li>Start Time \u2013 When the group is <em>first run<\/em>. This can be anything within a standard 24 hour window.<\/li>\n<li>Interval \u2013 How often the group will <em>re-run<\/em>. This is not affected by when the group finishes.<\/li>\n<li>Restart Window \u2013 Same as for standard interval backups.<\/li>\n<\/ul>\n<p>So, let&#8217;s go back to that sample requirement \u2013 Oracle archived redo log backups run every 4 hours. Let&#8217;s consider setting up a new group that does this, with the backups starting at 00:01 initially, then running every 4 hours after that \u2013 i.e.,<\/p>\n<ul>\n<li>00:01<\/li>\n<li>04:01<\/li>\n<li>08:01<\/li>\n<li>12:01<\/li>\n<li>etc<\/li>\n<\/ul>\n<p>Here&#8217;s what this group configuration would look like in NMC:<\/p>\n<figure id=\"attachment_658\" aria-describedby=\"caption-attachment-658\" style=\"width: 499px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-658\" title=\"Group settings in NMC (1 of 2)\" src=\"http:\/\/nsrd.files.wordpress.com\/2009\/07\/nmc1.png\" alt=\"Group settings in NMC (1 of 2)\" width=\"499\" height=\"335\" srcset=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2009\/07\/nmc1.png 868w, https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2009\/07\/nmc1-300x201.png 300w, https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2009\/07\/nmc1-447x300.png 447w\" sizes=\"auto, (max-width: 499px) 100vw, 499px\" \/><figcaption id=\"caption-attachment-658\" class=\"wp-caption-text\">Group settings in NMC (1 of 2)<\/figcaption><\/figure>\n<p>In the first pane, it looks fairly standard \u2013 setting a start time of 00:01, and enabling autostart. It&#8217;s the second pane where things are a little different:<\/p>\n<figure id=\"attachment_659\" aria-describedby=\"caption-attachment-659\" style=\"width: 499px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-659\" title=\"Group settings in NMC (2 of 2)\" src=\"http:\/\/nsrd.files.wordpress.com\/2009\/07\/nmc2.png\" alt=\"Group settings in NMC (2 of 2)\" width=\"499\" height=\"335\"><figcaption id=\"caption-attachment-659\" class=\"wp-caption-text\">Group settings in NMC (2 of 2)<\/figcaption><\/figure>\n<p>Here, we set the interval to 4 hours, and the restart window to 2 hours.<\/p>\n<p>&#8212;<br \/>\n* I&#8217;m told that there were some &#8216;fun&#8217; numbers used by early NetWorker programmers. E.g., one of the original index checks used to run every ? weeks (or more correctly, every 22\/7 weeks). It&#8217;s possible that the critical situation engineer who told me this may have been pulling my leg however. I <em>do<\/em> think though that given how so many people dislike backups, 03:33 may have been chosen as a start time as a play on 6:66!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For the most part we run standard backups once every 24 hours \u2013 daily. A lot of the time if&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":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[6,16],"tags":[413,494,828,854,936],"class_list":["post-654","post","type-post","status-publish","format-standard","hentry","category-basics","category-networker","tag-group","tag-interval","tag-restart-window","tag-savegroup","tag-start-time"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pKpIN-ay","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/654","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=654"}],"version-history":[{"count":1,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/654\/revisions"}],"predecessor-version":[{"id":7638,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/654\/revisions\/7638"}],"wp:attachment":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/media?parent=654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/categories?post=654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/tags?post=654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}