Report this

What is the reason for this report?

Using Block Storage with Nextcloud: Can't move data directory

Posted on October 24, 2020
xr1s

By xr1s

Hi DO community,

For the life of me, I can’t figure out how to move the data folder for a snap Nextcloud I installed on a Droplet. I have 150GB of Block Storage that I want to use for the data folder. The little guideline I made and the steps I took:

lsblk mkfs -t ext4 /dev/sda mkdir -p /mnt/nextcloud_data mount -o discard,defaults /dev/sda /mnt/nextcloud_data lsblk sudo snap connect nextcloud:removable-media nano /var/snap/nextcloud/current/nextcloud/config/config.php sudo snap stop nextcloud sudo mv /var/snap/nextcloud/common/nextcloud/data /mnt/nextcloud_data sudo snap start nextcloud

In config, I setup data directory as /mnt/nextcloud_data …and now I get:

Your data directory is invalid Ensure there is a file called “.ocdata” in the root of the data directory

Any ideas on what went wrong?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.