Community

Splitting one site into several (multisite)

I would like to split an existing Drupal 6 site into several sites (using multisite mode).

The existing site (http://example.com) lives on cPanel-based shared hosting with /home/public_html as its root. I have set up subdomains (eg. http://photos.example.com) and configured them with Drupal multisite. Drupal is working perfectly on the subdomain sites.

The /public_html/sites directory looks like:
/sites/all
/sites/default
/sites/photos.example.com
etc.

I am trying to figure out the best way to migrate existing content and existing linked files (images, etc. that are currently in /sites/default/files) from the original site to the new sites. All the tutorials I've come across so far assume either a clean install or a guru's knowledge of custom MySQL manipulation.

In essence, what I want to do is:
1. Select all nodes in example.com that have the taxonomy tag "photos".
2. Move/copy those nodes to the new site at photos.example.com, leaving 301 Moved Permanently in place of their previous URLs. (Backup & Migrate module did a nice job of bringing the nodes into the new sites, but I'm not sure how to leave 301s in the old site.)
3. For each of those nodes, copy any files it links to from /sites/default/files/... to /sites/photos.example.com/files/... and update the img tags in the nodes accordingly.

The site is not so huge that it would be impossible to do this manually node-by-node, but I would prefer a more efficient solution if one exists.

nobody click here