Import/Export a WordPress Site

Import/Export a WordPress Site

This document will guide you through the process of importing and exporting a website both to and locally. It also explains the steps to create a restore restore using only Local website files.

Table of Contents:

  1. Import a web page by using the zip
  2. Manually Import a Site
  3. Restore a site using Local Site Files
  4. Export a website

Import a website by using the zip.

Local is quite flexible in the possibility of importing the WordPress website from an archive. Zip archive.

There are two things that Local requirements for an import to be successful

  1. The WordPress content folder (containing themes, plugins, and uploads)
  2. A dump of the Database as an SQL file

There are several methods to download an encrypted backup of your website:

Flywheel: Download a Backup

WP Engine: Download a Backup

You can also back up to another host with tools such as WordPress Migrate. This is a help document that will guide you through the process of working with the trial version of WP Migrate. WP Migrate.

Once you’ve got your backup, the zip archive should be something like this:

NOTE

In this instance, the database dump is located next to a folder called files, which houses the WP-content folder.

All you have to do is import the Zip file by dropping it on Local or by selecting “Import” from Local’s menu.

Local asks you some questions regarding the website, including the Site Domain and the location you’d like to store the website. Depending on the size of your archive file, the upload may take only a few minutes for smaller websites or longer in the event that you have a large ZIP file.

img alt=”Options screen when you import an online site into Local.” data-lazy-src=”https://getflywheel.com/wp-content/uploads/2018/08/local-site-import-local-options-1024×702.png” src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%200%200’%3E%3C/svg%3E”/>

Manually import a local site.

If you’re experiencing errors while the import of a zip file, try an import manually by following these steps:

  • Unzip the file to a regular location, such as the Desktop.
  • Create a brand new, blank site using Local. Choose any username/password that you like, as you’ll be rewriting the Database.
  • The WP-content folder created when you create the new place can be renamed the wp-content folder to wp. com-content-old or erased it. Copy the folder wp-content folder from your backup and copy it to the new location of the site to be used in its place.
  • Copy the right SQL document to your root of the site (App>Public).
  • Within Local, Click to open the Site Shell. Site Shell
  • Import your Database with wp db import your-database-filename.sql
  • If this works, you can now search and replace the domains. This may take more than one Search and Replace, such as:
    • WP replace-search production.com, my site.local
    • WP Search-replace https://mysite.local http://mysite.local

Restore from only Local site files.

There are situations where you’ll need to re-import sites into Local with only the files that are contained in this site directory. A power failure or breaking changes brought on by a system update could make it necessary to restore backups to the site. Local WordPress sites.

If you are able to access a Local site folder via the restore point in your system or a time-machine backup, it contains all of the WordPress files along with those SQL files. If you do, then you’ve got everything you need to restore the website!

To provide some context, For a better understanding, you’ll need to compress the entire site folder, which includes the application along with the logs folders. With the following screenshots, for example, shorten the WordPress-import folder, then utilize it to open the WordPress-import.zip file to import it into Local by dropping the archive on Local.

Export a website

Begin with the first opening, “Local,” and ensure that the website you wish to export is up. After that, right-click the website and choose “Export.” Follow the instructions to save the website in a location where you can locate it on the Desktop!

Leave a Reply