I can use the WordPress export/import feature but it would not work in my case with some of the blogs having a lot of content. I have played with this option. Not worth it. Export would time out even on localhost.
Have you tried increasing the php script execution timeout values in your php.ini
file (or perhaps in .htaccess
)? I think I'd try that route first, if possible. You probably could set max_execution_time = 180
, or perhaps even higher. It's possible that you might also need to bump up the memory limit, too. Add something like this to your wp-config.php
:
define('WP_MEMORY_LIMIT', '160M');
Then, on the import side, you might run into upload size limits. Another php.ini
tweak:
upload_max_filesize = 96M
post_max_size = 96M
Alternately, it's possible to split the WXR file into smaller pieces. I have a perl script for this, but I wrote it for a client, and would need permission to share it. But if you're interested, I can ask.
A little-known secret of the importer is that it will skip over information that it has previously imported. So if you get past the upload size limits, but the import times out part-way through, just try importing the same file again. It will quickly skip over the data that's already in the database, then pick up again where it left off. But that makes me nervous, because it's not foolproof: If it imports a post, but times out before saving the all the post's metadata, the metadata might get skipped.