Hello
I'm attempting to use the deploy module to move several thousand nodes of multiple types, from one site to another. [A project which was supposed to be done today.:(] The sites are at the same D6 version, have the same modules more or less, and aught to be compatible.
However, one is using core themes, and the other (destination) is using fusion and its ilk; and the receiving site has nodes of its own which should not be destroyed when the new nodes from the source site come over.
The instructions for deploy (http://drupal.org/node/408774) indicate that the destination site should be an identical copy of the source site, created after the deploy module is configured.
That isn't possible here--these are concurrently running sites, each with individual content.
I am guessing that I can still setup deploy, and must somehow make provision for differing unique IDs for terms and so on, but otherwise it could potentially work?
Any advice appreciated.
Luke
Luke wrote:
Hello
I'm attempting to use the deploy module to move several thousand nodes of multiple types, from one site to another. [A project which was supposed to be done today.:(] The sites are at the same D6 version, have the same modules more or less, and aught to be compatible.
You basically need to be able to node_load() the source, remove the nid parameter from the object, remove the tid parameter from the taxonomy data in the node object and do a node_save() to the destination. You can control which database to use for the node_load() and node_save() by a call to db_set_active().
If you the source site has used specialized content types or input formats (a.k.a. text formats) then you may need to consider that data in the node object as well.