# Save downloaded artifact in persistent storage for reuse

**URL:** <https://hub.mender.io/t/save-downloaded-artifact-in-persistent-storage-for-reuse/5790>\
**Category:** General Discussions\
**Tags:** mender-client\
**Created:** [April 25, 2023, 10:14am UTC](https://hub.mender.io/t/save-downloaded-artifact-in-persistent-storage-for-reuse/5790 "2023-04-25T10:14:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![penlect](https://avatars.discourse-cdn.com/v4/letter/p/b4bc9f/32.png) [@penlect](https://hub.mender.io/u/penlect)\
**Post date:** [April 25, 2023, 10:14am UTC](https://hub.mender.io/t/save-downloaded-artifact-in-persistent-storage-for-reuse/5790/1 "2023-04-25T10:14:40Z")

</div>

We have a menderized system with the following characteristics:

1. The persistent storage partition is significantly larger than the root partition.
2. The internet connection is unstable and has a high data cost.

Is it possible to configure mender to download the mender artifact to a directory within the persistent storage partition, allowing it to be reused in case a second installation attempt is needed? Our wish is to avoid downloading the artifact multiple times due to internet connectivity issues and high data cost.

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [April 27, 2023, 1:21pm UTC](https://hub.mender.io/t/save-downloaded-artifact-in-persistent-storage-for-reuse/5790/2 "2023-04-27T13:21:47Z")

</div>

Hi @penlect!

The artifact is usually not stored anywhere, but streamed directly to the target partition, hence not easily cached in the way you described. If your use case benefits from such, you could implement this as an Update Module. Those have access to the payload contents and would be able to store them in a persistent manner. For more details, see the documentation [here](https://docs.mender.io/artifact-creation/create-a-custom-update-module#create-a-custom-update-module)

Greetz,  
Josef
