{"id":517,"date":"2018-11-16T16:31:40","date_gmt":"2018-11-16T15:31:40","guid":{"rendered":"https:\/\/www.pihub.nl\/?p=517"},"modified":"2018-11-16T18:31:39","modified_gmt":"2018-11-16T17:31:39","slug":"backups","status":"publish","type":"post","link":"https:\/\/www.pihub.nl\/?p=517","title":{"rendered":"Backups!"},"content":{"rendered":"<p>Backups are important, Always!<!--more--><\/p>\n<p>To make sure that i have a backup that is &#8220;offsite&#8221;, i&#8217;ve implemented a solution that makes use of the owncloud server that is running on this Pi.<\/p>\n<p>First of all, i&#8217;m mysqldumping all the databases on the Pi in an ownCloud upload folder<br \/>\nNext, the website files are tarred into that ownCloud upload folder.<br \/>\nofcourse, the \/etc \/root and \/boot folders may come in handy as well, so they are also tarred into that ownCloud upload folder.<\/p>\n<p>Next, i run :<br \/>\n#sudo -u www-data php occ files:scan &#8211;all<br \/>\nthis will insert the files directly from the command line in my ownCloud instance, and my configured desktop (Windows) will automatically download these files to have a backup outside of the Raspberry pi disks.<\/p>\n<p>This howto will be described in more detail on the <a href=\"https:\/\/www.pihub.nl\/mediawiki\/index.php?title=Free_backup_solution_for_your_PI&amp;action=edit&amp;redlink=1\">WIKI<\/a> later on.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Backups are important, Always!<\/p>\n","protected":false},"author":1,"featured_media":525,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[6],"tags":[],"class_list":["post-517","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogposts"],"_links":{"self":[{"href":"https:\/\/www.pihub.nl\/index.php?rest_route=\/wp\/v2\/posts\/517","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pihub.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pihub.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pihub.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pihub.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=517"}],"version-history":[{"count":1,"href":"https:\/\/www.pihub.nl\/index.php?rest_route=\/wp\/v2\/posts\/517\/revisions"}],"predecessor-version":[{"id":518,"href":"https:\/\/www.pihub.nl\/index.php?rest_route=\/wp\/v2\/posts\/517\/revisions\/518"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pihub.nl\/index.php?rest_route=\/wp\/v2\/media\/525"}],"wp:attachment":[{"href":"https:\/\/www.pihub.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pihub.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pihub.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}