News:

Please post your question in the right forum. We will answer it as soon as possible.

Main Menu

Images / file attachmentsd are not imported after importing the Backup XML file

Started by delwar, December 27, 2020, 07:51:31 PM

Previous topic - Next topic

delwar

This is a general problems happens if you are trying to export a backup file via the WP>>Tools dashboard.

When you export all content via the export option in admin panel then you get an XML file as backup. you can then upload it in another wordpress to restore the backup.

Remember that, the OLD site must be up and running to import the backups in NEW site.

Still sometime you will see everything is restored but the images or attachments are not there, then what to do?
I do what I love, Money Comes on the Way.

delwar

To avoid this problem first check if your old domain's "hotlink Protection" is inactive in cPanel (if this is hosted in cPanel)
I do what I love, Money Comes on the Way.

delwar

Also, check if your host is allowing if you have the right to import larger number of files from an specific IP.
I do what I love, Money Comes on the Way.

delwar

Now, come to a better solution.

Let's assume we are going to export backup from You are not allowed to view links. Register or Login and restore it on You are not allowed to view links. Register or Login

First, Go to You are not allowed to view links. Register or Login -> tools -> export -> media



Now to go You are not allowed to view links. Register or Login -> tools -> import (upload xml file of media export)



Make sure you check download and import file attachments.

This will take sometime. While it's running, go and export pages or posts from You are not allowed to view links. Register or Login.

Open the XML backup file of that export and do a find and replace of You are not allowed to view links. Register or Login to You are not allowed to view links. Register or Login



Now if the media import finished, start the upload of the modified XML export.

Walla! it will now reference the uploaded images you did in the previous import.

let me know if you succeed this way.
I do what I love, Money Comes on the Way.