![]() ![]() all data of all users has to be in one dataset on freenas. I see your point of using nextcloud as the main (and one and only) way of accessing the dataset. Considering NFS is only for direct from a computer, that channel is already covered by Nextcloud. So indeed, I recommend not to access Nextcloud's backend with any other protocol to avoid desyncing its database.Īnd Yes, I recommend you do either NFS or Nextcloud but not both.Īs for having different ways to reach your data, Nextcloud offers you to do it over Web, over the mobile App as well as direct file access from a computer running the desktop client. To rollback one part to one moment in time and another to another moment is not any better. It will be even more important if you chose to turn on Encryption. Either you rollback your entire Nextcloud instance or not at all. Should you rollback only one dataset, the database can not be sync by definition. As said, Nextcloud is using a database in which all files are listed with their properties. With that, you will have different datasets for different users without the need for external storage.īut again, this is not really a good idea. On the dataset permissions wrx is give to user and group.īut which user and group should the folders in nextcloud jails be.Ĭan someone shed some light on this to help me understand it?įor your setup, what you can do is have your root Nextcloud dataset as /mnt/pool/root_cloudĪfter that, you create sub datasets as /mnt/pool/root_cloud/user1 and /mnt/pool/root_cloud/user2. Pw groupadd -n usergroup -g 1001 <- 1001 is the same GID as the dataset in FreeNAS has. This does work but I don't have the permissions to write via from nextcloud webui or nextcloud desktop client. In the nextcloud jail these folder have owner 1000 and group 1000. In nextcloud I add the mount points under /mnt as local external storage. The user datasets in FreeNAS have permissions like userX:usergroup. However I am struggeling with permissions. In nextcloud webui I created user accounts for them and activated external storage as well as connected these local external storages. ![]() I created mount points in nextcloud jail to /mnt/userX This works as it's supposed to be.įurthermore I installed the Nextcloud plugin (v17.1) and would like to use these datasets as local external storage dedicated for each user. For both datasets I created NFS shares which are being mounted to the linux machines of these users. Running FreeNAS 11.3 I created datasets for two users. If MySQL isn't set up sensibly, you can find the password for the nextcloud database user in the config file and run mysqldump -u nextcloud -p nextcloud > file.sql, and then enter the password when it prompts you.There are already a lot of questions into to same direction, however I still can't get it work nor do I saw anybody being successful. If MySQL is set up sensibly ( i.e., the root user's password is saved in /root/.my.cnf), you can do this by simply running mysqldump nextcloud > file.sql (replacing file.sql with whatever filename you want). If it's using mysql, the mysqldump command will do the job. To find that, from inside the jail, run find / -name config.php.īacking up the database is going to depend on the database backend in use-at one point, I think the plugin was using SQLite, which strikes me as a very poor choice for any but the most trivial installations. The location of that directory will vary with the installation method, but probably the easiest way to find it is to see what the config file says. The data itself, barring use of encryption, is stored in clear text in the data directory, in subdirectories for each user. ![]() But whichever way you use it, the important thing is to back up the data directory and the database. There are a number of better ways to use Nextcloud than the plugin (insert shameless plug for ). Once I find it will install rclone and backup to Backblaze B2. Inside the jail, I find / -name nextcloudĪsking here rather than Nextcloud forum because I suspect the answer will be different for the plugin default locations. The folder /usr/pbi/nextcloud-amd64/www/nextcloud/config does have a config.php, but the PBI in the path implies this was the install folder not the active folder right? On second glance, it also has a data folder and a log, so perhaps this is the active folder to backup? The Nextcloud docs seem simple but are incomplete and confusing ( ).ĭo the "config, data and theme folders" refer to everything in the web root? If so, /usr/local/not "config.php". Have been unable to find a decent guide to backing up my FreeNAS Nextcloud jail's data. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |