Nextcloud data folder on other HDD

Hi all i am new here :slight_smile: I have a question how to set other data directory on other HDD because i don’t find anything in documentation (other than default /var/www/nextcloud/data) ?

I think it’s inside the config.php But I’m not sure

Within /path/to/nextcloud/config/config.php you can change the data directory, however it’s likely a better idea to move the data folder you have already and create a symlink from /path/to/nextcloud/data to /path/to/other/hdd/data

Good luck.


Is it possible to change the location to ~/.nextcloud?

Thanks for the straightforward answer Jason. Is there a reference for this in the documentation somewhere? I’m trying to understand why it’s a better idea to put the symlink instead of changing things on the config files.