{"id":669,"date":"2011-02-08T09:26:39","date_gmt":"2011-02-08T16:26:39","guid":{"rendered":"http:\/\/jaredrobinson.com\/blog\/?p=669"},"modified":"2011-02-08T09:26:39","modified_gmt":"2011-02-08T16:26:39","slug":"misc-linux-things-pata-or-sata-mutt-and-mailcap-tarsnap-backup","status":"publish","type":"post","link":"https:\/\/jaredrobinson.com\/blog\/misc-linux-things-pata-or-sata-mutt-and-mailcap-tarsnap-backup\/","title":{"rendered":"Misc Linux things: PATA or SATA, mutt and mailcap, tarsnap backup"},"content":{"rendered":"<p>The other day, I wondered whether the drive in my laptop was PATA or SATA. Fortunately, I didn&#8217;t have to tear it apart to find out. I simply wandered over to <a href=\"http:\/\/unix.stackexchange.com\">stackexchange.com<\/a> and asked the question. Here&#8217;s <a href=\"http:\/\/unix.stackexchange.com\/questions\/3898\">the answer<\/a>:<\/p>\n<pre>lspci -d $(cat \/sys\/block\/sda\/device\/..\/..\/..\/vendor):$(cat \/sys\/block\/sda\/device\/..\/..\/..\/device)\r\nreadlink -f \/sys\/block\/sda\/device\/..\/..\/..\/driver<\/pre>\n<p>I&#8217;m a long time user of the mutt email client (as well as Thunderbird). At some point, viewing the HTML attachment (with the &#8216;v&#8217; key) stopped invoking &#8216;lynx&#8217; via my mailcap file. It turns out that the developers of mutt added an internal viewer, and moved mailcap support to the &#8220;m&#8221; key. I took the time to switch from using &#8216;lynx&#8217; to using &#8216;links&#8217;. Here&#8217;s the entry from my $HOME\/.mailcap file:<\/p>\n<pre>text\/html; \/usr\/bin\/links -dump -force-html %s; copiousoutput; nametemplate=%s.html<\/pre>\n<p>I&#8217;ve been gradually looking for an online, off-site Linux backup tool for\u00a0 the past few years. I tried <a href=\"https:\/\/spideroak.com\/\">spideroak<\/a>, but wasn&#8217;t pleased with the giant log files it kept in my home directory, and it wasn&#8217;t designed to back up files outside of my user account. Lately, I stumbled on another promising tool: <a href=\"https:\/\/www.tarsnap.com\">tarsnap<\/a>. I haven&#8217;t tried it yet, but I will. Pricing looks reasonable, and since it &#8220;deduplicates&#8221; storage, it means that I shouldn&#8217;t be backing up the same thing repeatedly. <a href=\"http:\/\/www.bishnet.net\/tim\/blog\/2009\/01\/28\/automating-tarsnap-backups\/\">Here&#8217;s how<\/a> one person configures tarsnap to keep up to X daily backups, Y weekly, and Z monthly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The other day, I wondered whether the drive in my laptop was PATA or SATA. Fortunately, I didn&#8217;t have to tear it apart to find out. I simply wandered over to stackexchange.com and asked the question. Here&#8217;s the answer: lspci -d $(cat \/sys\/block\/sda\/device\/..\/..\/..\/vendor):$(cat \/sys\/block\/sda\/device\/..\/..\/..\/device) readlink -f \/sys\/block\/sda\/device\/..\/..\/..\/driver I&#8217;m a long time user of the mutt &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/jaredrobinson.com\/blog\/misc-linux-things-pata-or-sata-mutt-and-mailcap-tarsnap-backup\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Misc Linux things: PATA or SATA, mutt and mailcap, tarsnap backup&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,17],"tags":[],"class_list":["post-669","post","type-post","status-publish","format-standard","hentry","category-linux","category-tech"],"_links":{"self":[{"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/posts\/669","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/comments?post=669"}],"version-history":[{"count":3,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/posts\/669\/revisions"}],"predecessor-version":[{"id":672,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/posts\/669\/revisions\/672"}],"wp:attachment":[{"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/media?parent=669"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/categories?post=669"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/tags?post=669"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}