Part One: Exporting Your Subdirectory Blog
- Login to the WordPress site you intend to export (the old site).
- Ensure the site software (WordPress), plugins and themes are up-to-date.
- Delete any spam comments and old post revisions (assuming you do not need or want them). Use the WP Optimize plugin to facilitate that. Once installed, go to Dashboard>WP Optimize and select all applicable options (use your own judgment).
- Use your server’s file manager or an FTP program to compress (zip) and download the content of your plugins, themes and uploads directories (/wp-content/plugins, /wp-content/themes, /wp-content/uploads) and any other custom directories that contain data required by your posts. This step can be skipped but it’s alway good to have a backup.
- Now export your WordPress blog’s content as a WordPress WXR (XML) file’
- Go to Tools>Export
- Check the filters. The default filter settings should be good enough for small sites. If the site is large you will need to export its content in date segments.
- Click “Download Export File”
- Check the downloaded export file by opening it in a text editor and scrolling to its bottom to look for any error messages. You will need to reduce the amount of data exported to it if there are error messages. Reduce the data site by filtering for date, category and/or tag data. Over large file exports sometimes result in “out of memory” errors. Export files over 2.8mb will result in import errors on upload. A WordPress WXR export file splitter can be used to split large export files. A WXR file splitter can be downloaded from here (Works on Windows, Linux and Mac). A good indication that an export file complete is the </rss> tag. When you check the export file, look for the </rss> tag at its bottom.
- If you have any custom directories to back up then you should use an FTP program (File Transfer Protocol program) to download them; or you can use your server file manager to move them directly to the main domain’s root directory (or somewhere relative to it that matches their current location within the subdomain or subdirectory.
- Install Cimy User Manager to export your site’s user data (usernames, email address, website etc…).
That’s that for backing up your WordPress blog; now it’s time to import it into your Multi Site.