Moving to a new webhost without losing any of your blog content is a challenge for many. Such migration is a must if you are moving from a wordpress.com blog to a self hosted blog. It is very important to move all the text content in the form of article, comments and multimedia (images/video). There are a number of easy ways that wordpress supports to migrate all your data into a new blog. This article is aimed at exploring various options to accomplish the same.
The simplest and easiest way is to use the export and import options provided through wordpress admin dashboard. There exists an excellent article about using that feature is provided on WordPress Documentation. You can move with ease from various blogging solutions like Blogspot, Joomla, LiveJournal, TypePad as well as WordPress with the help of that article. I am going to deal about the more complex way of migrating from WordPress blog on one web host to another. The below mentioned steps are advisable only if you cannot migrate with simpler ways of migration as mentioned in the link provided above. I had to get into this mode because WXR – WordPress Extended RSS method resulted in some kind of error while moving to a new host. Since that WXR file for my blog on previous host was about 8MB, it was failing due to file size limitation I suppose.
Before starting with these steps, ensure you have set up wordpress on your new webhost and you are able to login to wordpress admin dashboard. The assumption here is that you are retaining the domain name and the permalink structure from your old blog on to new one. Moving the blog via database involves a two step process, backing up the database and then restoring from the backed up database.
The steps to back up a blog’s mysql database are listed here : Backing up your Database. Only suggestion that I have is to choose GZip compression to download the backup of a database in the last step as mentioned in that article. Most of the webhosts do support GZip feature for MySQL via PhpMyAdmin. Ensure you have the downloaded file available on your desktop before proceeding with next step.
With that you have only backed up the database having articles, comments and any plugin customization option. Remember the most important thing you need to understand is that you haven’t backed up the images that you uploaded to be included in your blog posts. For that you need to take a backup of wp-content folder for ‘plugins’, ‘themes’ and ‘uploads’. Move these files to appropriate folders on your new web host. That completes migration of your uploaded image files, themes and plugins.
In order to restore the database from back up on to your new blog, follow this article titled ‘Restoring your database from backup‘. Continue these steps on your new host. This populates all the blog content on your new host. Go to new wordpress blog admin dashboard and enable the plugins. In the dashboard, go to setting page and ensure you have the right path under “miscellaneous” for upload files. Once that is done, feel free to write a test post with image content to ensure that things are working fine. Isn’t that simple? It may sound too technical for not so comfortable folks, never mind, it is really simple! I was able to set up everything from scratch on my new web host in less than 30 minutes and I am sure you can do it much faster!