{"id":78,"date":"2006-08-09T17:50:30","date_gmt":"2006-08-10T01:50:30","guid":{"rendered":"http:\/\/mike.peay.us\/blog\/?p=78"},"modified":"2006-08-09T17:50:39","modified_gmt":"2006-08-10T01:50:39","slug":"well-that-was-a-stupid-move","status":"publish","type":"post","link":"https:\/\/mike.peay.us\/blog\/archives\/78","title":{"rendered":"Well, that was a stupid move"},"content":{"rendered":"<p>While killing some time between sessions at <a href=\"http:\/\/developer.apple.com\/wwdc\/\" target=\"_blank\">WWDC<\/a>, I saw that my mother-in-law was online so I thought &#8220;Hey! what a good time to back up her data.&#8221; So took but a moment to start a rsync backup that I do of her user directory on her machine to my system at home. To keep things from getting out-of-hand with regards to space, I use the &#8211;delete option which removes any files not in the source directory.<\/p>\n<p>Like <a href=\"http:\/\/mike.peay.us\/blog\/?p=73\" target=\"_blank\">all mistakes<\/a>, they happen because you don&#8217;t pay attention and that is exactly what happened to me. I was in the wrong destination directory and was syncing the files to &#8216;.&#8217; (the current directory) so it happily started deleting files that weren&#8217;t in the source. Unfortunately, I was in my home directory at the time. Once I realized, my mistake, I stopped it but not before it had deleted my mail repository, my website, and my blog (this one).<\/p>\n<p>Fortunately, regardless of my horribly rookie mistake, I also back up my user directory two different ways every day. A few restores later and I had all but a few hours of email restored and the entire website and blog.<\/p>\n<p>Good for me, I guess, but it shouldn&#8217;t have happened in the first place. Lesson learned, use explicit paths.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While killing some time between sessions at WWDC, I saw that my mother-in-law was online so I thought &#8220;Hey! what a good time to back up her data.&#8221; So took but a moment to start a rsync backup that I &hellip; <a href=\"https:\/\/mike.peay.us\/blog\/archives\/78\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":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":"","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":[5,3,2,8,10],"tags":[],"class_list":["post-78","post","type-post","status-publish","format-standard","hentry","category-family","category-geek","category-macintosh","category-thoughts","category-tweaks"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4vft-1g","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mike.peay.us\/blog\/wp-json\/wp\/v2\/posts\/78","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mike.peay.us\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mike.peay.us\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mike.peay.us\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mike.peay.us\/blog\/wp-json\/wp\/v2\/comments?post=78"}],"version-history":[{"count":0,"href":"https:\/\/mike.peay.us\/blog\/wp-json\/wp\/v2\/posts\/78\/revisions"}],"wp:attachment":[{"href":"https:\/\/mike.peay.us\/blog\/wp-json\/wp\/v2\/media?parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mike.peay.us\/blog\/wp-json\/wp\/v2\/categories?post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mike.peay.us\/blog\/wp-json\/wp\/v2\/tags?post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}