cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Version Control

victorgan
1-Visitor

Version Control

Hi,

Does Thingworx have any version control capabilities or what would be the recommended way of backing up different versions of content and restoring?

Thanks.

9 REPLIES 9

Hi Victor,

I don't know they we've settled on a recommended method of putting ThingWorx applications under source control, but we've introduced functionality in 5.0 to make this possible. From Composer,

Import/Export

 →

Source Control Entities

. This functionality is similar to a standard export, however it will create directories for each entity type (e.g.

Things

,

ThingTemplates

, etc.) and a file for each entity. The files are exported to a

FileRepository

 and from there, you'll need to decide how you want to get them into a version control system.


Regards,

Adam



Hi Adam,

I'm using version 5.0, but I don't see the option "Source Control Entities". The options I have are the "To File" and "To ThingworxStorage". Do I need to import an extension to see this option?

Victor,

Are you using a 5.0 SP2? I've confirmed this menu item is available in 5.0 SP2. If you're unable to upgrade at the moment, you can access this functionality as Services (available from the Snippets tab under SourceControlFunctions) to programmatically export entities for source control.

paic
12-Amethyst
(To:victorgan)

I recommend you upgrade to SP2 which has this available from the menu.

In the 5.x pre SP2 versions, you can find this as a Service in Resources/Source Control Functions. There are two services there, export source controlled entities and as a zip.

victorgan
1-Visitor
(To:paic)

Hi Adam and Pai,

Thanks for your response, I must not have SP2, which is why I don't see it in the menu. I did find it under the SourceControlFunctions like you've both mentioned and it appears to be working that way.

Thanks again!

twitters
1-Visitor
(To:adam11)

Since we are now at version 7.1, is the strategy mentioned above still the recommended one, or is there another approach?

Aanjan
12-Amethyst
(To:twitters)

Todd, 'Export to ThingworxStorage' would be your best option (with checking 'Include Data'). That would create an export under ThingworxStorage\exports\YYYY-MM-DD-TIME with your entities and data. Entities that use the persistence provider, like Streams, ValueStreams, DataTables etc. will have their own individual folder as well.

we have been using TW 6 and we want maintain TW code (services code) into version control.Could you please help us.

ThingWorx Applications Version Controlling with SVN can be done by using attached document.

Announcements


Top Tags