How to programmatically export/backup everything from one instance of the Thingworx and restore it on another fresh instance
Hi,
I am confused what stuff should I need to export / backup from one instance if the Thingworx, so in the newly installed fresh instance I could get exact replica of the instance where backup was done from.
It looks more-less clear with Extensions - I need to import all of them in the new installation before restoring entities/data I guess.
I can see that Export to ThingWorx storage would create folder under c:/ThingworxStorage/Exports with name composed of current date/time. I tried to export with Including data checkbox turned On, and import with data to another instance. It did import "entities" (for example, Things), but properties of those things were no imported. This is the first confusion - why properties are not imported? Are these properties of my things considered as "Data"? If yes, why properties are not imported? Is this a bug?
I found also some discussions in this forum that backup of Data can be created using DataManagementServices resource. I did not try to use it yet. Would be interesting to know, if I create backup with that service, and restore it, would it restore properties of Things? Another question in this regard - if I backup with DataManagementServices, will that also include "Data" the same as "Data" on export to ThingWorx storage would include, so I don't need to check the box "Include Data" anymore? Or maybe backup with DataManagementServices includes even all "Entities" so I don't need to export them at all.
I see that the Export can be run programmaticaly, and looks like I understand how to call DataManagementServices from Java code (in extension).
What is not clear - how to import from thingworx storage programmatically?
I would really appreciate if you could provide hints for these my questions,
Thank you, Ravil

