{"id":1814,"date":"2020-03-02T12:31:07","date_gmt":"2020-03-02T17:31:07","guid":{"rendered":"http:\/\/newmediaproduction.mynmi.net\/?page_id=1814"},"modified":"2020-03-02T12:31:07","modified_gmt":"2020-03-02T17:31:07","slug":"backing-up-wordpress","status":"publish","type":"page","link":"https:\/\/nmi.cool\/webdev\/backing-up-wordpress\/","title":{"rendered":"Backing up WordPress"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"2100\" height=\"1400\" src=\"https:\/\/nmi.cool\/newmediaproduction\/wp-content\/uploads\/sites\/14\/2020\/03\/photo-1562414962-a6b4f966070d.jpeg\" alt=\"\" class=\"wp-image-1819\" srcset=\"https:\/\/nmi.cool\/webdev\/wp-content\/uploads\/sites\/14\/2020\/03\/photo-1562414962-a6b4f966070d.jpeg 2100w, https:\/\/nmi.cool\/webdev\/wp-content\/uploads\/sites\/14\/2020\/03\/photo-1562414962-a6b4f966070d-300x200.jpeg 300w, https:\/\/nmi.cool\/webdev\/wp-content\/uploads\/sites\/14\/2020\/03\/photo-1562414962-a6b4f966070d-1024x683.jpeg 1024w, https:\/\/nmi.cool\/webdev\/wp-content\/uploads\/sites\/14\/2020\/03\/photo-1562414962-a6b4f966070d-768x512.jpeg 768w, https:\/\/nmi.cool\/webdev\/wp-content\/uploads\/sites\/14\/2020\/03\/photo-1562414962-a6b4f966070d-1536x1024.jpeg 1536w, https:\/\/nmi.cool\/webdev\/wp-content\/uploads\/sites\/14\/2020\/03\/photo-1562414962-a6b4f966070d-2048x1365.jpeg 2048w\" sizes=\"auto, (max-width: 2100px) 100vw, 2100px\" \/><figcaption>Photo by <a href=\"https:\/\/unsplash.com\/photos\/5yEiCUynJ9w\">Markus Spiske<\/a><\/figcaption><\/figure>\n\n\n\n<p>Because a) we&#8217;ll be doing all of our WordPress work on our server, not locally in this class and b) WordPress isn&#8217;t just a set of files, but a set of files <em>plus<\/em> a database, it&#8217;s important to back up WordPress.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Server-side back-ups<\/h2>\n\n\n\n<p>Because Reclaim Hosting is a nice company to work with, our WordPress <a href=\"https:\/\/nmi.cool\/webdev\/wordpress-starter-steps\/\">starter steps<\/a> should automatically configured server-side back-ups. However, it&#8217;s always a good idea to verify that your backups are working as intended. To do so, log in to your account at Reclaim Hosting, visit your cPanel, and click on WordPress. On that screen, click on the wrench icon:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"2008\" height=\"1650\" src=\"https:\/\/nmi.cool\/newmediaproduction\/wp-content\/uploads\/sites\/14\/2020\/03\/Screen-Shot-2020-03-02-at-12.03.38-PM.png\" alt=\"Screenshot of Installatron\" class=\"wp-image-1820\" srcset=\"https:\/\/nmi.cool\/webdev\/wp-content\/uploads\/sites\/14\/2020\/03\/Screen-Shot-2020-03-02-at-12.03.38-PM.png 2008w, https:\/\/nmi.cool\/webdev\/wp-content\/uploads\/sites\/14\/2020\/03\/Screen-Shot-2020-03-02-at-12.03.38-PM-300x247.png 300w, https:\/\/nmi.cool\/webdev\/wp-content\/uploads\/sites\/14\/2020\/03\/Screen-Shot-2020-03-02-at-12.03.38-PM-1024x841.png 1024w, https:\/\/nmi.cool\/webdev\/wp-content\/uploads\/sites\/14\/2020\/03\/Screen-Shot-2020-03-02-at-12.03.38-PM-768x631.png 768w, https:\/\/nmi.cool\/webdev\/wp-content\/uploads\/sites\/14\/2020\/03\/Screen-Shot-2020-03-02-at-12.03.38-PM-1536x1262.png 1536w\" sizes=\"auto, (max-width: 2008px) 100vw, 2008px\" \/><\/figure>\n\n\n\n<p>On the next screen, scroll down and verify that back-ups are enabled on a reasonable schedule, such as 1 weekly + 1 monthly:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"2008\" height=\"1650\" src=\"https:\/\/nmi.cool\/newmediaproduction\/wp-content\/uploads\/sites\/14\/2020\/03\/Screen-Shot-2020-03-02-at-12.05.05-PM.png\" alt=\"Installatron backup screen:\" class=\"wp-image-1821\" srcset=\"https:\/\/nmi.cool\/webdev\/wp-content\/uploads\/sites\/14\/2020\/03\/Screen-Shot-2020-03-02-at-12.05.05-PM.png 2008w, https:\/\/nmi.cool\/webdev\/wp-content\/uploads\/sites\/14\/2020\/03\/Screen-Shot-2020-03-02-at-12.05.05-PM-300x247.png 300w, https:\/\/nmi.cool\/webdev\/wp-content\/uploads\/sites\/14\/2020\/03\/Screen-Shot-2020-03-02-at-12.05.05-PM-1024x841.png 1024w, https:\/\/nmi.cool\/webdev\/wp-content\/uploads\/sites\/14\/2020\/03\/Screen-Shot-2020-03-02-at-12.05.05-PM-768x631.png 768w, https:\/\/nmi.cool\/webdev\/wp-content\/uploads\/sites\/14\/2020\/03\/Screen-Shot-2020-03-02-at-12.05.05-PM-1536x1262.png 1536w\" sizes=\"auto, (max-width: 2008px) 100vw, 2008px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Local back-ups<\/h2>\n\n\n\n<p>Completing the above steps to verify that your remote, server-side backups are working is a great first step. But, it&#8217;s not sufficient. If something goes wrong with your server, you&#8217;ll have no way to restore your WordPress site. <\/p>\n\n\n\n<p>(The thing that most frequently goes wrong with student servers, by the way? Forgetting to renew your hosting after your initial year passes. Reclaim Hosting is a great company, but they&#8217;re not a charity, and all the data on your server <em>will<\/em> be deleted if you don&#8217;t pay annually for hosting.)<\/p>\n\n\n\n<p>Thankfully, simple tools exist for creating remote back-ups of a WordPress site. A great one is <a href=\"https:\/\/wordpress.org\/plugins\/all-in-one-wp-migration\/\">All-in-One WP Migration<\/a>. Though billed as a migration tool (for moving a WordPress install from one place to another), it&#8217;s also a great back-up tool.<\/p>\n\n\n\n<p>Install and activate it as you would any other plugin. Then, once it&#8217;s active, click on it in the menu bar and select Export To &gt; File:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"2008\" height=\"1650\" src=\"https:\/\/nmi.cool\/newmediaproduction\/wp-content\/uploads\/sites\/14\/2020\/03\/Screen-Shot-2020-03-02-at-12.24.59-PM.png\" alt=\"All-in-One WP Migration Export Settings\" class=\"wp-image-1824\" srcset=\"https:\/\/nmi.cool\/webdev\/wp-content\/uploads\/sites\/14\/2020\/03\/Screen-Shot-2020-03-02-at-12.24.59-PM.png 2008w, https:\/\/nmi.cool\/webdev\/wp-content\/uploads\/sites\/14\/2020\/03\/Screen-Shot-2020-03-02-at-12.24.59-PM-300x247.png 300w, https:\/\/nmi.cool\/webdev\/wp-content\/uploads\/sites\/14\/2020\/03\/Screen-Shot-2020-03-02-at-12.24.59-PM-1024x841.png 1024w, https:\/\/nmi.cool\/webdev\/wp-content\/uploads\/sites\/14\/2020\/03\/Screen-Shot-2020-03-02-at-12.24.59-PM-768x631.png 768w, https:\/\/nmi.cool\/webdev\/wp-content\/uploads\/sites\/14\/2020\/03\/Screen-Shot-2020-03-02-at-12.24.59-PM-1536x1262.png 1536w\" sizes=\"auto, (max-width: 2008px) 100vw, 2008px\" \/><\/figure>\n\n\n\n<p>Wait a bit, then click the obnoxiously bouncing Download button when the file&#8217;s ready and store the .wpress file somewhere safe.<a href=\"#footnote-1-1814\" id=\"note-1-1814\" rel=\"footnote\">1<\/a><\/p>\n\n\n\n<p>You&#8217;ll want to repeat this process periodically, especially after you&#8217;ve made major changes or addition to your site.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Restoring<\/h3>\n\n\n\n<p>Should you find yourself in the position of needing to restore from a All-in-One WP Migration backup, get your new WordPress install <a href=\"https:\/\/nmi.cool\/webdev\/wordpress-starter-steps\/\">up and running<\/a>, install the plugin as above, and this time choose Import, and upload the .wpress file you exported earlier.<\/p>\n\n\n\n<p>If you run into error messages about file size, download and activate the Basic plugin <a href=\"https:\/\/import.wp-migration.com\">here<\/a>, and you should be good to go.<\/p>\n\n\n\n<p>Hey, an Easter egg! Good job! Send me a DM in Slack with a picture of the vegetable that you hate the most! <\/p>\n<div class=\"footnotes\"><hr \/><ol><li id=\"footnote-1-1814\" class=\"footnote\"><p>You are backing up your local machine, too, right? ?<a href=\"#note-1-1814\" class=\"footnote-return\">&#8617;<\/a><\/p><\/li><!--\/#footnote-1.footnote--><\/ol><\/div><!--\/#footnotes-->","protected":false},"excerpt":{"rendered":"<p>Because a) we&#8217;ll be doing all of our WordPress work on our server, not locally in this class and b) WordPress isn&#8217;t just a set of files, but a set of files plus a database, it&#8217;s important to back up WordPress. Server-side back-ups Because Reclaim Hosting is a nice company to work with, our WordPress [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1814","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/nmi.cool\/webdev\/wp-json\/wp\/v2\/pages\/1814","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nmi.cool\/webdev\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/nmi.cool\/webdev\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/nmi.cool\/webdev\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nmi.cool\/webdev\/wp-json\/wp\/v2\/comments?post=1814"}],"version-history":[{"count":0,"href":"https:\/\/nmi.cool\/webdev\/wp-json\/wp\/v2\/pages\/1814\/revisions"}],"wp:attachment":[{"href":"https:\/\/nmi.cool\/webdev\/wp-json\/wp\/v2\/media?parent=1814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}