ladvv
(Uladzimir)
October 23, 2024, 12:40pm
1
Hello
I want to switch to Nethserver8. Mounted a virtual machine. Made 7 to 8 synchronization.
How can I replace the data directory in Nextcloud?
I mounted the NFS folder in fstab:
10.10.0.2:/nextcloud /mnt/nextcloud nfs defaults
Where/how can I change the data directory?
As it was before:
‘datadirectory’ => ‘/mnt/nextcloud/’
I tried via the link
ln -s /mnt/nextcloud /home/nextcloud1/.local/share/containers/storage/volumes/nextcloud-app-data/_data/data
didn’t work either
Thanks for any help
jaywalker
(Jaywalker)
October 25, 2024, 9:09pm
2
Nextcloud datadirectory on NFS is not yet supported on NS8.
This post contains useful information how you could do it inofficially:
Well I digged Podman documentation and I found a recipe that should work for any rootless module, more or less.
I assume the disk where we want to store the module data has been already formatted, configured in /etc/fstab and mounted on /mnt/disk00
In general, after installation (creation) module instances are in a stopped state. They require an additional configuration step to start. In this state they still have not created the volumes where persistent data is stored.
In this case, it is po…
I don’t know whether this will survive updates, so I would not use it on a production system until it is officially supported.
2 Likes
HI @ladvv
What does work, and very well, is using one or several Samba Share in Nextcloud.
This works rock solid and is supported, survives updates.
My 2 cents
Andy
4 Likes
pagaille
(Matthieu Gaillet)
March 29, 2025, 8:12pm
5
Hi @Andy_Wismer
Do you mean using Nextcloud’s external storage ? I don’t like that solution because it maps the external storage as a folder, not at root level, right ?
pagaille
(Matthieu Gaillet)
March 29, 2025, 8:45pm
6
! just saw that you can mount the external drive as “/”. Looks like a viable option !