# How to change the default output folder for app session

**URL:** <https://discourse.openondemand.org/t/how-to-change-the-default-output-folder-for-app-session/1305>\
**Category:** Get Help\
**Tags:** question\
**Created:** [February 4, 2021, 8:22am UTC](https://discourse.openondemand.org/t/how-to-change-the-default-output-folder-for-app-session/1305 "2021-02-04T08:22:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![camarocico](https://avatars.discourse-cdn.com/v4/letter/c/ccd318/32.png) [@camarocico](https://discourse.openondemand.org/u/camarocico)\
**Post date:** [February 4, 2021, 8:22am UTC](https://discourse.openondemand.org/t/how-to-change-the-default-output-folder-for-app-session/1305/1 "2021-02-04T08:22:00Z")

</div>

Hi everyone,

I’ve tried to figure this out, but wasn’t successful, so hopefully someone here can help me out:

I would like to move the folders for each interactive app’s session output from $HOME/ondemand/data/sys/dashboard/…etc… to a scratch filesystem that we have and which automatically removes all files which haven’t been accessed for 30 days. This way, we do not need to rely on users to keep their $HOME folder clean.

Is this possible, and if so, how?

Thanks in advance,  
Cristian

---

<div class="post-metadata">

**Author:** ![efranz](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/efranz/32/27_2.png) [@efranz](https://discourse.openondemand.org/u/efranz)\
**Post date:** [February 4, 2021, 2:41pm UTC](https://discourse.openondemand.org/t/how-to-change-the-default-output-folder-for-app-session/1305/2 "2021-02-04T14:41:00Z")

</div>

Try setting `OOD_DATAROOT=/path/to/scratch/for/$USER` in the `/etc/ood/config/apps/dashboard/env` file.

Let me know if the paths to your user’s scratch spaces cannot be easily resolved to “fixed path” that varies with $USER or another environment variable in the PUN’s environment.

---

<div class="post-metadata">

**Author:** ![camarocico](https://avatars.discourse-cdn.com/v4/letter/c/ccd318/32.png) [@camarocico](https://discourse.openondemand.org/u/camarocico)\
**Post date:** [February 4, 2021, 3:19pm UTC](https://discourse.openondemand.org/t/how-to-change-the-default-output-folder-for-app-session/1305/3 "2021-02-04T15:19:36Z")

</div>

> [@efranz](#):
>
> ser’s scratch spaces cannot be easily resolved to “fixed path

I quickly tried it, and it seems to be working well, we have a uniform /scratch folder schema. I will try it next week system-wide, and hopefully everything works just fine then as well.

Thanks for the quick and helpful answer!

---

<div class="post-metadata">

**Author:** ![westburg.2](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@westburg.2](https://discourse.openondemand.org/u/westburg.2)\
**Post date:** [May 26, 2022, 3:43pm UTC](https://discourse.openondemand.org/t/how-to-change-the-default-output-folder-for-app-session/1305/4 "2022-05-26T15:43:00Z")

</div>


