{"id":10964,"date":"2017-01-09T11:03:26","date_gmt":"2017-01-09T09:03:26","guid":{"rendered":"http:\/\/blog.isnochys.de\/?p=10964"},"modified":"2017-01-09T11:03:26","modified_gmt":"2017-01-09T09:03:26","slug":"fotoarchiv-backup","status":"publish","type":"post","link":"https:\/\/blog.isnochys.de\/?p=10964","title":{"rendered":"Fotoarchiv \/ Backup"},"content":{"rendered":"<p>My Dad has quite the picture collection.<br \/>\n>200000(500 GB) of digital images.<br \/>\nResting on 2 USB harddisks at home.<br \/>\nThat bothered me quite some time.<br \/>\nThose 2 disks are the only backup and for us kids nowhere easy to reach.<\/p>\n<p>So, why not create a solution by myself.<br \/>\nIt has to be cheap, really cheap.<br \/>\nAnd easy to access.<\/p>\n<p>Well, 80\u00e2\u201a\u00ac for 3 TB and 10\u00e2\u201a\u00ac for an <a href=\"https:\/\/www.armbian.com\/orange-pi-zero\/\">Orange Pi<\/a>.<br \/>\n(and my blog server)<br \/>\nThat is all one needs!<\/p>\n<p>First, create 2 Samba shares on the PI:<br \/>\nFotos and Upload.<br \/>\nDad will copy pictures into Upload, from there the PI copies it into the Fotos Share, where he can access them.<br \/>\nFotos is mounted read only, there you go, encryption virus, that could possibly infest my dads PC.<br \/>\nA small script checks every 5 minutes, whether there is new content in upload.<\/p>\n<p>That&#8217;s it!<br \/>\nIt took me 2 Days, to copy all data into that folder and now he has 200k pictures available for all users of his network.<br \/>\n(And he crashed Adobe Lightroom with it;))<\/p>\n<p>And no the hard part:<br \/>\nTake the hardware, duplicate it somewhere.<br \/>\nEvery PI now connects to my server via autossh and some magic portforwarding:<\/p>\n<p><code>autossh -M 20070 -q -f -N -i \/home\/autossh\/.ssh\/id_rsa -o \"ServerAliveInterval 60\" -o \"ServerAliveCountMax 3\" -R 7022:localhost:22 autossh@blog.isnochys.de -R 7888:localhost:8888 -L 8022:localhost:8022<\/code><\/p>\n<p>&#8222;-R 7022:localhost:22&#8220; takes my local ssh port and forwards it to my server as 7022<br \/>\n&#8222;-R 7888:localhost:8888&#8220; takes my local RPi Monitoring port and forwards it to my server as 7888<br \/>\n&#8222;-L 8022:localhost:8022&#8220; takes the remote port 8022 and forwards it to my local port 8022<br \/>\nthis is the important part.<\/p>\n<p>Because now I am able to sshfs from the remote remote PI via port 8022 the share of Fotos to my local mount point.<\/p>\n<p>Next step:<br \/>\nSetup script to rsync \/sshfs\/fotos \/mnt\/fotos<br \/>\nThis is where I am currently &#8222;stuck&#8220;<br \/>\n20 of 500 G transfered, after a weekend of 100k\/s<br \/>\nI will not go higher with the bandwidth as my parents still want to use the internet.<br \/>\n\ud83d\ude09<\/p>\n<p>Major downside so far, it is hard to extend. Further clients need way too much skripting, no plug and play.<br \/>\nMaybe some config file storing on the blog server..idk<\/p>\n<p>Fun fact, I tried torrent, but a 40MB(?) torrent file for all 200k pictures crashed every client I used;)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My Dad has quite the picture collection. >200000(500 GB) of digital images. Resting on 2 USB harddisks at home. That bothered me quite some time. Those 2 disks are the only backup and for us kids nowhere easy to reach. &hellip; <a href=\"https:\/\/blog.isnochys.de\/?p=10964\">Weiterlesen <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":{"iawp_total_views":0,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-10964","post","type-post","status-publish","format-standard","hentry","category-initializing-devchaos"],"_links":{"self":[{"href":"https:\/\/blog.isnochys.de\/index.php?rest_route=\/wp\/v2\/posts\/10964","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.isnochys.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.isnochys.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.isnochys.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.isnochys.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10964"}],"version-history":[{"count":1,"href":"https:\/\/blog.isnochys.de\/index.php?rest_route=\/wp\/v2\/posts\/10964\/revisions"}],"predecessor-version":[{"id":10965,"href":"https:\/\/blog.isnochys.de\/index.php?rest_route=\/wp\/v2\/posts\/10964\/revisions\/10965"}],"wp:attachment":[{"href":"https:\/\/blog.isnochys.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10964"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.isnochys.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10964"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.isnochys.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}