Move data directory on snap

Hi all,

I’ve installed nextcloud 12 by a snap on my ubuntu server.

But the max storage is on different sda (sda3) than the snap (sda2). I’m limited by the partition sda2 and want move data-directory on sda3 (exactly in /Home directory)

I try to do that with modify /var/snap/nextcloud/current/nextcloud/config/config.php

And i’ve change default data directory

/var/snap/nextcloud/common/nextcloud/data

by

/home/nextcloud/data

and i use : sudo snap disable nextcloud

copy old directory to new directory

and change permission of /home/nextcloud/data by root and 750

and use : sudo snap enable nextcloud

But when i try to log in, nothing load, i stay on login page… When i try to use client, i’ve this error : server replied: Forbidden (Could not create directory //3685435209)|403|0|0|||INST_NONE| in log files

Can you help me to move directory correctly and attribute correct permission ?

Thx a lot !

I try again to move data-directory, but same problems… someone have an idea before i reinstall all serv ?

Hi @Claymenia,

Sorry for the very late response. If you are still looking for a solution, this might be helpful: