{"id":127,"date":"2009-02-16T19:10:26","date_gmt":"2009-02-16T08:10:26","guid":{"rendered":"http:\/\/nsrd.wordpress.com\/?p=127"},"modified":"2018-12-12T16:32:57","modified_gmt":"2018-12-12T06:32:57","slug":"basics-changing-saveset-browseretention-times","status":"publish","type":"post","link":"https:\/\/nsrd.info\/blog\/2009\/02\/16\/basics-changing-saveset-browseretention-times\/","title":{"rendered":"Basics &#8211; Changing saveset browse\/retention times"},"content":{"rendered":"<p>Ever need to adjust the browse\/retention time for a saveset, but you&#8217;ve not been sure how to do so? Here&#8217;s how.<\/p>\n<p>To change the browse or retention time, you&#8217;ll need to find out the saveset ID (SSID) of the given saveset. This can be done with mminfo.<\/p>\n<p>For instance, say you had a backup done last night of a machine called &#8216;archon&#8217; that has now been rebuilt, but you want to keep the old backup for much longer than normal &#8211; e.g., ten years instead of the normal 3.<\/p>\n<p>First, to find out what you need to change, get a list of the SSIDs:<\/p>\n<pre># mminfo -q \"client=archon,savetime&gt;=24 hours ago\" -r name,ssid\n name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ssid\n\/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4036558666\n\/Volumes\/TARDIS\/Yojimbo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4019781450\n\/Volumes\/Yu&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4003004234<\/pre>\n<p>(If you&#8217;re confused about that savetime command, see my other post here.)<\/p>\n<p>Now, for each of those SSIDs that are returned, we&#8217;ll run a nsrmm command to adjust the browse and retention time*.<\/p>\n<p>The basic nsrmm command for adjusting the browse and retention time is:<\/p>\n<pre># nsrmm -S ssid -w browse -e retent<\/pre>\n<p>or, for a single instance of a saveset:<\/p>\n<pre># nsrmm -S ssid\/cloneid -w browse -e retent<\/pre>\n<p>Where the &#8216;browse&#8217; and &#8216;retent&#8217; values can be either one of the two following:<\/p>\n<ul>\n<li>A literal date in US date format ** \u2013 e.g., &#8220;12\/31\/2019&#8221; for 31 December 2019.<\/li>\n<li>A &#8216;fuzzy&#8217; english worded date \u2013 e.g., &#8220;+10 years&#8221; for 10 years from today.<\/li>\n<\/ul>\n<p>Note that (rather obviously), your browse time cannot exceed your retention time, and generally its recommended that you set browse time to retention time.<\/p>\n<p>So in this case, you&#8217;d run for each SSID or SSID\/CloneID you want to affect:<\/p>\n<pre># nsrmm -S ssid -w \"+10 years\" -e \"+10 years\"<\/pre>\n<p>Which will look like the following, based on my mminfo output:<\/p>\n<pre># nsrmm -S 4036558666 -w \"+10 years\" -e \"+10 years\"\n# nsrmm -S 4019781450 -w \"+10 years\" -e \"+10 years\"\n# nsrmm -S 4003004234 -w \"+10 years\" -e \"+10 years\"<\/pre>\n<p>It&#8217;s that simple.<\/p>\n<p>&#8212;<br \/>\n* You can also do this against an instance of a saveset by using the SSID\/Clone ID; to do that variant, request &#8220;-r name,ssid,cloneid&#8221;, then use the two numbers in the nsrmm command separated by a forward slash &#8211; ssid\/cloneid.<\/p>\n<p>** The restriction on US date format may have eased in 7.5. I&#8217;m going to do some additional playing around with locales sometime soonish.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ever need to adjust the browse\/retention time for a saveset, but you&#8217;ve not been sure how to do so? Here&#8217;s&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":[1243,178,1249,830,856],"class_list":["post-127","post","type-post","status-publish","format-standard","hentry","category-basics","category-networker","tag-basics","tag-browse","tag-networker","tag-retention","tag-saveset"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pKpIN-23","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/127","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=127"}],"version-history":[{"count":1,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/127\/revisions"}],"predecessor-version":[{"id":7690,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/127\/revisions\/7690"}],"wp:attachment":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/media?parent=127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/categories?post=127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/tags?post=127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}