# Relocating /home/$user/ondemand folder

**URL:** https://discourse.openondemand.org/t/relocating-home-user-ondemand-folder/2396
**Category:** Get Help
**Tags:** question
**Created:** [December 8, 2022, 4:50pm UTC](https://discourse.openondemand.org/t/relocating-home-user-ondemand-folder/2396 "2022-12-08T16:50:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![malingoj](https://avatars.discourse-cdn.com/v4/letter/m/3d9bf3/32.png) [@malingoj](https://discourse.openondemand.org/u/malingoj)
#### Post date: [December 8, 2022, 4:50pm UTC](https://discourse.openondemand.org/t/relocating-home-user-ondemand-folder/2396/1 "2022-12-08T16:50:27Z")

</div>

Hi all,

During Office Hours one of our staff was told that there was a OOD\_ROOT\_PATH variable that I could set in /etc/ood/profile to move (in our case) /home/$user/ondemand to /projects/$users/ondemand as ondemand files were filling up home directories and causing various fun problems. I attempted doing it but since this seems to be an undocumented feature, I couldn’t figure out what syntax I should use for this.

Or is there a better way to do this?

Thanks in advance,

Joe Malingowski

---

<div class="post-metadata">

### Author: ![travert](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/travert/32/3074_2.png) [@travert](https://discourse.openondemand.org/u/travert)
#### Post date: [December 8, 2022, 5:13pm UTC](https://discourse.openondemand.org/t/relocating-home-user-ondemand-folder/2396/2 "2022-12-08T17:13:40Z")

</div>

I think the location you are looking to set that would be `/etc/ood/config/apps/dashboard/env` and add the environment variable in that location to have it take effect.

The syntax from what you posted I think would be:

```auto
OOD_DATAROOT=/projects/$USER/ondemand

```

Also, if you set this, the `myjobs` app will also need an `/etc/ood/config/apps/myjobs/env` file to point to the same location you set in the `dashboard/env` so that the two are looking in the same place for the data.

Also, just to be sure, make sure to set that with `$USER` and not `$users` unless that `users` variable is something you’ve made and are trying to use, but I’m guessing you meant the environment variable. Just wanted to make sure that was known.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)
#### Post date: [June 6, 2023, 5:14pm UTC](https://discourse.openondemand.org/t/relocating-home-user-ondemand-folder/2396/3 "2023-06-06T17:14:11Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
