Hey
@ddaenen1,
Jails are not very flexible. I do not use them for that reason. Here, I do run Nextcloud but from Docker containers. I can tell you what it takes to do it in the containers world.
The Nextcloud container itself is built using 5 volumes :
root = /var/www/html
config = /var/www/html/config
apps = /var/www/html/custom_apps
themes = /var/www/html/themes
data = /var/www/html/data
"Data" is an NFS share mounted by the docker host from my FreeNAS. It is then re-mapped inside the container.
The others are regular Docker volumes.
I also have a MariaDB container.
To restore my Nextcloud to another server, i need to :
--Recover the content of the 4 docker volumes that have been backed up as tarballs and re-create these volumes
--Deploy a new database container and restore the sqldump I took before
--Re-map the NFS share to the new docker host
--Deploy the Nextcloud container, mounting the 5 volumes in it and pointing it to the new database
And here we go : a brand new Nextcloud server running the previous config and serving the same data.