How to Migrate the WordPress Media Library Between MyListing Websites

Get the knowledge your online business needs to succeed.

Overview

The How to Migrate the WordPress Media Library Between MyListing Websites guide shows how to easily copy or move your images between sites.

One of our clients wanted to completely rebuild their MyListing website and bringing over almost 5,000 images was one of the required tasks.

The import/export functionality built into WordPress is not effective for this type of job, especially when you think that each image needs to be “registered” with their Listings, which were also being brought over separately.

Implementation

Source Website

This is the old website that we are wanting to move away from.

  1. Create a full backup of your website. (Note: Before starting any work on your website, it’s good to create backups, just so you can always undo your work if needed.).
  2. Install and activate the Export Media Library (FREE) plugin on the source website.
  3. Go to Media > Export.
  4. Folder Structure > Nested folders.
  5. Click the Download Zip button.
  6. When the zip file is done downloading, extract all of the contents onto your local workstation.

FileZilla

Using an FTP application like FileZilla (FREE) or a WordPress plugin like File Manager (FREE), you want to upload each folder (listing-uploads, folder years, etc.) from your extracted files, one by one, choosing to overwrite the destination when/if prompted.

  1. Add your site to FileZilla and connect to it.
  2. In the right pane of FileZilla, browse to the media library (/public/wp-content/uploads/).

Single Listing Images

These are the images that have been uploaded and attached to the Listings within your MyListing website.

  1. In the left pane of FileZilla, browse to the location of your extracted files.
  2. In the right pane of FileZilla, browse to the media library (/public/wp-content/uploads/).
  3. Drag the listing-uploads folder from the left pane to the right pane, as shown in the image below. (Note: Choose to overwrite the files, when/if prompted.).
migrate wordpress media library

Non-Listing Images

These are all of your other images, like those used for your pages and posts.

  1. In the left pane of FileZilla, browse to the location of your extracted files.
  2. In the right pane of FileZilla, browse to the media library (/public/wp-content/uploads/).
  3. Drag the folder for each year, from the left pane to the right pane, as shown in the image below. (Note: Choose to overwrite the files, when/if prompted.).
  4. Repeat the above steps until each folder year has been copied over.

Target Website

This is the server we are migrating your images to.

Once your images are copied up to the server, we need to sync them with your database, pulling them into your WordPress Media Library and thus making them available to your website.

  1. Create a full backup of your website. (Note: Before starting any work on your website, it’s good to create backups, just so you can always undo your work if needed.).
  2. Install and activate the Media Sync (FREE) plugin on the target website.
  3. Go to Media > Media Sync.
  4. Click the Scan Files button.
  5. Uncheck the Dry Run checkbox.
  6. Select all of the folders that you uploaded.
  7. Click the Import Selected button.

After the sync completes, your Media Library is now available to use on your website and any Listings that migrate over will have their images attached.

Find a bug or typo? Please let us know.