Skip to main content
1-Visitor
August 28, 2019
Solved

Automatic Backup Data and Entities

  • August 28, 2019
  • 2 replies
  • 2438 views

How to create Automatic Backup to thingworx entites and data instead of exporting into xml or twx files using export option in composer.

I have ThingworxBackupStorage folder in my c drive, but it empty, there are no backup files. Is there anything to be added in platform settings file or do I need to enable any option in composer or do I need to run a service. Please suggest me right approach.

 

Best answer by PaiChung

Please see the following resource: SourceControlFunctions

Following services

ExportSourceControlledEntities

ExportSourceControlledEntitiesToZipFile

 

ImportSourceControlledEntities

2 replies

Support
August 28, 2019

Hi @effpt3.

 

The ThingworxBackupStorage folder is only used with the H2 database, so if you are running PostgreSQL or SQL Server, it is expected to be empty.

 

To back up your system to ensure successful recovery in case of issues, please review this article and listen to the video.

 

If you have further questions, please let us know.

 

Regards.

 

--Sharon

 

 

22-Sapphire I
August 28, 2019

At this time there isn't an automatic backup feature.

You can either

use one of the REST API calls (or services) to do the backup either triggered external or internal using a scheduler

or you can rely on the persistence provider backup

Personally I would recommend always to have database (persistence provider) backup running

But also to add an automated export to Control Source entities, which will allow for the restore of an individual entity.

effpt31-VisitorAuthor
1-Visitor
August 29, 2019

Hi @PaiChung 

How can I do that backup using API call or service.

Which service I need to run? 

PaiChung22-Sapphire IAnswer
22-Sapphire I
August 29, 2019

Please see the following resource: SourceControlFunctions

Following services

ExportSourceControlledEntities

ExportSourceControlledEntitiesToZipFile

 

ImportSourceControlledEntities