# How can I test/install an update of an App without losing Insights data?

**URL:** <https://community.homey.app/t/how-can-i-test-install-an-update-of-an-app-without-losing-insights-data/72149>\
**Category:** Developers\
**Tags:** app, insights\
**Created:** [November 14, 2022, 3:21pm UTC](https://community.homey.app/t/how-can-i-test-install-an-update-of-an-app-without-losing-insights-data/72149 "2022-11-14T15:21:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![prosumer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/prosumer/32/166478_2.png) [@prosumer](https://community.homey.app/u/prosumer)\
**Post date:** [November 14, 2022, 3:21pm UTC](https://community.homey.app/t/how-can-i-test-install-an-update-of-an-app-without-losing-insights-data/72149/1 "2022-11-14T15:21:12Z")

</div>

In the past I have created/tested the Growatt driver for the SolarPanels App. This driver is having login issues (Growatt might be blocking us) and I want to see whether I can improve this. However, back then I [lost all my Insights data](https://community.homey.app/t/how-to-prevent-data-loss-when-switching-between-alpha-and-regular-versions-of-apps/13802) when I did something wrong with a test/alpha/beta build… 😢

What’s the proper way to install a local build from my Mac on my Homey (and later the published version again) without losing Insights data?

Is `homey app run` safe for this? (And how to revert it?)

> **[Getting Started](https://apps.developer.homey.app/the-basics/getting-started)**
>
> How to create your first Homey app.

(Is only changing between alpha/beta/production “dangerous”, or also overwriting the production with a local build of the latest source code from GitHub?)

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [November 14, 2022, 5:44pm UTC](https://community.homey.app/t/how-can-i-test-install-an-update-of-an-app-without-losing-insights-data/72149/2 "2022-11-14T17:44:15Z")

</div>

Providing you don’t uninstall the app you should be OK.  
I often use run / install and have not lost anything so far.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [November 15, 2022, 3:41am UTC](https://community.homey.app/t/how-can-i-test-install-an-update-of-an-app-without-losing-insights-data/72149/3 "2022-11-15T03:41:18Z")

</div>

There’s also an option to save your insights up front. Search for “insights” and “export” in the app store.

---

<div class="post-metadata">

**Author:** ![prosumer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/prosumer/32/166478_2.png) [@prosumer](https://community.homey.app/u/prosumer)\
**Post date:** [November 15, 2022, 7:07am UTC](https://community.homey.app/t/how-can-i-test-install-an-update-of-an-app-without-losing-insights-data/72149/4 "2022-11-15T07:07:43Z")

</div>

That’s only export I believe?

No import/restore?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [November 15, 2022, 3:52pm UTC](https://community.homey.app/t/how-can-i-test-install-an-update-of-an-app-without-losing-insights-data/72149/5 "2022-11-15T15:52:16Z")

</div>

Afaik there’s no way to import data to Insights from outside sources.
