How to completely export and import WordPress?

I exported all posts of a WordPress blog. Then I imported the xml file to another WordPress blog. When I tried to search few posts in the new blog, which are in the old blog, I did not find anything. When I opened the xml file, I found that it’s incomplete. The file contains 14,226 lines of code. The size of the file is 1.2 MB. I used default tool of WordPress to export and import.

How to export complete list of posts and then import the same?

I have another lame idea to do this, if I don’t get any good solution. I can delete the posts which are exported and then export again. But this is a stupid time taking process.

2 Answers
2

To copy a WordPress install from A to B, do an SQL dump on site A, and restore it to site B. Then search and replace the DB to swap the old URLs for the new URLs. Make sure to copy over the uploads folder in wp-content.

To do the search replace, consider using a tool such as this:

https://interconnectit.com/products/search-and-replace-for-wordpress-databases/

Leave a Comment