Skip to main content
1-Visitor
October 23, 2017
Solved

How to restore a specific entity from a daily backup of all entities

  • October 23, 2017
  • 2 replies
  • 1793 views

hello

I have a daily backup which is creating a folder with containing two files :

Entities.twx  Entities.twx.chk

I would like to restore one Entity (a Thing for example) without writing on the other entities.

Is there a way to select entities to be restored when importing the Entities.twx   (As I have only one THX server I cannot test it )


Thanks

Pascal

Best answer by ankitgupta

pjoly​,

As per my understanding; it is not possible to select just one entity from Entities.twx.

The process to import the specific entities would have been easier with a second server.

You can try following:

1. Take the full export of latest entities.

2. Import the Backup Entities.twx; you want to Restore.

3. Export the specific Entities.

4. Import the Export done in Step 1.

5. Import the specific entities exported in Step 3.


I hope it helps.


I would suggest you to take a Source Control entity Export in Future. It exports all the entities as separate xml files. So, it is easy to import specific entities.

2 replies

1-Visitor
October 24, 2017

pjoly​,

As per my understanding; it is not possible to select just one entity from Entities.twx.

The process to import the specific entities would have been easier with a second server.

You can try following:

1. Take the full export of latest entities.

2. Import the Backup Entities.twx; you want to Restore.

3. Export the specific Entities.

4. Import the Export done in Step 1.

5. Import the specific entities exported in Step 3.


I hope it helps.


I would suggest you to take a Source Control entity Export in Future. It exports all the entities as separate xml files. So, it is easy to import specific entities.

pjoly1-VisitorAuthor
1-Visitor
October 24, 2017

Thanks

your explanations are crystal clear!

I'll check if I can use "Source Control entity Export"  for my daily backups


I followed a tutorial in this forum for that entities backup and I am using a timer and


url: "https://MyTHXserver/Thingworx/ExportDatabase/?WithData=false" /* STRING */,


is there an URL for ExportSourceControl ?

Pascal