{"id":202,"date":"2013-10-05T19:05:18","date_gmt":"2013-10-05T19:05:18","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=202"},"modified":"2017-09-09T17:27:52","modified_gmt":"2017-09-09T17:27:52","slug":"how-to-restore-a-wordpress-site-from-a-backup","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/how-to-restore-a-wordpress-site-from-a-backup\/","title":{"rendered":"How to Restore a WordPress Site from a Backup"},"content":{"rendered":"<p>You need to<\/p>\n<ol>\n<li>Upload WordPress Backup Files to server<\/li>\n<li>Restore WordPress Backup<\/li>\n<li>Restore Database Backup<\/li>\n<\/ol>\n<p>If you need to backup your site then you can use this how to <a title=\"Backup WordPress Site \" href=\"http:\/\/www.incredigeek.com\/home\/how-to-backup-a-wordpress-site-from-the-command-line\/\" target=\"_blank\" rel=\"noopener\">here<\/a><\/p>\n<p><strong>1. Upload WordPress Backup Files to server<\/strong><\/p>\n<p>Use your favorite ftp client(FileZilla?) to upload the MySQL database and WordPress files to the server.\u00a0 If they are already there skip to step 2.<\/p>\n<p>In Linux you can use the ftp or sftp command.<\/p>\n<pre>sftp me@myserverip<\/pre>\n<p>once you connected you can upload your backups using put.<\/p>\n<pre>put wp-backup.tgz<\/pre>\n<p>and<\/p>\n<pre>put wp-database.sql.gz<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>2. Restore the WordPress Files<\/strong><\/p>\n<p>This is super easy because all you have to do is untar the files.\u00a0 Make sure the file is in the directory that you want WordPress in.<\/p>\n<pre>tar -zxvf wp-backup.tgz<\/pre>\n<p><strong>3. Restore Database Backup<\/strong><\/p>\n<p>If your MySQL backup is zipped, unzip it.<\/p>\n<pre>gunzip wp-database.sql.gz<\/pre>\n<p>We need to create a database to import our backup.\u00a0 You can change wp_database to what ever you want.<\/p>\n<pre>mysql -u username -p\r\n\r\nmysql&gt; CREATE DATABASE wp_database;<\/pre>\n<p>Import database<\/p>\n<pre>mysql -u username -p wp_database &lt; wp-database.sql<\/pre>\n<p>&nbsp;<\/p>\n<p>You should now have a fully functioning WordPress site.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You need to Upload WordPress Backup Files to server Restore WordPress Backup Restore Database Backup If you need to backup your site then you can use this how to here 1. Upload WordPress Backup Files to server Use your favorite &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/how-to-restore-a-wordpress-site-from-a-backup\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44,72],"tags":[76,78,77,74],"class_list":["post-202","post","type-post","status-publish","format-standard","hentry","category-web","category-wordpress","tag-import-wordpress-database","tag-restore-backup","tag-restore-wordpress","tag-wordpress-2"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=202"}],"version-history":[{"count":9,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/202\/revisions"}],"predecessor-version":[{"id":1640,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/202\/revisions\/1640"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}