Persistant app data appPrivateFiles not working

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?

Best reply by CodeShepherd

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)

View original
6 replies