Skip to main content
Inspiring
February 11, 2014
Question

Copying Datasource setup between cf10 installations

  • February 11, 2014
  • 1 reply
  • 931 views

Got a cfserver that needs quite a few datasources, so it's tedious to enter them by hand. Is it possible to do a trick like the old copying neo-query.xml?

    This topic has been closed for replies.

    1 reply

    Carl Von Stetten
    Legend
    February 11, 2014

    That should still work.  The files are just located in a slightly different place than in previous versions ( <ColdFusion Home>\<instance name>\lib ).  I'd be careful if you are trying to migrate settings from a previous version of ColdFusion though, as there are no guarantees that all of the XML attributes are the same.

    -Carl V.

    Message was edited by: Carl Von Stetten

    Inspiring
    February 11, 2014

    Thanks - I've had a play and it does seem to be OK. I was slightly worried that the encryption might have changed. The xml is a bit more bloated in the new version, but no worries ;-)

    Charlie Arehart
    Community Expert
    Community Expert
    February 11, 2014

    @Alex, I’m curious about this: you say in your subject that you are copying “between cf10 installations”, bun then you refer to the possibility of encryption having “changed” and the “new version” of the xml being “more bloated”. Do you mean that the old server was CF9 or earlier, and the new one is 10?

    If so, then I would assert you be more cautious about just copying the neo-*.xml file(s). They are not entirely compatible between versions. (I wonder if Carl was going based on your subject, before you added what you have here, or he may have offered the same caution.)

    So what would be the (perhaps) better way to do the migration?

    Well, if the old and new machines are CF Enterprise, you ought to instead use the ColdFusion Archive (CAR file) mechanism, offered in the CF Admin. But if either is Standard, that option won’t be there (and while you can force it to the Dev edition by removing the license there’s more to that than I’d want to elaborate here.)

    There is still another option, when you want to migrate all old settings from one server to another, and that’s to use a little-known but fully documented feature to “trick” the “migration wizard” (a feature of the CF admin, normally run only at installation) into running again, which will let you import all the settings from one old release into another. (If you have made many changes in the CF10 install, you may not want to do that, though, as it will overwrite them.) For more, see

    http://help.adobe.com/en_US/ColdFusion/9.0/Installing/WSe9cbe5cf462523a07f098214121c918ef8c-8000.html

    or

    http://help.adobe.com/en_US/ColdFusion/10.0/Installing/WSc3ff6d0ea77859461172e0811cdec18c28-8000.html

    Hope that helps.

    /charlie

    /Charlie (troubleshooter, carehart. org)