{"id":1527,"date":"2013-12-15T00:21:06","date_gmt":"2013-12-14T22:21:06","guid":{"rendered":"http:\/\/blog.chschmid.com\/?p=1527"},"modified":"2013-12-18T21:34:33","modified_gmt":"2013-12-18T19:34:33","slug":"the-making-of-me-chschmid-com-part-8-backup-strategy","status":"publish","type":"post","link":"https:\/\/blog.chschmid.com\/?p=1527","title":{"rendered":"The Making of me.chschmid.com, Part 8: Backup Strategy"},"content":{"rendered":"<p>Apart from some minor owncloud glitches <a href=\"http:\/\/me.chschmid.com\" target=\"_blank\">me.chschmid.com<\/a> is running pretty smoothly right now. It&#8217;s doing a great job, both as <a title=\"The Making of me.chschmid.com, Part 5: Server Configuration\" href=\"https:\/\/blog.chschmid.com\/?p=1451\" target=\"_blank\">my server<\/a> and <a title=\"The Making of me.chschmid.com, Part 7: Some More Client Software\" href=\"https:\/\/blog.chschmid.com\/?p=1453\" target=\"_blank\">my Desktop replacement<\/a>. But I can&#8217;t guarantee that it will stay that way. Neither can I expect the hard disk drives (HDD) to last forever nor can I guarantee that some idiots won&#8217;t burn down the apartment building by setting their Christmas tree on fire. (Don&#8217;t laugh, it has happened to my sister)<\/p>\n<p><a href=\"https:\/\/blog.chschmid.com\/wp-content\/uploads\/2013\/12\/Burning_Logitech_12.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1532\" alt=\"Burning_Logitech_12\" src=\"https:\/\/blog.chschmid.com\/wp-content\/uploads\/2013\/12\/Burning_Logitech_12.jpg\" width=\"1000\" height=\"370\" srcset=\"https:\/\/blog.chschmid.com\/wp-content\/uploads\/2013\/12\/Burning_Logitech_12.jpg 1000w, https:\/\/blog.chschmid.com\/wp-content\/uploads\/2013\/12\/Burning_Logitech_12-300x111.jpg 300w, https:\/\/blog.chschmid.com\/wp-content\/uploads\/2013\/12\/Burning_Logitech_12-624x230.jpg 624w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a> Used under\u00a0<a href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/3.0\/deed.en\" target=\"_blank\">CC BY-SA 3.0<\/a>, originally by <a href=\"http:\/\/commons.wikimedia.org\/wiki\/User:Diether\" target=\"_blank\">Diether<\/a><\/p>\n<p>So a backup strategy is in inevitable. Now for the first scenario (a dying HDD) people have come up with a solution known as RAID. However that is not what I am doing. For simplicity, I just copy most of my important stuff from one HDD to another once a day. &#8211; Actually the server does this automatically via a <a href=\"http:\/\/en.wikipedia.org\/wiki\/Cron\" target=\"_blank\">cron job<\/a> file \/etc\/cron.d\/cSBackupLocal<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">12 4    * * *    root    \/usr\/local\/bin\/cSBackupLocal.sh;<\/pre>\n<p>which executes a simple rsync script \/usr\/local\/bin\/cSBackupLocal.sh that does<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\"># Backup data from first hard drive (me1) to second hard drive (me2)\r\n\r\n# GIT - My life and stuff\r\nrsync -a --delete \/media\/me1\/git\/   \/media\/me2\/Backup\/git\r\n\r\n# Music - My other life support\r\nrsync -a --delete \/media\/me1\/Music\/ \/media\/me2\/Backup\/Music\r\n\r\n# owncloud\r\nrsync -a --delete \/media\/me1\/ocdata\/ \/media\/me2\/Backup\/ocdata<\/pre>\n<p>The second scenario (house burning down) can not be dealt with that easily. E.g., with the two HDDs that do the mirroring once a day at the same location, a fire would destroy both. So you have to have a copy at some other place.<\/p>\n<p>My most important things (about 20 megs) I have in an encrypted archive that is synced to Dropbox. Things like my <a title=\"Use Keepass or Get Screwed\" href=\"https:\/\/blog.chschmid.com\/?p=1483\" target=\"_blank\">Keepass file<\/a> and Scans of important documents. &#8211; You are right, they might give that file to the NSA or something, but as it is encrypted they&#8217;ll chew on it for a while.<\/p>\n<p>The only viable solution for my more extended remote backup is to have an external hard drive, that I bring for doing a backup every now and then. When it is not plugged into my server for backup it is stored away\u00a0safely somewhere else. &#8211; As in not within a 5 km range of my apartment. Obviously this system has flaws, like if there is a fire the day I do the external backup, I am still screwed. &#8211; But I guess that is as safe as it gets.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apart from some minor owncloud glitches me.chschmid.com is running pretty smoothly right now. It&#8217;s doing a great job, both as my server and my Desktop replacement. But I can&#8217;t guarantee that it will stay that way. Neither can I expect the hard disk drives (HDD) to last forever nor can I guarantee that some idiots [&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":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4],"tags":[19],"class_list":["post-1527","post","type-post","status-publish","format-standard","hentry","category-life_and_stuff","tag-linux"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p15PpI-oD","_links":{"self":[{"href":"https:\/\/blog.chschmid.com\/index.php?rest_route=\/wp\/v2\/posts\/1527","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.chschmid.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.chschmid.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.chschmid.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.chschmid.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1527"}],"version-history":[{"count":7,"href":"https:\/\/blog.chschmid.com\/index.php?rest_route=\/wp\/v2\/posts\/1527\/revisions"}],"predecessor-version":[{"id":1536,"href":"https:\/\/blog.chschmid.com\/index.php?rest_route=\/wp\/v2\/posts\/1527\/revisions\/1536"}],"wp:attachment":[{"href":"https:\/\/blog.chschmid.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1527"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.chschmid.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1527"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.chschmid.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}