{"id":2180,"date":"2010-04-19T07:05:12","date_gmt":"2010-04-18T21:05:12","guid":{"rendered":"http:\/\/nsrd.info\/blog\/?p=2180"},"modified":"2018-12-11T18:45:36","modified_gmt":"2018-12-11T08:45:36","slug":"basics-skip-and-forget","status":"publish","type":"post","link":"https:\/\/nsrd.info\/blog\/2010\/04\/19\/basics-skip-and-forget\/","title":{"rendered":"Basics &#8211; Skip and Forget"},"content":{"rendered":"<p>For quite a while I worked under the assumption that you could do the following with directives in NetWorker:<\/p>\n<pre>&lt;&lt; \/path &gt;&gt;\n+skip: *.mp3\n&lt;&lt; \/path\/subpath\/criticalpath &gt;&gt;\nforget<\/pre>\n<p>The logic of this is that it should be possible to skip files in one directory, but forget that directive in a lower directory and thus be able to still backup files matching a particular criteria in a subpath.<\/p>\n<p>Recent discussions on the NetWorker mailing list left me questioning whether I was correct in my assumption. I thought I&#8217;d tested it long ago, but the discussions on the list (and the tests that I did) seemed to indicate this wasn&#8217;t the way NetWorker worked.<\/p>\n<p>It turns out I was testing incorrectly. Instead of testing with an exact specification such as the above, I was testing &#8220;lazily&#8221;:<\/p>\n<pre>&lt;&lt; \/path &gt;&gt;\n+skip: *\n&lt;&lt; \/path\/subpath\/criticalpath &gt;&gt;\nforget<\/pre>\n<p>The mistake that I made was in the &#8220;*&#8221; vs the &#8220;*.mp3&#8221; I should have been testing my use case scenario. In short:<\/p>\n<ul>\n<li>Obviously skipping &#8220;*&#8221; will result in NetWorker determining that <em>everything<\/em> is being skipped, at which point there is no need to continue to traverse any directory path beneath the point in which the &#8220;skip *&#8221; is encountered.<\/li>\n<li>However, if just skipping a particular pattern, then NetWorker will have to continue to traverse all subdirectories from the path it encounters the skip command, meaning that the <em>forget<\/em> directive will still be honoured at a deeper directory path.<\/li>\n<\/ul>\n<p>So I wasn&#8217;t wrong about my long-term belief, I just tested incorrectly.<\/p>\n<p>This does mean that you can use skip, followed by forget, so long as your skip isn&#8217;t too open in its selection criteria.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For quite a while I worked under the assumption that you could do the following with directives in NetWorker: &lt;&lt;&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":[325,390,895],"class_list":["post-2180","post","type-post","status-publish","format-standard","hentry","category-basics","category-networker","tag-directives","tag-forget","tag-skip"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pKpIN-za","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/2180","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=2180"}],"version-history":[{"count":1,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/2180\/revisions"}],"predecessor-version":[{"id":7561,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/2180\/revisions\/7561"}],"wp:attachment":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/media?parent=2180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/categories?post=2180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/tags?post=2180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}