{"id":9485,"date":"2020-05-19T08:32:38","date_gmt":"2020-05-18T22:32:38","guid":{"rendered":"https:\/\/nsrd.info\/blog\/?p=9485"},"modified":"2020-05-19T08:32:41","modified_gmt":"2020-05-18T22:32:41","slug":"basics-showing-networker-dependencies","status":"publish","type":"post","link":"https:\/\/nsrd.info\/blog\/2020\/05\/19\/basics-showing-networker-dependencies\/","title":{"rendered":"Basics \u2013\u00a0Showing NetWorker Dependencies"},"content":{"rendered":"\n<p>This well and truly falls into the &#8220;old dog learns new trick&#8221; category. <\/p>\n\n\n\n<p>During a discussion last week about how NetWorker tracks dependencies (a topic <strong><a aria-label=\"near to my heart (opens in a new tab)\" href=\"https:\/\/youtu.be\/ooVxr4KivrE\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"aioseop-link\">near to my heart<\/a><\/strong>), someone mentioned a way to get NetWorker to quickly show dependencies between savesets using <em>nsrim<\/em>. This is something I&#8217;d never known about! Instead, in the past, I&#8217;d built my own scripts\/utilities to let me display dependency trees for backup chains. It turns out all that effort was unnecessary.<\/p>\n\n\n\n<p>The trick, it seems, is to get nsrim to run a check for a client in verbose mode, but so that you don&#8217;t modify what you&#8217;re looking at, you use the -n option to merely display information.<\/p>\n\n\n\n<p>Here&#8217;s what the command and output looks like:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ <strong>nsrim -nv -c abydos<\/strong>\n62172:nsrim: nsrim has started at Sun May 10 16:55:56 2020.\n86069:nsrim: Processing 1 clients\nabydos.turbamentis.int:\/, 10 browsable cycle(s)\n4234382534&nbsp; 3\/07\/20&nbsp; f &nbsp; &nbsp; 165375 files 7086 MB browse\n2237980231&nbsp; 3\/08\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 145 files&nbsp; 178 MB browse\n&nbsp;694562759&nbsp; 3\/09\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 131 files&nbsp; 181 MB browse\n3731325255&nbsp; 3\/10\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 135 files&nbsp; 183 MB browse\n2590560967&nbsp; 3\/11\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 135 files&nbsp; 176 MB browse\n1399465031&nbsp; 3\/12\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 128 files&nbsp; 122 MB browse\n&nbsp;275477959&nbsp; 3\/13\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 135 files&nbsp; 131 MB browse\n4251764551&nbsp; 3\/14\/20&nbsp; f &nbsp; &nbsp; 165375 files 7085 MB browse\n3077445831&nbsp; 3\/15\/20&nbsp; i &nbsp; &nbsp; &nbsp; 2325 files&nbsp; 679 MB browse\n1953458759&nbsp; 3\/16\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 129 files&nbsp; 123 MB browse\n&nbsp;795917255&nbsp; 3\/17\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 139 files&nbsp; 182 MB browse\n3933343047&nbsp; 3\/18\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 137 files&nbsp; 174 MB browse\n2809355975&nbsp; 3\/19\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 131 files&nbsp; 177 MB browse\n1668591687&nbsp; 3\/20\/20&nbsp; i&nbsp; &nbsp; &nbsp; 66261 files&nbsp; 938 MB browse\n&nbsp;645267910&nbsp; 3\/21\/20&nbsp; f &nbsp; &nbsp; 165385 files 7088 MB browse\n3799470918&nbsp; 3\/22\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 145 files&nbsp; 179 MB browse\n2625152199&nbsp; 3\/23\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 134 files&nbsp; 181 MB browse\n1501165127&nbsp; 3\/24\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 132 files&nbsp; 184 MB browse\n&nbsp;343623622&nbsp; 3\/25\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 134 files&nbsp; 177 MB browse\n3447494982&nbsp; 3\/26\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 132 files&nbsp; 171 MB browse\n2306730695&nbsp; 3\/27\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 140 files&nbsp; 183 MB browse\n3716103239&nbsp; 3\/28\/20&nbsp; f &nbsp; &nbsp; 165385 files 7087 MB browse\n2625670599&nbsp; 3\/29\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 141 files&nbsp; 177 MB browse\n1468129096&nbsp; 3\/30\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 137 files&nbsp; 180 MB browse\n3598921927&nbsp; 3\/31\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 139 files&nbsp; 183 MB browse\n2542043719&nbsp; 4\/01\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 146 files&nbsp; 182 MB browse\n1418056647&nbsp; 4\/02\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 141 files&nbsp; 178 MB browse\n&nbsp;243737928&nbsp; 4\/03\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 140 files&nbsp; 181 MB browse\n3347609287&nbsp; 4\/04\/20&nbsp; f &nbsp; &nbsp; 165385 files 7085 MB browse\n2072595685&nbsp; 4\/05\/20&nbsp; i &nbsp; &nbsp; &nbsp; 6013 files&nbsp; 490 MB browse\n1351177113&nbsp; 4\/05\/20&nbsp; i &nbsp; &nbsp; &nbsp; &nbsp; 27 files 3965 KB browse\n&nbsp;915002967&nbsp; 4\/05\/20&nbsp; i &nbsp; &nbsp; &nbsp; &nbsp; 37 files 5891 KB browse\n&nbsp;176837958&nbsp; 4\/06\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 128 files&nbsp; 178 MB browse\n3465226198&nbsp; 4\/06\/20&nbsp; i &nbsp; &nbsp; &nbsp; &nbsp; 37 files 8654 KB browse\n2391570775&nbsp; 4\/07\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 136 files&nbsp; 188 MB browse\n1116588759&nbsp; 4\/08\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 136 files&nbsp; 185 MB browse\n4237237335&nbsp; 4\/09\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 143 files&nbsp; 180 MB browse\n2928684836&nbsp; 4\/10\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 134 files&nbsp; 124 MB browse\n2375052763&nbsp; 4\/10\/20&nbsp; i &nbsp; &nbsp; &nbsp; &nbsp; 26 files 9544 KB browse\n1133625175&nbsp; 4\/11\/20&nbsp; f &nbsp; &nbsp; 171130 files 7185 MB browse\n4187164886&nbsp; 4\/12\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 143 files&nbsp; 130 MB browse\n2979291735&nbsp; 4\/13\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 135 files&nbsp; 178 MB browse\n1804973015&nbsp; 4\/14\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 134 files&nbsp; 181 MB browse\n&nbsp;664208727&nbsp; 4\/15\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 128 files&nbsp; 127 MB browse\n3734525655&nbsp; 4\/16\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 132 files&nbsp; 130 MB browse\n2509875287&nbsp; 4\/17\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 132 files&nbsp; 179 MB browse\n1302002139&nbsp; 4\/18\/20&nbsp; f &nbsp; &nbsp; 171134 files 7186 MB browse\n&nbsp;144460630&nbsp; 4\/19\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 143 files&nbsp; 185 MB browse\n3214777558&nbsp; 4\/20\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 135 files&nbsp; 123 MB browse\n2006904408&nbsp; 4\/21\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 131 files&nbsp; 180 MB browse\n&nbsp;815808470&nbsp; 4\/22\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 130 files&nbsp; 182 MB browse\n3902902614&nbsp; 4\/23\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 129 files&nbsp; 128 MB browse\n2644697815&nbsp; 4\/24\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 139 files&nbsp; 180 MB browse\n1470379094&nbsp; 4\/25\/20&nbsp; f &nbsp; &nbsp; 171134 files 7186 MB browse\n&nbsp;279283158&nbsp; 4\/26\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 141 files&nbsp; 182 MB browse\n3316045654&nbsp; 4\/27\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 136 files&nbsp; 185 MB browse\n2124949718&nbsp; 4\/28\/20&nbsp; i&nbsp; &nbsp; &nbsp; 90546 files 1863 MB browse\n1000962646&nbsp; 4\/29\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 140 files&nbsp; 181 MB browse\n3668626391&nbsp; 4\/30\/20&nbsp; i &nbsp; &nbsp; &nbsp; 5878 files&nbsp; 787 MB browse\n2477530458&nbsp; 5\/01\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 141 files&nbsp; 179 MB browse\n1303211735&nbsp; 5\/02\/20&nbsp; f &nbsp; &nbsp; 171578 files 7200 MB browse\n&nbsp; 95338583&nbsp; 5\/03\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 139 files&nbsp; 127 MB browse\n3199209943&nbsp; 5\/04\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 137 files&nbsp; 186 MB browse\n2024891228&nbsp; 5\/05\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 130 files&nbsp; 179 MB browse\n&nbsp;817018071&nbsp; 5\/06\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 136 files&nbsp; 182 MB browse\n3853780567&nbsp; 5\/07\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 138 files&nbsp; 184 MB browse\n2662684631&nbsp; 5\/08\/20&nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; 133 files&nbsp; 187 MB browse\n1505143127&nbsp; 5\/09\/20&nbsp; f &nbsp; &nbsp; 171577 files 7198 MB browse\n1861273 browsable files of 1861273 total, 84 GB recoverable of 84 GB total<\/pre>\n\n\n\n<p>I love the simplicity of this \u2013 that&#8217;s your dependency chain list just printed, one line after the other. The backups are listed in date order allowing you to readily see which backups depend on prior backups.<\/p>\n\n\n\n<p>Remember, being able to map out dependency chains in NetWorker is a great way to answer that question, <em>why aren&#8217;t my backups recycling?<\/em> Other questions, too, but in particular for anyone who grew up with tape, understanding where long dependency chains were building up because of say, a failed full backup has always been an essential activity. <\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>Hey, I&#8217;ve just had a new book published! <strong><a href=\"https:\/\/nsrd.info\/blog\/2020\/05\/12\/data-protection-ensuring-data-availability-2nd-edition\/\" class=\"aioseop-link\">You can check it out, here<\/a><\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This well and truly falls into the &#8220;old dog learns new trick&#8221; category. During a discussion last week about how&hellip;<\/p>\n","protected":false},"author":1,"featured_media":9486,"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":[6,16,20],"tags":[219,313,314,1249],"class_list":["post-9485","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-basics","category-networker","category-scripting","tag-cli","tag-dependencies","tag-dependency","tag-networker"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2020\/05\/bigstock-Knight-Postcard.jpg","jetpack_shortlink":"https:\/\/wp.me\/pKpIN-2sZ","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/9485","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=9485"}],"version-history":[{"count":4,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/9485\/revisions"}],"predecessor-version":[{"id":9501,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/9485\/revisions\/9501"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/media\/9486"}],"wp:attachment":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/media?parent=9485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/categories?post=9485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/tags?post=9485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}