The install put every file on the Ubuntu disk. Here is the careful sequence that moves the data directory onto the big disk - and why week one, while it holds almost nothing, is the time to do it.
By default the snap keeps user data in /var/snap/nextcloud/common/nextcloud/data - on the system disk. That disk is usually the small fast one. The good news: the move is a documented, well-trodden path. The honest warnings first: on the snap the new home must live under /media or /mnt because the package runs confined, and the move is a copy-while-stopped job, so do it early, before the data is measured in hours of copying.
Three preparations decide whether this is a calm job or a rescue:
/etc/fstab mounted under /media/datadisk or /mnt/datadisk, then reboot once and confirm it is there. A disk that only appears when someone clicks it in a file manager will vanish at the worst momentsudo snap connect nextcloud:removable-mediasudo mkdir -p /media/datadisk/datasudo snap stop nextcloudsudo cp -a /var/snap/nextcloud/common/nextcloud/data/. /media/datadisk/data/sudo chown -R root:root /media/datadisk/data and sudo chmod 0770 /media/datadisk/data/var/snap/nextcloud/current/nextcloud/config/config.php and change the datadirectory line to 'datadirectory' => '/media/datadisk/data',sudo snap start nextcloudDo not delete anything yet. Prove the new home in this order:
ls /media/datadisk/data shows your user foldersKeep the old data folder untouched for a few days of normal use. Only when the reboot test and a few days of uploads have passed is it safe to reclaim the space on the system disk.
Moving the data directory is not the only shape of growth. Nextcloud's built-in External Storage app can mount an extra disk or folder as additional space inside Nextcloud, leaving the main data directory where it is. That suits an archive disk - big, rarely changing files - very well. It is a weaker answer for the main home: quotas, trash and versions behave most simply when the real data directory itself has room. Rule of thumb: main disk filling = move the data directory; adding an archive = external storage.
datadirectory at a folder outside /media or /mnt, or forgetting the removable-media connection, ends with a data directory is invalid error. The path rule is not Nextcloud being difficult - it is the snap's confinement doing its job.The one-step install, and the fresh server this move completes.
Watch Full VideoYes, if the drive is mounted permanently under /media or /mnt through fstab and the removable-media connection is made. Keep it attached forever after - if the drive is missing at boot, Nextcloud starts to an empty or invalid data directory.
No. The copy command preserves the complete data folder including versions, trash and the hidden .ncdata marker file Nextcloud checks for. Verify by logging in and opening an older file before you delete the old copy.
In almost every case it is one of three things: the .ncdata file did not arrive (re-copy with the archive flag), the folder ownership or permissions are wrong (root ownership, 0770), or the path is outside /media or /mnt without the removable-media connection. Check them in that order.