{"id":45194,"date":"2020-03-18T00:29:40","date_gmt":"2020-03-18T00:29:40","guid":{"rendered":"https:\/\/www.flubu.com\/blog\/2020\/03\/18\/mistakes-were-made\/"},"modified":"2020-03-18T00:29:40","modified_gmt":"2020-03-18T00:29:40","slug":"mistakes-were-made","status":"publish","type":"post","link":"https:\/\/www.flubu.com\/blog\/2020\/03\/18\/mistakes-were-made\/","title":{"rendered":"Mistakes were made"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"45193\" data-permalink=\"https:\/\/www.flubu.com\/blog\/delete\/\" data-orig-file=\"https:\/\/www.flubu.com\/blog\/wp-content\/uploads\/2020\/03\/delete.gif\" data-orig-size=\"500,300\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"delete.gif\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/www.flubu.com\/blog\/wp-content\/uploads\/2020\/03\/delete.gif\" class=\"wp-image-45193 alignnone size-full\" src=\"https:\/\/www.flubu.com\/blog\/wp-content\/uploads\/2020\/03\/delete.gif\" width=\"500\" height=\"300\" animated-media=\"animated-media\" data-temp-aztec-id=\"0dcbdf7e-53b0-493c-b0cd-01e1e071b741\"><\/p>\n<p>Well fuck.<\/p>\n<p>I&#8217;m one fell swoop, I managed to delete 1.7TB of data from my media streaming PC. I was trying to do something that would save me a few MB, if that, and fix a minor source of irritation. It ended up biting me quite stupendously in the ass.<\/p>\n<p>Note to future self. When using Linux 1-liners,please be wary of positional arguments and always RTFM!<\/p>\n<pre>find \/multimedia -name *.txt -delete<\/pre>\n<p> : removes all text files found under path \/multimedia<\/p>\n<pre>find -delete \/multimedia -name *.txt<\/pre>\n<p> : <b>removes 1.7 TB of data<\/b><\/p>\n<p>From the find(1) man:<\/p>\n<blockquote>\n<p>Warnings: Don&#8217;t forget that the find command line is evaluated as an expression, so putting -delete first will make find try to delete everything below the starting points you specified.<\/p>\n<\/blockquote>\n<p>And then you cry.<\/p>\n<p>But what about your backup, you ask? Well, I do have one, but it&#8217;s 6-month out of date, which is not a major thing, and it&#8217;s also currently in a location that is difficult to access. Alternative measures are being taken to restore the data.<\/p>\n<p>It&#8217;s not a critical loss. I&#8217;ll get most, if not all, the data back. Its just incredibly frustrating and involved a serious sphincter-clench, followed by an Oh-shit-I&#8217;m-stupid moment I could have done without.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Well fuck. I&#8217;m one fell swoop, I managed to delete 1.7TB of data from my media streaming PC. I was trying to do something that would save me a few MB, if that, and fix a minor source of irritation. It ended up biting me quite stupendously in the ass. Note to future self. When&#8230;<\/p>\n<p class=\"more-link-wrap\"><a href=\"https:\/\/www.flubu.com\/blog\/2020\/03\/18\/mistakes-were-made\/\" class=\"more-link\">Read More<span class=\"screen-reader-text\"> &ldquo;Mistakes were made&rdquo;<\/span> &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"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":""},"categories":[1],"tags":[554,24,35,26],"class_list":["post-45194","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-are-we-having-fun-yet","tag-computers-are-evil","tag-ducks","tag-shrill"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3u9vK-bKW","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/posts\/45194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/comments?post=45194"}],"version-history":[{"count":0,"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/posts\/45194\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/media?parent=45194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/categories?post=45194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/tags?post=45194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}