Skip to main content
Best answer by pshashipreetham

The Following Method been used for this solution:
The /.config directory stores currently running configuration data of the runtime, including the currently running project file, certificate information, and other instance specific data. This data can be backed up and used to restore the configuration of ThingWorx Kepware Edge if a failure occurs, such has a hardware failure to the host.

It is recommended when backing up the folder and files to maintain the ownership and access permissions that are present for the files. Errors may occur when restoring the configuration if the files and folders are not accessible by the ThingWorx Kepware Edge services. Files in this folder are owned by the Linux user and have read and write permissions for the user group configured during installation, which is “tkedge” by default for both user and group.

An example to quickly use the “cp” command to back up the .config folder:

sudo cp -pr /opt/tkedge/v1/.config <destination_folder>

 

Restoring a Configuration
If it is necessary to restore a configuration, the ThingWorx Kepware Edge services need to be stopped prior
to copying over any files. Once ThingWorx Kepware Edge is installed, follow the steps below:
1. Stop all ThingWorx Kepware Edge services using the command:

sudo systemctl stop tkedge*.

2. Delete previously stored .config folder and files.

3. Copy the backup .config folder and data to (default location is /opt/tkedge/).

4. Restart all ThingWorx Kepware Edge services using the commands:

sudo systemctl start

 

2 replies

22-Sapphire I
January 27, 2022

You can save the configuration and then load it into other Kepservers

pshashipreetham
18-Opal
pshashipreetham18-OpalAuthorAnswer
18-Opal
February 1, 2022

The Following Method been used for this solution:
The /.config directory stores currently running configuration data of the runtime, including the currently running project file, certificate information, and other instance specific data. This data can be backed up and used to restore the configuration of ThingWorx Kepware Edge if a failure occurs, such has a hardware failure to the host.

It is recommended when backing up the folder and files to maintain the ownership and access permissions that are present for the files. Errors may occur when restoring the configuration if the files and folders are not accessible by the ThingWorx Kepware Edge services. Files in this folder are owned by the Linux user and have read and write permissions for the user group configured during installation, which is “tkedge” by default for both user and group.

An example to quickly use the “cp” command to back up the .config folder:

sudo cp -pr /opt/tkedge/v1/.config <destination_folder>

 

Restoring a Configuration
If it is necessary to restore a configuration, the ThingWorx Kepware Edge services need to be stopped prior
to copying over any files. Once ThingWorx Kepware Edge is installed, follow the steps below:
1. Stop all ThingWorx Kepware Edge services using the command:

sudo systemctl stop tkedge*.

2. Delete previously stored .config folder and files.

3. Copy the backup .config folder and data to (default location is /opt/tkedge/).

4. Restart all ThingWorx Kepware Edge services using the commands:

sudo systemctl start