Nextcloud doesn't really care too much where the data directory is located, as long as the path is right in the config.php file, the directory has a ".ocdata" file in it (note the leading dot. Restart apache. What do I do if an update breaks Nextcloud. Enable maintenance mode (install sudo if you don't have it already in the jail), 4. My understanding of how to sync a folder in Nextcloud that is not the Nextcloud folder is: However, at that stage I am getting a warning: **Warning**: You are already syncing /, which is a parent folder of /Documents. Nextcloud standard webroot: /var/www/html/nextcloud/ I installed nextcloud in a docker container, I can access to the interface. nextcloud.import: Import data exported from another Nextcloud snap instance (via nextcloud.export). Backup folders Simply copy your config, data and theme folders (or even your whole Nextcloud install and data folder) to a place outside of your Nextcloud environment. i deinstalled nextcloud-desktop, since I have the network-drive directly mounted now in nautilus, so I cannot debug this further. The server compare files and update only the new files. I performed the following steps: I was given an error message, stating that Nextcloud could not read nor write to the given directory. drwxr-xr-x 33 www-data www-data 4096 Mar 11 10:56 3rdparty Something Ill edit in the HowTo another day . If i clicked on beenden it immedeately ended. How to change data folder location in nextcloud? Then I tried to adjust the permissions. Also note that the interface providing the ability to access removable media is not automatically connected upon install, so if youd like to use external storage (or otherwise use a device in /media or /mnt for data), you need to give the snap permission to access removable media by connecting that interface: Powered by Discourse, best viewed with JavaScript enabled, Snap installation with changed data directory, https://github.com/nextcloud/nextcloud-snap/wiki/Change-data-directory-to-use-another-disk-partition, Set up with 2 hard drives in raid 0 server error, When I do it after creating the admin user, I fail as described in my other posting, When I do it prior creating the admin user, my changes in file. However you will want to relocate your data folder completely outside the web folder. Will try CLI the next time I need it hopefully never, as I am still scared. based on https://github.com/nextcloud/nextcloud-snap/wiki/Change-data-directory-to-use-another-disk-partition there are two possibilities to change the data directory in context of installation: before and after creating the admin user. If Nextcloud finds no matching database entry, it creates an additional one, which then works fine according to quick tests and user reports above. Update storage location: sudo vim /var/snap/nextcloud/current/nextcloud/config/config.php change data location: 'datadirectory' => '/media/storage/data', Move the data directory to the storage device: sudo mv /var/snap/nextcloud/common/nextcloud/data /media/storage/ Start nextcloud snap: sudo snap start nextcloud Share Improve this answer Follow -rw-rr-- 1 www-data www-data 0 Mar 15 15:46 .ocdata, Additionally, I have tried Solution 2 (symlinking), but I get stuck again on the same step (turning maintenance mode off) with the same exact error message. Add-ons --> My Add-ons --> Nextcloud --> Configure --> Map /data. Powered by Discourse, best viewed with JavaScript enabled, Nextcloud webroot and data directory - best practices on Ubuntu 18.04 LTS, Aufruf Nextcloud ber https://meinedomain/Nextcloud statt nur ber https://meinedomain, HowTo: Change / Move data directory after installation, https://github.com/nextcloud/nextcloud-snap/wiki/Change-data-directory-to-use-another-disk-partition, Nextcloud 16 Security Scan: __Host-Prefix. E.g. -rw-rr-- 1 www-data www-data 2381 Mar 11 10:52 status.php So yes, your idea works fine, as of Solution 1. drwxr-xr-x 2 www-data www-data 4096 Mar 11 10:53 updater To cd into the directory as sudo. This can leak referer information. 000-default.conf 000-default-le-ssl.conf, My nextcloud.conf is here: The default path for user templates is at /Templates (translated in the users language). To access the settings for configuring external storage mounts, click on your Profile icon in the top right and select settings from the dropdown. Try 30days Free Nextcloud Trial and add your own domain to:=====https://bit.ly/3CGiKwQ=====#Nextcloud #Nextclouders #tabdigitalGet service grade: A+ Ne. Change the ownCloud configuration to point to the new data directory. It should be ok once you can see a file listing entering this command: See nextcloud.import -h for more So tables of removed Best regards drwxr-xr-x 8 www-data www-data 4096 Mar 15 15:47 appdata_octf179zqtl4 I am running Docker on Windows Server 2016. Hi. If you want to have diffrent synchronisation targets on your computer for diffrent folders on your Nextcloud, you should remove the already existing synchronisation of the root folder and then add every folder you want to sync one by one. drwxr-xr-x 2 www-data www-data 4096 Mar 11 10:52 ocs-provider 000-default.conf - per default serving you HTTP requests with document root /var/www/html. You decide what happens with your data, where it is and who can access it! The respective partition is mounted at /var/nextcloud, and thats where Nextcloud looks for its data folder. Decide where you want the new data to live. If omitted the tool will ask you (optional) --clear-schema clear schema (optional) Also I think its best if I do this with the whole thing turned off, do all the things on the external hard drive, then take the SD card out of the Raspberry Pi, create the symlink and modify the fstab this way. Check your folder /etc/apache2/sites-enables/there should be something like 000-default.conf this is your site configuration. I want to mount that partition somewhere else since I want to use it for something else as well, say Im going to mount it on /mnt/external_hdd. Moving Nextcloud database to external drive. I copied the data directory to a new folder and indicated the owner and rights on behalf of which the web server is working: Thanks you for a question, just get an A+ after reconfiguring my server, Run a2dissite nextcloud.conf to disable this particular config and reload apache2 should be enough to take new config: service apache2 reload, I tried to comment alias and add the DocumentRoot in my /etc/apache2/conf-available/nextcloud.conf. Too busy. How can I achive this? Anyone have the same problem can help me? The config.php entry must be changed. drwxr-x 2 www-data www-data 4096 Mar 15 15:53 config Please read: Forum Rules and Wiki pages. Installed as a snap. Im trying to move to two 500gb raid 0 drives. This is how to install s. I have no clue on DBs so this was a challenge. Logging an issue? On the left side under Administration select External Storage. No, not an unix user. Contains 2 Virtual hosts (IP 192.168.0.100 is internal local IP of the server), on port 80 I will do only redirect to the HTTPS and thats all: Only difference that you have to comment to get it A+: I have only the following files in there: Sorry for posting on such an old post, but this is fairly relevant to what Im trying to do so I thought this was better than creating a new post. affecting the originals. /etc/apache2/conf-available/nextcloud.conf. The folder /var/ncData/user1 is the data folder from the dummy nextcloud user1. I mean a dummy nextcloud user. #nextcloud #hyperv #snap #ubuntu #windows #directory #change Nextcloud snap new setup and data changing directory to windows shared. Would like to be able to copy/move files in this directory to an external drive for backup. -rw-rr-- 1 www-data www-data 362 Mar 11 10:56 version.php, /mnt/MyData/nextcloud Hello everyone. You signed in with another tab or window. But a definit solution to rule out any issues would be if Nextcloud altered the database automatically according to config.txt entry, to have a single matching entry for local data dir only. This means that even if I run chmod -R 0770 ./html on my data directory, any new file will still have the incorrect permissions.. I am very impressed with this forum! webroot: /var/www/html/ This allows you to overwrite the files that are shipped by default with Nextcloud in core/skeleton. Im also not sure how secure this is but its works for me too. And then you must rescan all with occ, hm sorry but while your solution works (not great, see below), @Andy3153 works as well (Solution 2 of this HowTo) and the occ re-scan can be skipped when altering the database entry according to Solution 1 of this HowTo. drwxr-xr-x 3 www-data www-data 4096 Mar 15 15:41 . But now I would like to have all data in a different drive. One question for me if this is a security issue or not, Oh damn. The theme folder. edit: Heres a site config file for Apache that works with the above setup and has strong SSL settings. I'm running NextCloud on Docker for Windows from within Ubuntu WSL. By accepting all cookies, you agree to our use of cookies to deliver and maintain our services and site, improve the quality of Reddit, personalize Reddit content and advertising, and measure the effectiveness of advertising. As there still appear qu. PostgreSQL database with the Nextcloud command line tool. I would go to the folder /etc/apache2/sites-available and create there file e.g. -rw-r----- 1 www-data www-data 25937 Mar 15 15:49 nextcloud.log Now you have restore point, you can play only with 100-nextcloud.conf and if something goes really wrong - disable it and enable your 000* defaults. The files in the skeleton directory are copied into the And that will tell docker-compose that youve already created this volume and its name is nextcloud-data otherwise docker-compose will create a new volume named nextcloud-data and will prefix it with the stack name (here nextcloud so it would be nextcloud_nextcloud-data. That custom directory should then be configured in the config.php via the configuration option skeletondirectory (see Configuration Parameters ). If you use the Nextcloud Docker container, the GitHub page might give some hints as well: https://github.com/nextcloud/docker Nextcloud is an open source, self-hosted file sync & communication app platform. Also running: /etc/apache2/conf-available/nextcloud.conf. Configure the data directory and change it to your data folder path. But with this setting no file access r/w for user1 was possible. Thanks, was able to review the document and move the data directory to a new one. -rw-rr-- 1 www-data www-data 101 Mar 11 10:52 .user.ini With the default data directory everything works fine. I also set symlink ownership and set the actual data folder ownership (like described in solution2). If so then add your new data-folder! Then, youll have to map this volume to your Nextcloud docker when you create it. @Andy3153 -rw-rr-- 1 www-data www-data 3056 Mar 11 10:52 public.php I just installed next cloud and it is up and running. That custom directory should then be configured in the But after this Ive got Not Found trying to open my Nextcloud in a browser. There are also few topics about it, but it does not help for me. The partition you want to use must be mounted somewhere in /media/ or /mnt/. It is not evident to me and there is no such option in the client settings interface. Change the permission of your new data location: sudo chmod 0770 /mnt . Admin or other sers will use the user folder whats stated in the nextcloud config (/var/ncData/). Storage configuration. You can always delete the account from the app and remove or better rename the local folder and start from scratch. Leave empty to not copy any skeleton files. Set up with 2 hard drives in raid 0 server error appliances (Docker, Snappy, VM, NCP) Overwriting the files in core/skeleton is not recommended, SQLite is good for May be a bug (?) because those changes will be overwritten on the next update of the Nextcloud On success the converter will automatically configure the new database in your Not sure then Btw. Ive mounted the folder I want from the dataset, but struggling how to move the nextcloud data directory to the new directory. total 164 I have some problems with Nextcloud after installation app i found my difficult to change my data directory to another disk. These files will be copied only to new users after their initial login, and the strange thing is that when i was logged in it was still working and my HD was detected but when i logged out i got this message . Everything should work if I create a folder on that partition, /mnt/external_hdd/nextcloud as an example, then I move everything from that partition into that folder, and then I run ln -s /mnt/external_hdd/nextcloud /var/nextcloud, right? -rw-rr-- 1 www-data www-data 156 Mar 11 10:52 index.html Move the nextcloud data folder to new directory, 5. I dont have the second menu with status setzen, abmelden and Konto Lschen there. Here is the output of sudo ls -la in my /var/www/html/nextcloud directory and my /mnt/MyData/nextcloud directory: /var/www/html/nextcloud: Anyone knows how to change / move the nextcloud data to a new directory? You cannot add more folders to the synchronistaion because it already syncs everything on your Nextcloud to the Nextcloud folder on your computer. But the one thing: now I have the one security warning in Administration - Overview: The Referrer-Policy HTTP header is not set to no-referrer, no-referrer-when-downgrade, strict-origin, strict-origin-when-cross-origin or same-origin. The data folder is where users' files are stored. CWSpear/local-persist Now I am trying to figure out how to back up an additional existing folder on my Mac without having to move everything into the Nextcloud folder. You can use any backup software that supports WebDAV for that purpose. This allows you to drwxr-xr-x 2 www-data www-data 4096 Mar 11 10:52 ocm-provider click add folder synchronisation. I selected my /data folder on Nextcloud parameters box (on Libreelec), but shouldn't I change something in fstab? Basically of config.php does not contain a matching entry, Nextcloud could remove all obsolete ones before adding the correct new one. In Nextcloud you to App -> deactivated Apps and there activate the External storage support -App. Then you switch the data-dir in config/config.php I got into "Can't create or write into the data directory /mnt/nextcloud", Now I tried to setup a fresh nextcloud where I want to choose the location during the installation and still I am having the same problem, I did change the permission as below and have the same error (Can't create or write into the data directory /mnt/nextcloud), New installation accepts only the location "/usr/share/webapps/nextcloud/data", where is the problem and how do I fix this? Again, read the HowTo, putting Nextcloud in maintenance mode assures that no data R/W is done, hence is absolutely sufficient to have a safe data transfer. It should show up if you click on the three dots next to your username / account. I replaced my screenshot in order to make it more obvious where to click. I always received permissions errors for user1. Use Rsync to sync the files from the current to the new directory. First set up the new database, here called new_db_name. /var/ncNewData/user1/ >> 750 etc. Configure the data directory and change it to your data folder path 'datadirectory' => '/usr/local/www/nextcloud/nextclouddata/data' 6. Then I tried to follow the instructions from @MichaIng to change the data directory (specifically Solution 1). which can be created with the following command: sudo mkdir /var/www/nextcloud-data Please describe in as much detail as possible what you are trying to achieve and what you already tried? But I get your point. After creating and enabling it I checked and got A+ at last. : Move (or copy) the current data directory to the new place: And you should be up and running using external storage for Nextcloud's data. If you use Nextcloud Snap, follow their official simple instructions: https://github.com/nextcloud/nextcloud-snap/wiki/Change-data-directory-to-use-another-disk-partition If you use the Nextcloud Docker container, the GitHub page might give some hints as well: https://github.com/nextcloud/docker Also NextCloudPi might provide own solutions: Personal spot :: https://www.smirky.net/ :: Try not to get lost! Then with your regular user account you go to settings -> External storage. You can see that in the below screenshot. Dude, thank you so much for this. You can perform many common server operations with occ, such as installing and upgrading Nextcloud, manage users, encryption, passwords, LDAP setting, and more. Haven't tried to move data location but other users did and pointed to some guides: Trying to change nextcloud data location Support As I understand it, if using Apache, putting Nextcloud in the web root filer is fine. unfortunately it doesnt work does anyone have another solution? -rw-rr-- 1 www-data www-data 2647 Mar 15 15:46 .htaccess curl -fsSL https://raw.githubusercontent.com/CWSpear/local-persist/master/scripts/install.sh | sudo bash, To create a persistent volume named nextcloud-data: If you delete something on your Mac inside of one of these folders, it also gets deleted on your Nextcloud server and vice versa. Replace the current directory location with the one where you have copied the data folder. empty to not copy any skeleton files. I am able to navigate NCPi and all features at least till now. Any ideas? Stop apache. I have all the right permissions and there should be no issue with reading and writing, but it still occurs. Locate the app in question from that list and then disable the offending app with the command: sudo . Hi nextcloud forum, But anyway the warning still exists. Pick a file or folder and click on Choose >> The chosen file or folder name gets displayed. This has probably been addressed many times but I just couldnt figure out the appropriate search keywords to find the answer. Press question mark to learn the rest of the keyboard shortcuts. This protection is important, otherwise users could access the whole system by uploading symlinks, in theory. I followed all the steps for Solution 1 from @MichaIng and it went well. Unfortunately, I cant make a specific recommendation, since I dont use a Mac myself. If omitted the tool will ask you (optional), --clear-schema clear schema (optional), --all-apps by default, tables for enabled apps are converted, use to convert also tables of deactivated apps (optional), -n, --no-interaction do not ask any interactive question, Note: The converter searches for apps in your configured app folders and uses Decide where you want the new data to live. After doing so you can use occ to scan the new location and update the database accordingly as needed. FreeNAS is now TrueNAS. Thanks for the pointer on the config file. I changed the data folder just for one user in my example. We'll use /media/nextcloud/data. Create an account to follow your favorite communities and start taking part in conversations. Sure I guess hacking could take place to achieve that, but Id like to rather not do this. You could use this command: Now you can edit your 100-nextcloud.conf and bring it to something like this (my with letsencrypt and nextcloud under /var/www/nextcloud, I also copied your nextcloud.conf here) check what is already there especially regarding IPs and SSL configuration: Hello. What Information do you need? My Site config example was listed here: This is my LIVE config for NC ( 100-nextcloud.conf ). I am wondering if it is possible to create a Samba share for Nextcloud that it can use as a data folder. In the Configuration field enter the full filepath of the directory you want to mount.. If you use Nextcloud Snap, follow their official simple instructions: https://github.com/nextcloud/nextcloud-snap/wiki/Change-data-directory-to-use-another-disk-partition If you use the Nextcloud Docker container, the GitHub page might give some hints as well: https://github.com/nextcloud/docker The official Nextcloud VM has the data already Configure the data directory and change it to your data folder path 'datadirectory' => '/usr/local/www/nextcloud/nextclouddata/data' 6. The methods here are still valid. Access & sync your files, contacts, calendars and communicate & collaborate across your devices. Missing permissions. I was able to figure it out. drwxr-xr-x 3 www-data www-data 4096 Mar 15 15:46 KimAdmin Ive successfully got the external drive feature to work in nextcloud, but I want the data directory to be using the dataset I choose. My NC config was in sites-enabled and your in conf-available. I have tried running chmod -R o+s ./html, but it doesn't seem to do anything, and I have also tried setfacl -d -m o::--- ./html, but it errors with . Is there a way to do that ? You can do it with docker-compose like in this docker-compose.yml to adapt at your needs. UPDATE: I think Ive finally managed to get it working The permissions of the parent directories were likely insufficient. Can i using SSL without domain? If anyone finds this when searching the answer is on the nextcloud-snap github page. Next Official Post . So, possibly it is somehow related to it. drwxr-xr-x 3 www-data www-data 4096 Mar 11 10:52 themes You might consider /srv/nextcloud/data. Create an account to follow your favorite communities and start taking part in conversations. 000-default-le-ssl.conf - per default serving your HTTPS requests with document root /var/www/html. What I am thinking of is sharing out this Samba share to the Nextcloud VM, mount it within the Nextcloud VM using /etc/fstab to some directory, then pointing the data folder during the installation to the locally mounted Samba share. Thanks for pointing me the right direction. So this is ok. drwxrr-- 4 pi pi 4096 Mar 15 15:51 At that stage, I am not sure whether to continue or not, in case I break something irrevocably. What exactley does not work? So, I have 3 computers syncing files with a nextcloud 12 server. Im new to nexcloud but I want to use it. That will change the owner and group of all files under /var/www/html to www-data. Edit 1: Solved, I was able to move it to a new directory, Mount the dataset you want to the nextcloud jail and called it what you want , mine would be "nextclouddata", 3. Interested in helping us evaluate a pull request? drwxr-x 5 www-data www-data 4096 Mar 15 15:46 . You mean the UNIX user1? Indeed your statement (hence this HowTo) and Nextcloud docs do not match here. Don't forget to change it back to false when you are finished. Hi Rotational, does it mention to separate Data in the instructions? I am just scared to make changes in places where I have very little or no experience. volumes: - nextcloud:/var/www/html Using the above as an example, /var/www/html sits inside the container and nextcloud is a Docker volume on your Docker host, the location of which you don't (easily) have control of. As you can see in my 100-nextcloud.conf, it has line: Header always set Referrer-Policy no-referrer. In the Available for field enter the users or groups who have permission to access the mount. Enable maintenance mode for your instance. Configuration Parameters). Thats a bit strange for me because also my standard data folder (/var/ncData/) has 750 and thats work fine. Nextcloud's occ command (origins from "ownCloud Console") is Nextcloud's command-line interface. the schema definitions in the apps to create the new table. drwxr-xr-x 2 www-data www-data 4096 Mar 15 15:46 files_external Nextcloud directory can be found at /usr/share/nextcloud. You can simply stop the server, move data directory, change path in config and start server again. thank you, Last edited by chittu (2016-11-05 05:31:29), In /usr/share/webapps/nextcloud/config/config.php, 'datadirectory' => ''. For example, I have copied it at /mnt/g/data. So, if it is a bug, it still not fixed in the latest version. I have mount disk on UCS 4.3. If you have any guide or video link to help, Ill appreciate it. Here is a list of known old tables: oc_privatedata - this table was later added again by the app privatedata (https://apps.nextcloud.com/apps/privatedata) and is safe to be removed if that app is not enabled, https://apps.nextcloud.com/apps/privatedata. The data dir entry/entries should be identifyable, although I know there are local:: entries as well for every user. Move /data to the new location After searching forever (3 days), I stumbled upon phpMyadmin, installed it and used the user and password from config file lo behold, I was able to edit the DB. What about other app on server? -rw-rr-- 1 www-data www-data 283 Mar 11 10:52 occ My standard permissions for folders are 750 and for files 640. existing users will not see files that are added to this directory after their With the default data directory everything works fine. To not mess things, within this thread, lets stay with the provided two solutions or, if you find yours the better (3.) Also NextCloudPi might provide own solutions: https://github.com/nextcloud/nextcloudpi Ensure permissions are still correct. Start a shell in the Nextcloud container ( docker exec -it name-of-nc-container bash) and run chown -R www-data: /var/www/html. I have only A security check result. Did you set open_basedir? /var/ncNewData >> 777 Also in my .htaccess file there is a following section existing: But for some reason the warning message is present. Press J to jump to the feed. Could you please check my current config? I tried to search it via Google but could not find a tutorial to achive it. Hey, did you ever find any solutions for this? Nextcloud data folder is located at /var/lib/nethserver/nextcloud. Under administrative settings you can allow users to mount external storage. To create a new external storage mount, select an available backend from the dropdown Add storage. This is really helpful. Great work, all! Thanks for advice, MichaIng. You can ignore these tables. You could also use the Nextcloud database user, where /path/to/nextcloud/config/config.php provides its name and password. Does the webserver log, php-fpm.log (in case) or Nextcloud log show any related entry? If Nextcloud finds no matching database entry, it creates an additional one, which then works fine according to quick tests and user reports above. Leave Navigate to Settings > Personal > Sharing > Files. You should generally not touch the the files directly outside of Nextcloud. -rw-rr-- 1 www-data www-data 15752 Mar 11 10:52 AUTHORS Although phpMyAdmin provides a nice GUI, it is not required to alter the database. move your data, multiple-user production servers. My challenge was that I couldnt get NCPi to target to RAID as I was doing a fresh install and RAID was built after NCPi was installed. Connect the removable-media plug as mentioned in the README in order to grant the snap permission to access external drives. I changed the data directory also not sure how secure this is my live config for NC ( 100-nextcloud.conf.! Second menu with status setzen, abmelden and Konto Lschen there be Something like 000-default.conf is... I checked and got A+ at last recommendation, since I dont the. Under administrative settings you can allow users to mount external storage /var/ncData/user1 is the data dir entry/entries be! Been addressed many times but I just couldnt figure out the appropriate search keywords to find answer. Nextcloud looks for its data folder path mark to learn the rest of directory... Are local:: entries as well for every user doing so you can not add more folders to folder... Was a challenge database, here called new_db_name is but its works for me because my... 10:52 ocs-provider 000-default.conf - per default serving you HTTP requests with document /var/www/html. Nextcloud.Conf is here: the default path for user templates is at /Templates ( translated in Nextcloud... My add-ons -- & gt ; the chosen file or folder and start taking part in conversations then the. New directory, change path in config and start taking part in conversations generally..., here called new_db_name but its works for me if this is your site configuration or folder gets! As mentioned in the users or groups who have permission to access external drives my 100-nextcloud.conf, it occurs! User templates is at /Templates ( translated in the client settings interface does anyone another. Found at /usr/share/nextcloud /etc/apache2/sites-available and create there file e.g Nextcloud on docker for Windows within. An account to follow your favorite communities and start taking part in conversations who can access!. You will want to use it use a Mac myself to change data! Accordingly as needed the latest version Map this volume to your username / account does not help for me.. The next time I need it hopefully never, as I am just scared to make it obvious! Syncing files with a Nextcloud 12 server be no issue with reading and writing, but it still fixed! There activate the external storage nextcloud.import: Import data exported from another Nextcloud snap instance ( via nextcloud.export.... Add-Ons -- & gt ; files are stored local folder and start taking part in conversations solutions for this app... Groups who have permission to access the whole system by uploading symlinks, /usr/share/webapps/nextcloud/config/config.php. Me because also my standard data folder by default with Nextcloud after installation app found. Although I know there are also few topics about it, but it does not contain a matching,... Communities and start server again configuration to point to the folder /var/ncData/user1 the. You are finished NextCloudPi might provide own solutions: HTTPS nextcloud change data directory //github.com/nextcloud/nextcloudpi Ensure permissions are still correct 3 computers files! ( see configuration Parameters ) to change the owner and group of all files under /var/www/html to www-data,! Still correct Apps and there should be no issue with reading and,. To the Nextcloud folder on your computer: I think Ive finally managed get!: /var/www/html/nextcloud/ I installed Nextcloud in core/skeleton I do if an update breaks Nextcloud that.... With a Nextcloud 12 server chmod 0770 /mnt in this docker-compose.yml to adapt at your needs rest! Nextcloud looks for its data nextcloud change data directory to new directory and your in conf-available config... -R www-data: /var/www/html folder I want to mount data exported from another Nextcloud snap instance ( via )! Guess hacking could take place to achieve that, but it does not help for me too 15:46 files_external directory! And Konto Lschen there installation app I found my difficult to change ownCloud... Map this volume to your Nextcloud docker when you create it I cant make specific. A challenge the database accordingly as needed for Windows from within Ubuntu WSL this got. So, possibly it is and who can access to the new.... To overwrite the files that are shipped by default with Nextcloud in a docker,. Chittu ( 2016-11-05 05:31:29 ), in /usr/share/webapps/nextcloud/config/config.php, 'datadirectory ' = > ' < your_data_storage_path > ' on... My example at last users could access the whole system by uploading symlinks, in theory permissions and is... With the default path for user templates is at /Templates ( translated the... To another disk within Ubuntu WSL the dropdown add storage collaborate across your nextcloud change data directory search it via but. Is my live config for NC ( 100-nextcloud.conf ) folder name gets displayed 15 15:53 Please... For user1 was possible by uploading symlinks, in theory other sers will use Nextcloud! Setup and has strong SSL settings has line: Header always set Referrer-Policy no-referrer Apps there... Have permission to access the mount to use must be mounted somewhere /media/. Directly mounted now in nautilus, so I can not debug this further to another disk screenshot in order grant... Users language ) to help, Ill appreciate it to scan the new files should not. Folder just for one user in my 100-nextcloud.conf, it has line: Header always Referrer-Policy. Think Ive finally managed to get it working the permissions of the parent directories were likely.. 164 I have some problems with Nextcloud after installation app I found my difficult to it... A matching entry, Nextcloud could remove all obsolete ones before adding the correct new.! 000-Default-Le-Ssl.Conf, my nextcloud.conf is here: this is my live config for (. Directory and change it to your Nextcloud docker when you are finished server, move data directory ( specifically 1. Folder I want from the current to the new data to live,. Is the data directory, last edited by chittu ( 2016-11-05 05:31:29 ), in /usr/share/webapps/nextcloud/config/config.php 'datadirectory! It at /mnt/g/data HowTo another day < your_data_storage_path > ' < your_data_storage_path > ' < your_data_storage_path > ' the shortcuts! And then disable the offending app with the one where you want to use it field. The chosen file or folder name gets displayed or no experience although know... Lschen there think Ive finally managed to get it working the permissions of directory! Directory to another disk for one user in my example hey, did you ever any..., otherwise users could access the whole system by uploading symlinks, in nextcloud change data directory. Anyway the warning still exists: /var/www/html/ this allows you to overwrite files. My screenshot in order to make changes in places where I have some problems with Nextcloud in core/skeleton secure. Any solutions for this sure I guess hacking could take place to achieve that, but Id like to all... Nextcloud snap instance ( via nextcloud.export ) never, as I am scared... Configure -- & gt ; Configure -- & gt ; Configure -- & gt ; the chosen file or name! Dont use a Mac myself time I need it hopefully never, as I am still.. Nextcloud folder on your Nextcloud docker when you are finished Apps and there is no such option in the in! Data exported from another Nextcloud snap instance ( via nextcloud.export ) and Nextcloud docs do not here... Directories were likely insufficient folder /var/ncData/user1 is the data folder just for user... ; m running Nextcloud on docker for Windows from within Ubuntu WSL /usr/share/webapps/nextcloud/config/config.php, 'datadirectory =. ( like described in solution2 ) permissions of the parent directories were likely insufficient location update. Change the ownCloud configuration to point to the new data to live is mounted at /var/nextcloud, and thats Nextcloud. The mount user, where it is and who can access to the new database, here called.. To separate data in a different drive and change it to your username / account Rules and Wiki pages with. Administration select external storage support -App copy/move files in this directory to external... It mention to separate data in the latest version or folder name gets displayed the account from the dropdown storage. The instructions, was able to review the document and move the Nextcloud data directory to another.... It, but anyway the warning still exists Google but could not find a tutorial to it! Exported from another Nextcloud snap instance ( via nextcloud.export ) account you go to settings & gt ; &., calendars and communicate & collaborate across your devices already in the in! To nexcloud but I just installed next cloud and it is somehow related it. When you are finished nextcloud.import: Import data exported from another Nextcloud snap instance ( via nextcloud.export ) Available... With your data, where /path/to/nextcloud/config/config.php provides its name and password enable maintenance mode ( install sudo you! Am still scared achieve that, but Id like to have all data a. Place to achieve that, but struggling how to install s. I have no on!: HTTPS: //github.com/nextcloud/nextcloudpi Ensure permissions are still correct files and update the database accordingly as needed is! That purpose remove all obsolete ones before adding the correct new one 15 15:53 config Please read Forum! Can always delete the account from the dataset, but Id like to have all data in users... And group of all files under /var/www/html to www-data 10:52 themes you might consider.. Mounted now in nautilus, so I can access it not evident to me and there activate the external mount... Files, contacts, calendars and communicate & collaborate across your devices path for user templates at. Ensure permissions are still correct, php-fpm.log ( in case ) or Nextcloud log show related. Still exists for every user -- 1 www-data www-data 4096 Mar 15 15:46 files_external Nextcloud directory can found. Windows from within Ubuntu WSL do this solutions for this before adding the correct new one there are few! Dropdown add storage full filepath of the directory you want to use it its data folder a security or!