cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Persistant app data appPrivateFiles not working

Persistant app data appPrivateFiles not working

TimVela
Occasional Visitor

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?

6 REPLIES 6

CodeShepherd
Community Moderator
Community Moderator

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.

MauroRiboniMX
Contributor

Hello Tim, 

Specify better, step by step the behavior you would like to achieve. I didn't get it completely

Mauro 

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).

I though that appPrivateFiles would prevent files from being backed up (https://boschrexroth.github.io/ctrlx-automation-sdk/persistdata.html#app-private-files)

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)

I see thank you, I was using the backup-restore mechanism. When I use the setup mechanism appPrivateFiles works.

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist