200x200savetime

Using WP Migrate DB Pro’s new media migration tool

| 2 Comments

Several months ago, I wrote about the wonders of WP Migrate DB Pro, a plugin that makes copying the database from one site to another as easy as pie. I fell in love with how useful it was, especially as a developer, and I have been raving about it ever since (read my original review).

Well, a few weeks ago, Brad and Chris released an update to WP Migrate DB Pro which incorporates an incredibly useful new feature: Media Library migration.

In addition to being able to completely migrate a database from one site to another without having to worry about changing URLs, paths and serialised data, you can now migrate the entire media library from your source site to the destination site.

How to do it

With WP Migrate DB Pro already installed and activated, you’ll notice the Addons tab at the top of the WP Migrate DB Pro settings page, which lists the Media Files addon. You’ll need to install that on both the source and destination sites.

wp-migrate-db-pro-media-migration-option

From there, it’s merely a case of checking an extra box when preparing the migration to indicate whether or not you wish to migrate the media library from the source site to your destination site.

You have the additional option of removing media files from the destination site if they don’t exist on the source site as well, to make a true copy of the source site (rather than adding to whatever exists in the destination site).

Then, when you initiate the transfer, the database migrates as usual, and a second progress bar appears, showing the progress of the media library transfer.

Media Library Migration Progress

When I tried it out, I was impressed at how quickly it zipped through all of my media files. It should be noted that it migrates all of the different image sizes as well as the original, so while you may have 50 items in your media library, there may be several hundred files to transfer, so you can rest assured that all of your files and images will be present on your newly migrated site. Sweet!

Next steps

This is an excellent next step in the development of WP Migrate DB Pro. However, for me, there’s a couple of pitfalls. Since it’s only transferring your media library (which should be the entire contents of wp-content/uploads), it doesn’t transfer your themes or plugins, so for a complete site migration, you’d still have to move those over manually, which is actually a little more awkward now that you’re zipping up and moving wp-content/plugins and wp-content/themes instead of just the whole wp-content folder.

Additionally, if entries in your media library were deleted without deleting the actual file, which is still linked from somewhere, my guess is that that file wouldn’t be migrated, since the file isn’t listed in the media library (this is an unlikely, but plausible, problem).

Nonetheless, it’s an excellent addition and it certainly does the job with grace, which is something that Brad considered heavily when developing this feature (as heard on Apply Filters). I hope that they’ll consider adding themes and plugins to the mix in their next update to make this an even more invaluable tool for users and developers alike.

Special offer

If you’re thinking about getting a license for WP Migrate DB Pro, be sure to use coupon SUPER20 when you check out, to save 20% on the cost of every license.

Get WP Migrate DB Pro

Categories: Plugins | Permalink

What next?

Hire me

If you couldn't quite manage this yourself, find it too intimidating, or just don't have the time to do it, you can always hire Dave to do it. Please get in touch so that we can discuss your needs.

Leave a comment

If you have a question, update, or comment about the tutorial, please leave a comment. I try and respond to every comment, though it may take a few days, so please check back soon.

Let a WordPress Expert help you

Do you want to try this, but feel like you need a helping hand, in case something goes wrong? My service, The WP Butler, gives you access to WordPress expertise whenever you need it. Better yet, I'll keep your site backed up, updated and secure, so that you don't have to worry about it. It's all part of the service. Use coupon DIWW and save 15% on all plans.

Visit The WP Butler

Author:

Dave has been tinkering with WordPress for many years, and he now shares his WordPress knowledge here on Do It WIth WordPress to help others realise its impressive power. He can also be hired to help with your WordPress needs. Dave, who is British, is married to his best friend, Marti, with whom he has a beautiful daughter, Ellie. When he's not dabbling with WordPress, he's probably eating Triscuits or hummus, watching an indie film or British TV show, spending time with friends or family, or exploring the world.

2 Comments

  1. Genius plugin! The media add on is still a great addition… I wonder if Pippin has had a chance to migrate those 30Gb of images yet O_o

Leave a Reply