{"id":1469,"date":"2020-01-23T16:29:24","date_gmt":"2020-01-23T05:29:24","guid":{"rendered":"https:\/\/jandmf.com\/?p=1469"},"modified":"2020-05-24T20:20:04","modified_gmt":"2020-05-24T10:20:04","slug":"the-importance-of-backups","status":"publish","type":"post","link":"https:\/\/jandmf.com\/index.php\/2020\/01\/23\/the-importance-of-backups\/","title":{"rendered":"The importance of backups"},"content":{"rendered":"<div id=\"pl-1469\"  class=\"panel-layout\" ><div id=\"pg-1469-0\"  class=\"panel-grid panel-no-style\" ><div id=\"pgc-1469-0-0\"  class=\"panel-grid-cell\" ><div id=\"panel-1469-0-0-0\" class=\"so-panel widget_text panel-first-child panel-last-child\" data-index=\"0\" ><h3 class=\"widget-title\">What happens when it all goes pear shape<\/h3>\t\t\t<div class=\"textwidget\"><p>A couple of days ago we had a small power &#8220;glitch&#8221; here. Apart from the microwave clock going back to zero and the TV going off the Raspberry Pi that this site runs on went down.<\/p>\n<p>When I powered it back up I found that my WordPress site was devoid of content. Further panic stricken investigation revealed that the &#8220;wp_posts&#8221; table in the database had a corrupt index. After much gnashing of teeth, googling and experimenting (after taking a copy of course) I was unable to fix the problem.<\/p>\n<p>What to do ? Well I bit the bullet and restored a backup I&#8217;d take about a week earlier using the &#8220;Updraft&#8221; plugin. Apart from losing a week&#8217;s worth of content all was well. And this is where good fortune stepped in.<\/p>\n<p>During the couple of hours before the power glitch I&#8217;d been messing around putting an &#8220;RSS Subscribe&#8221; in the side bar and testing it on my iPhone. It proved to work well too so on a whim I had a look at the RSS on my phone and it had handily retained all of the content from this site so I was able to e-mail it to myself. From there it was a simple matter to copy and paste the content to the recreated posts. Whew.<\/p>\n<p>The only thing that I lost was about a week&#8217;s worth of stats from &#8220;WP Statistics&#8221; plugin. I can live with that but I&#8217;d rather that I didn&#8217;t have to though.<\/p>\n<\/div>\n\t\t<\/div><\/div><\/div><div id=\"pg-1469-1\"  class=\"panel-grid panel-no-style\" ><div id=\"pgc-1469-1-0\"  class=\"panel-grid-cell\" ><div id=\"panel-1469-1-0-0\" class=\"so-panel widget_text panel-first-child panel-last-child\" data-index=\"1\" ><h3 class=\"widget-title\">OK so I was lucky<\/h3>\t\t\t<div class=\"textwidget\"><p>So, this time I was lucky ! I only lost a very minimal amount of stuff. The stats and the configuration for Google AdSense.<\/p>\n<p>As a retired large system administrator I know full well the importance of good backups. I wasn&#8217;t taking them on a regular basis because &#8220;what could possibly go wrong&#8221;.<\/p>\n<p>I&#8217;m now using a Linux backup package for the whole Pi and I&#8217;ve scheduled a backup of WordPress once a day. As well as that I&#8217;m taking an Updraft backup right atfer I do anything of any note to WordPress or the system as a whole.<\/p>\n<\/div>\n\t\t<\/div><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>A couple of days ago we had a small power &#8220;glitch&#8221; here. Apart from the microwave clock going back to zero and the TV going off the Raspberry Pi that this site runs on went down. When I powered it back up I found that my WordPress site was devoid of content. Further panic stricken &hellip; <a href=\"https:\/\/jandmf.com\/index.php\/2020\/01\/23\/the-importance-of-backups\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;The importance of backups&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[53],"tags":[],"class_list":["post-1469","post","type-post","status-publish","format-standard","hentry","category-pi"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/posts\/1469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/comments?post=1469"}],"version-history":[{"count":3,"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/posts\/1469\/revisions"}],"predecessor-version":[{"id":2349,"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/posts\/1469\/revisions\/2349"}],"wp:attachment":[{"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/media?parent=1469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/categories?post=1469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/tags?post=1469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}