Copy CF datasources to other machines

I'm looking for a method to copy ALL CF datasources from one machine to other machines.
This includes password and all settings that one would normally configure inside the CF Admin.

LVL 25
Who is Participating?
James RodgersConnect With a Mentor Web Applications DeveloperCommented:
Gurpreet Singh RandhawaConnect With a Mentor Web DeveloperCommented:
you can also copy the neo-datasources.xml file to some other and after a fresh install or in anotehr install, make a backup of the original and replce the one u have and it works, i had it working
dgrafxAuthor Commented:
Thanks guys

I couldn't get the functionality to work correctly.
Main issue was that file was unreadable (according to CF).
Plus the main drawback would be that I'd need to do this on all machines.

Question for both of you
Say we go with copying the new-datasources file - what needs to be done for the dsns to be recognized?
Restart the CF Server?
That would be a drawback as well - restarting the CF Server.

Let me know ...
Gurpreet Singh RandhawaWeb DeveloperCommented:
the neo-datasources.xml the file you will copy will have all info attached to it, once you all DSN's you will be able to connect them,

I am unable to test here as i had lost all my mysql databases while migration, so i had to recreate them for re-work

but it should work
dgrafxAuthor Commented:
well - my question "do you need to restart CF" goes unanswered ...

But according to Google you do need to restart.

Thanks Guys ...
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.