{"id":135,"date":"2009-02-18T20:11:53","date_gmt":"2009-02-18T09:11:53","guid":{"rendered":"http:\/\/nsrd.wordpress.com\/?p=135"},"modified":"2018-12-12T16:32:00","modified_gmt":"2018-12-12T06:32:00","slug":"basics-commands-you-should-know","status":"publish","type":"post","link":"https:\/\/nsrd.info\/blog\/2009\/02\/18\/basics-commands-you-should-know\/","title":{"rendered":"Basics &#8211; Commands you should know"},"content":{"rendered":"<p>[This is something I&#8217;ll revisit from time to time and update.]<\/p>\n<p>There are some commands you should always be aware of with NetWorker, regardless of whether you like the command line or not. Here&#8217;s some of them:<\/p>\n<pre># nsrim -X<\/pre>\n<p>This does a check of the save sets against volumes \u2013 while the EMC documentation suggests you should only need to run this after a crash, here&#8217;s an alternate policy: you need to run this at least fortnightly, or preferably weekly. (If you are running low on media, or low on space on disk backup units, running nsrim -X can also in a pinch be used to force any recycling that may be ready but ordinarily wouldn&#8217;t be processed until around midnight.)<\/p>\n<pre># nsrck -m<\/pre>\n<p>This performs another style of consistency check on the media database, and corrects errors when they occur. It actually does cumulative repairs, so when you need to run it, you should be prepared to run it up to 3 or 5 times before logging a support call. When do you run it? After a NetWorker crash \u2013 if your server does crash, you really, <em>really<\/em> need to run this command. It should give you <em>no<\/em> output &#8211; if it gives you output, it means there&#8217;s been issues, and you want to run again and see whether all issues have been corrected.<\/p>\n<pre># nsrck -L3<\/pre>\n<p>This is a good mid-level check to run against the indices that can clear up redundant entries and act as a good sanity check against indices. It&#8217;s also a good starting point if you&#8217;re having intermittent backup issues that aren&#8217;t network\/hardware related, and like nsrim -X, it&#8217;s a command I recommend running at least fortnightly, or even weekly.<\/p>\n<p>(All of these commands should be run when there&#8217;s no backup activity.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[This is something I&#8217;ll revisit from time to time and update.] There are some commands you should always be aware&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,20],"tags":[655,661],"class_list":["post-135","post","type-post","status-publish","format-standard","hentry","category-basics","category-networker","category-scripting","tag-nsrck","tag-nsrim"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pKpIN-2b","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/135","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=135"}],"version-history":[{"count":1,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/135\/revisions"}],"predecessor-version":[{"id":7688,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/135\/revisions\/7688"}],"wp:attachment":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/media?parent=135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/categories?post=135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/tags?post=135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}