# Change Nextcloud data storage

**URL:** https://dietpi.com/forum/t/change-nextcloud-data-storage/15236
**Category:** Troubleshooting
**Created:** [13 December 2022 15:36 UTC](https://dietpi.com/forum/t/change-nextcloud-data-storage/15236 "2022-12-13T15:36:55Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![ParanoidNemo](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/p/f04885/32.png) [@ParanoidNemo](https://dietpi.com/forum/u/ParanoidNemo)
#### Post date: [13 December 2022 15:36 UTC](https://dietpi.com/forum/t/change-nextcloud-data-storage/15236/1 "2022-12-13T15:36:55Z")

</div>

Ok, so, I’ve installed Nextcloud using dietpi-software, but my installation of dietpi is on a very small sd card so I would like to move the storage folder into the external ssd always attached to my Raspberry Pi Model B.  
Reading on the Nextcloud forum I see that moving data storage after installation is unsupported and that Nextcloud should ask where you want your files during installation. I suppose that due to the automatic installation via dietpi-software that doesn’t happens, so I was wondering if this is an issue that will be resolved or could I resolve in any way or the only option is uninstall and then install Nextcloud “manually” and not with the dietpi utility.

I would like to use the suggested method [here](https://dietpi.com/forum/t/nextcloud-how-to-change-data-directory/1235) and then reinstall Nextcloud with dietpi utility but the link isdead. also I’m wondering if this procedure can create problems with other software I’ve installed (e.g. minidlna)

Thanks in advance

---

<div class="post-metadata">

### Author: ![TahitianVibes](https://dietpi.com/forum/user_avatar/dietpi.com/tahitianvibes/32/3058_2.png) [@TahitianVibes](https://dietpi.com/forum/u/TahitianVibes)
#### Post date: [13 December 2022 15:53 UTC](https://dietpi.com/forum/t/change-nextcloud-data-storage/15236/2 "2022-12-13T15:53:50Z")

</div>

hiii @ParanoidNemo ,

I think the dead link in the forum is this one [DietPi tools - DietPi.com Docs](https://dietpi.com/docs/dietpi_tools/#dietpi-drive-manager)  
you can use `dietpi-drive-manager` to move either `/rootfs` or only `User data` .  
I don’t know what is the best choice for your NextCloud installation .

Have a good day 🤙

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [13 December 2022 16:07 UTC](https://dietpi.com/forum/t/change-nextcloud-data-storage/15236/3 "2022-12-13T16:07:05Z")

</div>

Yes user our drive manager, mount your attach SSD and select it to move user data. This way, NC data will be moved automatically.

---

<div class="post-metadata">

### Author: ![ParanoidNemo](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/p/f04885/32.png) [@ParanoidNemo](https://dietpi.com/forum/u/ParanoidNemo)
#### Post date: [13 December 2022 16:18 UTC](https://dietpi.com/forum/t/change-nextcloud-data-storage/15236/4 "2022-12-13T16:18:06Z")

</div>

Oh ok, so I don’t have to reinstall NC? Better than expected

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [13 December 2022 16:39 UTC](https://dietpi.com/forum/t/change-nextcloud-data-storage/15236/5 "2022-12-13T16:39:53Z")

</div>

> [@ParanoidNemo](#):
>
> Oh ok, so I don’t have to reinstall NC?

Yes correct, DietPi will do the magic for you.

---

<div class="post-metadata">

### Author: ![cdsw](https://dietpi.com/forum/user_avatar/dietpi.com/cdsw/32/6939_2.png) [@cdsw](https://dietpi.com/forum/u/cdsw)
#### Post date: [23 May 2024 09:37 UTC](https://dietpi.com/forum/t/change-nextcloud-data-storage/15236/6 "2024-05-23T09:37:15Z")

</div>

Can you elaborate on the step needed a little bit more in detail. Having the exact same challenge than OP.

Mounted and formated and external SSD via the Drive Manager and installed via dietpi software nextcloud.

And want to move now the storage location to this external SSD

---

<div class="post-metadata">

### Author: ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)
#### Post date: [23 May 2024 10:03 UTC](https://dietpi.com/forum/t/change-nextcloud-data-storage/15236/7 "2024-05-23T10:03:00Z")

</div>

You can use `dietpi-drive_manager` to move the user data:  
[https://dietpi.com/docs/dietpi\_tools/system\_configuration/#move-the-location-of-user-data-and-swap-file](https://dietpi.com/docs/dietpi_tools/system_configuration/#move-the-location-of-user-data-and-swap-file)

---

<div class="post-metadata">

### Author: ![cdsw](https://dietpi.com/forum/user_avatar/dietpi.com/cdsw/32/6939_2.png) [@cdsw](https://dietpi.com/forum/u/cdsw)
#### Post date: [23 May 2024 10:20 UTC](https://dietpi.com/forum/t/change-nextcloud-data-storage/15236/8 "2024-05-23T10:20:45Z")

</div>

Ah ok I get it. Let me check that out in the afternoon

---

<div class="post-metadata">

### Author: ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)
#### Post date: [21 August 2024 10:20 UTC](https://dietpi.com/forum/t/change-nextcloud-data-storage/15236/9 "2024-08-21T10:20:59Z")

</div>

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