[support] Deploy Module with Differing Sites

Earnie Boyd earnie at users.sourceforge.net
Wed Jun 1 12:51:12 UTC 2011


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.

-- 
Earnie
-- http://progw.com
-- http://www.for-my-kids.com


More information about the support mailing list