Moving ONLY media files from one WP blog to another

Hi there, I'm a new member, having bought the annual membership;
I have an unusual problem I'm sure you wizards can solve for me:

I have a main blog site http://www.myMAINblog.com and other smaller wp sites http://www.mysecondblog.com, http://www.mythirdblog.com which are used by my content writers to write and upload content.
I then transfer the content from these blogs to http://www.myMAINblog.com using the wordpress export/import functions;

When I tick the box for "download attachments" when importing, it seems to download the attached media AND the images etc show up in the post correctly formatted, but these are still linked to the original blogs http://www.mysecondblog.com or http://www.mythirdblog.com - NOT to http://www.myMAINblog.com where I imported them. And they don't show in the myMainBlog Media Library.
That's a bummer, because if I delete the content from the other blogs the posts on myMAINblog.com will no longer show the media.

I would like to transfer all the media from the media library of the secondary blogs to the the media library of the main blog.

Also, I assume such a backup will NOT overwrite ny files on the main blog?

Many Thanks
Regards
Harry

  • Tyler Postle

    Hey Harry,

    Hope you're doing well today! Welcome to the WPMU DEV Community :slight_smile:

    Are you using a Multisite for this or just single sites? If it's a multisite then we have this plugin that would be perfect for your situation: https://premium.wpmudev.org/project/multisite-content-copier/

    If it's single sites then you can use a plugin like this to search and replace the link: http://wordpress.org/plugins/search-and-replace/

    You can use that to search and replace strings in the database. That should correct the links :slight_smile:

    Hope this helps!

    Let us know if you still have any questions here.

    Cheers,
    Tyler

    PS. You can transfer them via FTP by just bringing the folders over into your wp-content/uploads/

  • Harry

    Hey Tyler, thanks so much...

    It's single sites (from/to).

    I'm not a developer - have just enough knowledge to be dangerous, although I have worked in IT on the business end.

    So, the situation is WP export/import transfers all content, but shows the media as linked to the original sites. It does not seem to transfer the images from the original media library to the transfer media library.

    So, even if I use the 'search and replace' plugin, all that does is allow me to change the links, but the media STILL STAY in the original library - that's the problem.

    I thought of FTP but will that overwrite existing content in my main (transfer) site? Or will it just merge the folders retaining existing content and just adding new content?

    Many Thanks

  • aristath

    Hello there @Harry, I hope you're well today!

    I thought of FTP but will that overwrite existing content in my main (transfer) site? Or will it just merge the folders retaining existing content and just adding new content?

    Using FTP you can copy the wp-content/uploads folder.
    This will not replace your current files... They will only be replaced if they have the same name (in which case it will still display a prompt, asking you what to do). Files are added to your existing ones so you will not lose any data.

    I hope that helps!

    Cheers,
    Ari.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.