{"id":4914,"date":"2020-04-16T23:50:09","date_gmt":"2020-04-16T23:50:09","guid":{"rendered":"https:\/\/lamp.ciscoar.com\/?page_id=4914"},"modified":"2020-04-19T03:29:46","modified_gmt":"2020-04-19T03:29:46","slug":"how-to-restore-a-wordpress-backup","status":"publish","type":"page","link":"https:\/\/lamp.ciscoar.com\/?page_id=4914","title":{"rendered":"How to restore a WordPress backup"},"content":{"rendered":"\n\n\n<h2 class=\"wp-block-heading\">Restore a WordPress backup<\/h2>\n\n\n\n<p>On a <a rel=\"noreferrer noopener\" href=\"\/how-to-backup-a-wordpress-website\/\" target=\"_blank\">previous article<\/a> we covered the steps you must take in order to make a backup of your WordPress website, now is time to restore that backup on a local <a rel=\"noreferrer noopener\" href=\"\/installing-centos-7\/\" target=\"_blank\">Linux CentOS 7<\/a> <a rel=\"noreferrer noopener\" href=\"\/creating-a-new-virtual-machine\/\" target=\"_blank\">Virtual Machine<\/a>, on which a fresh install of WordPress was done, this way you&#8217;ll see a copy of your website running on local machine, in my opinion the best way to verify the good health of your backup.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1 &#8211; Copy .gz file into the website&#8217;s root folder<\/h2>\n\n\n\n<p>The first step is to copy the backup you&#8217;ve <a rel=\"noreferrer noopener\" href=\"\/how-to-backup-a-wordpress-website\/#Step_2_Compress_wp-content_folder\" target=\"_blank\">previously made<\/a> of the &#8220;<strong>wp-content<\/strong>&#8221; folder into the local website, you can use your preferred FTP\/SFTP tool to complete this task, we&#8217;re going to use <a rel=\"noreferrer noopener\" href=\"\/winscp\/\" target=\"_blank\">WinSCP<\/a>, see below screenshots.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_01_copy-gz-file.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"515\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_01_copy-gz-file-1024x515.png\" alt=\"\" class=\"wp-image-4916\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_01_copy-gz-file-1024x515.png 1024w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_01_copy-gz-file-300x151.png 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_01_copy-gz-file-768x386.png 768w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_01_copy-gz-file.png 1409w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><figcaption>Restoring WordPress backup<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_02.png\"><img loading=\"lazy\" decoding=\"async\" width=\"528\" height=\"233\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_02.png\" alt=\"\" class=\"wp-image-4917\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_02.png 528w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_02-300x132.png 300w\" sizes=\"auto, (max-width: 528px) 100vw, 528px\" \/><\/a><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"630\" height=\"305\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_03.png\" alt=\"\" class=\"wp-image-4918\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_03.png 630w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_03-300x145.png 300w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><figcaption>Backup of the &#8220;wp-content&#8221; folder successfully copied<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2 &#8211; rename the wp-content folder<\/h2>\n\n\n\n<p>Before proceding to unzip the folder you must change the name of the local &#8220;<strong>wp-content<\/strong>&#8221; folder that is there empty as part of the fresh installation of WordPress, this one will be replaced by the one on the .gz file.<\/p>\n\n\n\n<p>The WinSCP GUI allows you to rename a folder in the same way you would do in Windows, select the folder and press F2.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_04.png\"><img loading=\"lazy\" decoding=\"async\" width=\"606\" height=\"204\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_04.png\" alt=\"\" class=\"wp-image-4920\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_04.png 606w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_04-300x101.png 300w\" sizes=\"auto, (max-width: 606px) 100vw, 606px\" \/><\/a><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3 &#8211; Unzip the .gz file<\/h2>\n\n\n\n<p>Another useful feature of <a rel=\"noreferrer noopener\" href=\"\/winscp\/\" target=\"_blank\">WinSCP <\/a>is the <strong>UnTar\/GZip<\/strong> tool that you can use to uncompress and untar, both tasks at the same time, see below screenshot.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_05.png\"><img loading=\"lazy\" decoding=\"async\" width=\"659\" height=\"337\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_05.png\" alt=\"\" class=\"wp-image-4922\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_05.png 659w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_05-300x153.png 300w\" sizes=\"auto, (max-width: 659px) 100vw, 659px\" \/><\/a><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_06.png\"><img loading=\"lazy\" decoding=\"async\" width=\"343\" height=\"129\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_06.png\" alt=\"\" class=\"wp-image-4923\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_06.png 343w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_06-300x113.png 300w\" sizes=\"auto, (max-width: 343px) 100vw, 343px\" \/><\/a><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_07.png\"><img loading=\"lazy\" decoding=\"async\" width=\"621\" height=\"218\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_07.png\" alt=\"\" class=\"wp-image-4924\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_07.png 621w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_07-300x105.png 300w\" sizes=\"auto, (max-width: 621px) 100vw, 621px\" \/><\/a><figcaption>unzip and untar completed<\/figcaption><\/figure><\/div>\n\n\n\n<p>You can check inside the &#8220;wp-content&#8221; folder to make sure your files are there and after that, if you want you can delete both the .gz file and the original folder, the one that was renamed as &#8220;wp-content.old&#8221;.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4 &#8211; Use phpMyAdmin to select the Database<\/h2>\n\n\n\n<p>If you have followed our articles you&#8217;ll be able to use the GUI provided by <a rel=\"noreferrer noopener\" href=\"\/phpmyadmin\/\" target=\"_blank\">phpMyAdmin <\/a>to select your website&#8217;s database and after selecting all its tables, drop them all with just one click, see images below.<\/p>\n\n\n\n<p>This database belongs to a fresh install of wordpress that was created as the place where your backup will reside, and as such their tables are completely empty.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_08.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"551\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_08-1024x551.png\" alt=\"\" class=\"wp-image-4928\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_08-1024x551.png 1024w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_08-300x161.png 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_08-768x413.png 768w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_08.png 1325w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><figcaption>Select your website&#8217;s database<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5 &#8211; Select all tables<\/h2>\n\n\n\n<p>The idea here is to remove all the tables before importing the ones in the &#8220;<strong>*<a href=\"\/how-to-backup-a-wordpress-website\/#Step_1_Use_phpMyAdmin_for_database_backup\" target=\"_blank\" rel=\"noreferrer noopener\">.sql<\/a><\/strong>&#8221; file, once you&#8217;ve selected the target database you must put a check mark on the &#8220;Check All&#8221; checkbox, see image below.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_09.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"551\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_09-1024x551.png\" alt=\"\" class=\"wp-image-4931\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_09-1024x551.png 1024w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_09-300x161.png 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_09-768x413.png 768w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_09.png 1325w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step 6 &#8211; Drop all tables from Database<\/h2>\n\n\n\n<p>Once all the tables are selected you can proceed and drop them all, drop is the equivalent to delete\/remove.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_10.png\"><img loading=\"lazy\" decoding=\"async\" width=\"679\" height=\"352\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_10.png\" alt=\"\" class=\"wp-image-4933\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_10.png 679w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_10-300x156.png 300w\" sizes=\"auto, (max-width: 679px) 100vw, 679px\" \/><\/a><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_11.png\"><img loading=\"lazy\" decoding=\"async\" width=\"742\" height=\"367\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_11.png\" alt=\"\" class=\"wp-image-4934\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_11.png 742w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_11-300x148.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/a><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_12.png\"><img loading=\"lazy\" decoding=\"async\" width=\"737\" height=\"390\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_12.png\" alt=\"\" class=\"wp-image-4935\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_12.png 737w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_12-300x159.png 300w\" sizes=\"auto, (max-width: 737px) 100vw, 737px\" \/><\/a><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step 7 &#8211; Import .sql file<\/h2>\n\n\n\n<p>You probably remember that one of the tasks completed <a rel=\"noreferrer noopener\" href=\"\/how-to-backup-a-wordpress-website\/#Which_tools_are_needed\" target=\"_blank\">when creating the backup<\/a> of your website was to download the &#8220;.<strong>sql<\/strong>&#8221; file using the GUI provided by <strong>phpMyAdmin<\/strong>, see <a rel=\"noreferrer noopener\" href=\"\/how-to-backup-a-wordpress-website\/#Step_1_Use_phpMyAdmin_for_database_backup\" target=\"_blank\">this article<\/a> for additional details.<\/p>\n\n\n\n<p>Now is time to complete the same task the opposite way, that is to <strong>import <\/strong>the &#8220;.<strong>sql<\/strong>&#8221; file.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_13.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"551\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_13-1024x551.png\" alt=\"\" class=\"wp-image-4936\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_13-1024x551.png 1024w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_13-300x161.png 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_13-768x413.png 768w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_13.png 1325w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><figcaption>phpMyAdmin, importing .sql file<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_14.png\"><img loading=\"lazy\" decoding=\"async\" width=\"762\" height=\"246\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_14.png\" alt=\"\" class=\"wp-image-4937\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_14.png 762w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_14-300x97.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/a><figcaption>select the .sql file from your local computer<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_15.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"551\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_15-1024x551.png\" alt=\"\" class=\"wp-image-4938\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_15-1024x551.png 1024w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_15-300x161.png 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_15-768x413.png 768w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_15.png 1325w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_16.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"551\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_16-1024x551.png\" alt=\"\" class=\"wp-image-4939\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_16-1024x551.png 1024w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_16-300x161.png 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_16-768x413.png 768w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_16.png 1325w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_17.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"551\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_17-1024x551.png\" alt=\"\" class=\"wp-image-4940\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_17-1024x551.png 1024w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_17-300x161.png 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_17-768x413.png 768w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_17.png 1325w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_18.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"551\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_18-1024x551.png\" alt=\"\" class=\"wp-image-4941\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_18-1024x551.png 1024w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_18-300x161.png 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_18-768x413.png 768w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_18.png 1325w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><figcaption>Tables successfully populated<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step 8 &#8211; Change URLs<\/h2>\n\n\n\n<p>The last step is to adapt the website URLs to work in a local environment, this task must be done on the following two places:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>siteurl<\/li><li>home<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_19.png\"><img loading=\"lazy\" decoding=\"async\" width=\"971\" height=\"433\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_19.png\" alt=\"\" class=\"wp-image-4946\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_19.png 971w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_19-300x134.png 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_19-768x342.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_20-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"829\" height=\"322\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_20-1.png\" alt=\"\" class=\"wp-image-4951\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_20-1.png 829w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_20-1-300x117.png 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_20-1-768x298.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_21.png\"><img loading=\"lazy\" decoding=\"async\" width=\"918\" height=\"323\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_21.png\" alt=\"\" class=\"wp-image-4952\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_21.png 918w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_21-300x106.png 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_21-768x270.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_22.png\"><img loading=\"lazy\" decoding=\"async\" width=\"998\" height=\"328\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_22.png\" alt=\"\" class=\"wp-image-4953\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_22.png 998w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_22-300x99.png 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-restore_backup_22-768x252.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Where to go next?<\/h2>\n\n\n\n<p>Now that you have a <strong>local copy<\/strong> of your website acting at the same time as your website&#8217;s backup you can change the URLs in your local copy to point to the local path, take a look at the following article to learn how to achieve this goal.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"\/how-to-change-wordpress-urls\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to change WordPress URLs<\/a><\/li><\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Restore a WordPress backup On a previous article we covered the steps you must take in order to make a backup of your WordPress website, now is time to restore that backup on a local Linux CentOS 7 Virtual Machine, on which a fresh install of WordPress was done, this way you&#8217;ll see a copy &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/lamp.ciscoar.com\/?page_id=4914\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to restore a WordPress backup&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-4914","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/4914","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4914"}],"version-history":[{"count":33,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/4914\/revisions"}],"predecessor-version":[{"id":5007,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/4914\/revisions\/5007"}],"wp:attachment":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4914"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}