Where to store files, to be visible over different applications


#1

Hi!

Where can i store my files, to persist application changes ?

i can put them in /data, works fine over regular updates. However; when i move my device to a different ‘application’, these contents are gone too.

Is there a place i can put files that will persist over application movements, so i can keep using the same files?

The reason for doing so is, i can move a device in a BETA or TESTING application, and still use it’s configuration files that are stored centrally.

Cheers,
RS


#2

/data


#3

Nope.

Note: For devices running resinOS version 2.12.0 and above, data in persistent storage (named volumes) is automatically purged when a device is moved to a new application. On older host OS versions, the /data folder in the new application will not contain any of the old application data, but it can still be accessed via the host OS and if the device is switched back to the original application. Unless you plan to revert back to the original application, be sure to purge the /data folder.


#5

Hi @salorob,

When moving between applications, /data contents (for pre-2.12.0 applications) is not available to the new application but is available from the host (or will still be available if the original application is reinstated on that device).

Please see https://docs.resin.io/learn/manage/actions/#move-to-another-application for more information.

Best regards,

Heds


#7

Hi @hedss
and @salorob: sorry to hijack your thread :wink:

We do have the same requirement: sharing the /data container between applications
We also use some early-access (beta tester) application and want to move devices between production and early access but do have the requirement to use the persisted data between them.
Couldn’t there be one additional partition/volume that is shared across all apps, so we keep compatibility with the purged /data?

Thanks
Fritz


#10

Hi @fritz,

At the moment, we don’t have such a feature. But I have captured this feature request on our internal list.

Thanks

Regards
ZubairLK