changing storage in Nextcloud Docker AIO

Hi everyone,

I’ve recently installed Nextcloud AIO as a Docker image, and I’m trying to move all Nextcloud data to a specific partition I’ve mounted. Here’s my current setup:

  • The partition /dev/sdb1 is mounted to /mnt/nextcloud.
  • I’d like all Nextcloud data (user files, database, etc.) to be stored in /mnt/nextcloud instead of the default Docker volumes.

I’m not sure about the best approach to configure this without breaking the current setup. I’d appreciate your help with:

  1. Changing the data directory location in a way compatible with Nextcloud AIO.
  2. Safely migrating existing data, if necessary.
  3. Any potential configuration steps for Docker or Nextcloud itself to ensure everything works smoothly.

If anyone has done something similar or has step-by-step instructions, that would be amazing!

Thanks in advance!

Hi, see GitHub - nextcloud/all-in-one: 📦 The official Nextcloud installation method. Provides easy deployment and maintenance with most features included in this one Nextcloud instance.

1 Like