FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
09-26-2023 03:48 PM - edited 09-26-2023 03:50 PM
I am currently on ctrlx OS versions 2.02, and have set up package assets for persistent data. Here is my package-manefest.
{ "id": "rexroth-activemover", "title": "ActiveMover", "version": "3.0.47.1", "configuration": { "appPrivateFiles": [ "^activemover-firmware/" ], "appDirectories": [ { "name": "activemover", "description": "ActiveMover configuration", "icon": "bosch-ic-components", "copyOnLoad": true }, { "name": "activemover-firmware", "description": "ActiveMover firmware", "icon": "bosch-ic-components", "copyOnLoad": true } ] } }
The activemover and activemover-firmware directories are present, and files are copied over once the snap is installed. However, on a backup, the appPrivateFiles does not seem to be applied and files in activemover-firmware are backed up/loaded on a restore, which we do not want to happen. Is there something I am missing?
Solved! Go to Solution.
09-26-2023 05:11 PM
Moved to corresponding sub forum SDK.
All the files that are available in the active configuration will be saved and restored when using the solution manager mechanism.
If you want to react on that mechanism to manipulate this files if customer is clicking on the ctrlX CORE web UI, you have to implement that in your app. See the official SDK documentation to see how to do so.
09-26-2023 08:40 PM
Hello Tim,
Specify better, step by step the behavior you would like to achieve. I didn't get it completely
Mauro
09-27-2023 10:52 PM
I have an application that has files stored to its app data folder(activemover-firmware), that we do not want to be backed up when a user backs up the ctrlx system configuration (i.e. when they use the web interface > settings > backup & restore). I was under the impression that using "appPrivateFiles" (https://boschrexroth.github.io/ctrlx-automation-sdk/persistdata.html#app-private-files).
09-27-2023 10:54 PM
I though that appPrivateFiles would prevent files from being backed up (https://boschrexroth.github.io/ctrlx-automation-sdk/persistdata.html#app-private-files)
09-28-2023 03:36 PM
The Backup-Restore mechanism is using the snapshot technology to copy the internal folder structure of the apps itself. So also internal data will be saved in that case. (See online documentation).
If you are using Setup mechanism only the apps itself and the active configuration but not the internal files structure is copied. (See online documentation)
09-28-2023 04:56 PM
I see thank you, I was using the backup-restore mechanism. When I use the setup mechanism appPrivateFiles works.