Hello,
I’ve not yet worked with NC on windows, don’t know a lot about your install (AIO, containers, etc.) but…
Option 1:
You’ll want to stop the nextcloud services.
Check out your NCData settings in the config.php (located in the nextcloud-aio-container, etc.)and look for the NCData path and the datadirectory settings.
To move the NCData location you’ll want to use something that will fully copy (move) all of the data, permissions, etc. from C: to D:. RoboCopy is a good example.
robocopy C:\NCDATA D:\NCDATA /E /COPYALL /MOVE
You’ll want to update the config.php with the new path information.
Make sure all of the permission settings are the same.
You may need to check the database path settings -
SELECT * FROM oc_storages;
UPDATE oc_storages SET id=‘local::D:/NCData’ WHERE id=‘local::C:/NCData’;
Restart the system and check for errors.
Option 2 (Docker, AIO):
If you installed using AIO you can run through the process of re-running the installer script. Say your install is on Docker Desktop…
Stop nextcloud containers, relocate the NCDATA folder and all subfolders and files (robocopy), make sure the D:\NCDATA directory is accessible/shared to docker desktop, re-run the docker script (example below) then start nextcloud and look for errors.
After you copy the data from C: to D: always a good idea to at least rename the directory on the C and use it as a temp backup and then delete it once your changes are stable and you have a new backup process running.
docker run -it --rm -p 8080:8080 -p 8443:8443
-v nextcloud_aio_mastercontainer:/mnt/docker-aio-config -v //d/NCDATA:/mnt/ncdata
nextcloud/all-in-one:latest `
–data-dir /mnt/ncdata