How to separate Nextcloud data and the file directory?

Nextcloud version (eg, 29.0.5): 30.0.0
Operating system and version (eg, Ubuntu 24.04): Debian 24.11
Apache or nginx version (eg, Apache 2.4.25): 2.4.25
PHP version (eg, 8.3): 8.3

The issue you are facing:

Nextcloud performance is slower than expected. I have long load times opening the website, eventhough I have a 250GB SSD for the OS and 2x 4TB HDD’s to store files.

During the setup I had used this command to move nextcloud:

sudo mv -v /var/www/nextcloud/data /mnt/HDD1/nextcloud/data

Steps to replicate it:

  1. Browse Nextcloud via external or internal IP inside a browser

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

  'datadirectory' => '/mnt/HDD1/nextcloud/data',

I feel like the setup is bad, as it copied a lot of Nextcloud files to the HDD.

What’s the better way to keep as much as possible on the SSD and only store the actual files users upload on the HDD?

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