nextcloud change data directory

Im about to do a fresh re-install, and Ill use your suggested 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. But now I would like to have all data in a different drive. If you delete something on your Mac inside of one of these folders, it also gets deleted on your Nextcloud server and vice versa. NTFS). I am running Docker on Windows Server 2016. By rejecting non-essential cookies, Reddit may still use certain cookies to ensure the proper functionality of our platform. Next Official Post . i have set the datadirectory to 'datadirectory' => '/media/usbhd/data' my installation medium is: ubuntu20.04-preinstalled-server-arm64 my device is a: raspberry pi 3b in the folder usbhd i have the files: appdata_oc4rufk42j51 data files_encryption nextcloud.log. 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. In the Available for field enter the users or groups who have permission to access the mount. The data dir entry/entries should be identifyable, although I know there are local:: entries as well for every user. drwxr-x 2 www-data www-data 4096 Mar 15 15:53 config I have no clue on DBs so this was a challenge. Configure the data directory and change it to your data folder path. Nextcloud's occ command (origins from "ownCloud Console") is Nextcloud's command-line interface. In Nextcloud you to App -> deactivated Apps and there activate the External storage support -App. On the left side under Administration select External Storage. I installed nextcloud in a docker container, I can access to the interface. BTW, Im using Nextcloud 16.0.3. You can see details here: Does the webserver log, php-fpm.log (in case) or Nextcloud log show any related entry? Snap/Docker But I get your point. Create an account to follow your favorite communities and start taking part in conversations. PS: of course since youre running that on a Windows Server 2018, youll have to adapt the path. What exactley does not work? > Everything under *-available is something that you could use, but it is not. Too busy. But I am failing on both methods to change it: By default this imports the database, config, and data. But the issue with yours is that ALL old oc_filescache entries will stay, hence the database will grow enormously. Stop Apache. How to change data folder location in nextcloud? You signed in with another tab or window. drwxr-xr-x 2 www-data www-data 4096 Mar 11 10:52 ocs-provider Create an account to follow your favorite communities and start taking part in conversations. They appear on the users Nextcloud Files page just like any other files. : 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. It is a hidden file), the entire data directory is owned by the web user (www-data on Debian/Ubuntu and the derivatives. drwxr-xr-x 3 root root 4096 Mar 15 15:38 Ive got Nextcloud installed onto a Raspberry Pi 4 with 2 GB of RAM, running Arch Linux ARM with a LEMP stack. total 12 can't cd into nextcloud data directory. apps will not be converted even with option --all-apps. aptalca. If you need to override this path for all users, you can set, Configuring Object Storage as Primary Storage, External Storage authentication mechanisms. However you will want to relocate your data folder completely outside the web folder. It should show up if you click on the three dots next to your username / account. If you are an administrator, edit the "trusted_domains" setting in config/config.php like the example in config.sample.php. Dude, thank you so much for this. Please see the discussion, where it is mentioned that editing the database entry is indeed not required (as far as it was tested). This is not possible btw. Decide where you want the new data to live. How do you remove user from client sync? Therefore it creates the tables oc_storages for the data directory and oc_filecache for the files. 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. 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. with the question Continue with the conversion? -rw-rr-- 1 www-data www-data 26 Mar 11 10:52 robots.txt testing and simple single-user Nextcloud servers, but it does not scale for @b-pfl Thatss the nextcloud error message, when I change the permission from the new user folder (/var/ncNewData) to 750 and open a file: fopen(/var/nc_data/user1/files/files.pdf): failed to open stream: Permission denied at /var/www/nextcloud/lib/private/Files/Storage/Local.php#302, If I changed the permission back to 777 and everything works fine. -rw-rr-- 1 www-data www-data 283 Mar 11 10:52 occ Ill dig into it by times to check for safe ways to identify the correct entries. Press question mark to learn the rest of the keyboard shortcuts. one, do a suggestion to have it added. Nextcloud Data directory. You want it outside of /var/www/. 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: 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. Start a shell in the Nextcloud container ( docker exec -it name-of-nc-container bash) and run chown -R www-data: /var/www/html. the schema definitions in the apps to create the new table. Im having the same issue and have uploaded my issues cannt change data directory before or after adding admin. Restart apache. I don't know what steps i need to do to change my data directory. By default this includes the Nextcloud database, configuration, and data. I did a lot of other experiments like changing the snap enviroment variable NEXTCLOUD_DATA_DIR which is used in autoconfig.php with no success. config.php via the configuration option skeletondirectory (see What is the best location for the nextcloud data directory. -rw-rr-- 1 www-data www-data 156 Mar 11 10:52 index.html On the host the files will be owned by some . Then, youll have to map this volume to your Nextcloud docker when you create it. If altering the database on data dir transfer is recommended, then this should be just the same when migrating a Nextcloud instance to a different server and having a different data dir path there. webroot: /var/www/html/ See nextcloud.import -h for more Under administrative settings you can allow users to mount external storage. With the default data directory everything works fine. Please read: Forum Rules and Wiki pages. But after this Ive got Not Found trying to open my Nextcloud in a browser. Could you please check my current config? 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. Then Install as normal lets me add a user then try to move the data file over to the raid 0 in the config.php file and when attempt to log in through local host. to exit: $ exit To . Am I understood correct: after creating this config, the old one which is: /etc/apache2/conf-available/nextcloud.conf ? That custom directory should then be configured in the Only if you do not already syncing the root folder of your Nextcloud, which then would also include this newly created folder. It is not evident to me and there is no such option in the client settings interface. My understanding of how to sync a folder in Nextcloud that is not the "Nextcloud" folder is: Add folder sync connection Pick a local folder on your computer to sync (for example my Windows Documents folder) Select a destination folder on Nextcloud server (or create new, also called Documents) However, at that stage I am getting a warning: No, not an unix user. which are not used any more. them in directory that is readable by the webserver user. Double-check the directory permissions on the new directory. I replaced my screenshot in order to make it more obvious where to click. I found this stupid issue. Key element is the 777 permission on the ncNewData folder! You can do it with docker-compose like in this docker-compose.yml to adapt at your needs. -rw-rr-- 1 www-data www-data 2381 Mar 11 10:52 status.php I dont have the second menu with status setzen, abmelden and Konto Lschen there. Choose a displayed folder name and SMB / CIFS. If you have questions for use in a company or government at scale (>1000 users), do yourself a favor and contact Nextcloud itself - this community is mostly home-user focused! Please describe in as much detail as possible what you are trying to achieve and what you already tried? Once, to store nextcloud data, I created a raid and mounted it in a separate directory. You can perform many common server operations with occ, such as installing and upgrading Nextcloud, manage users, encryption, passwords, LDAP setting, and more. I dont like 777 permissions, so perhaps somebody can give us an advice if this is a security issue or not. 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 Nextcloud is an open source, self-hosted file sync & communication app platform. Great work, all! drwxr-xr-x 6 www-data www-data 4096 Mar 11 10:52 lib Honestly, I configured nextcloud, based on owncloud.As for owncloud itself, I configured it manually, not via the installer it provides, so I can't help you here. After that save it: CTRL+O and exit using CTRL+X. Basically of config.php does not contain a matching entry, Nextcloud could remove all obsolete ones before adding the correct new one. My data folder is on an external hard drive, at the root of a partition on it. click add folder synchronisation. Using the same setup, I put Nextcloud in /var/www/nextcloud/, and my Data folder in /opt/nextcloud/data. Thats my config: /var/ncData/user1 You decide what happens with your data, where it is and who can access it! I managed to get to step 8, but as soon as I try to switch off maintenance mode, I get the following error: Does anybody know why this is happening? drwxr-xr-x 2 www-data www-data 4096 Mar 11 10:53 updater drwxr-x 5 www-data www-data 4096 Mar 15 15:46 data My first plan was to install it directly with a data directory (/mnt/MyData/nextcloud/data). I have only A security check result. drwxr-xr-x 3 www-data www-data 4096 Mar 15 15:46 KimAdmin You can ignore these tables. Thanks for the pointer on the config file. drwxr-xr-x 33 www-data www-data 4096 Mar 11 10:56 3rdparty Connect the removable-media plug as mentioned in the README in order to grant the snap permission to access external drives. I trust youre right however not sure where it mentions it and therefore not sure where this data folder is that i need to separate. 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: You might consider /srv/nextcloud/data. Is there a way to do that ? This is really helpful. Im trying to to do an install Im having issues when I try and switch the data directory file over to mounted two drives in raid 0. Did you set open_basedir? Powered by Discourse, best viewed with JavaScript enabled, HowTo: Change / Move data directory after installation. Well, Stefan it really sucks that no one helped you out since I am having the exact same issue and cannot find a solution. I changed the data folder just for one user in my example. Installed as a snap. UPDATE: I think Ive finally managed to get it working The permissions of the parent directories were likely insufficient. Well the question is which storage to update. I followed all the steps for Solution 1 from @MichaIng and it went well. You set the correct rights for your nextcloud user for /mnt/external_hdd/nextcloud (use a linux formatted file system like ext4 or btfs). Move the nextcloud data folder to new directory, 5. 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. Youll have to create a volume with local-persist driver. Has anyone fixed been about to get it working. -rw-rr-- 1 www-data www-data 5048 Mar 11 10:52 cron.php Replace the current directory location with the one where you have copied the data folder. As there still appear qu. 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. Anyone have the same problem can help me? -rw-rr-- 1 www-data www-data 0 Mar 15 15:46 index.html Whats important in this file is the mapping between path within the Docker and the volume name: This will tell docker-compose that the /var/www/html will be in your volume that you created and named nextcloud-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: You can perform many common server operations with occ, such as installing and upgrading Nextcloud, manage users, encryption, passwords, LDAP setting, and more. After doing so you can use occ to scan the new location and update the database accordingly as needed. > Everything under *-enabled is something are using now. CWSpear/local-persist sudo mount --bind /mnt/kids /usr/share/webapps/nextcloud/data, All you need to do is append the path of your new data directory in the file, php_admin_value open_basedir "/srv/http/:/dev/urandom:/tmp/:/usr/share/pear/:/usr/share/webapps/nextcloud/:/etc/webapps/nextcloud:/srv/clouddata", [Solved] Nextcloud, change Data folder location. -rw-rr-- 1 www-data www-data 362 Mar 11 10:56 version.php, /mnt/MyData/nextcloud Ive mounted the folder I want from the dataset, but struggling how to move the nextcloud data directory to the new directory. Im installing Nextcloud 18.0.2 manually onto a Raspberry Pi 4 (Raspian 10 - Buster), using MariaDB. Touching files only with the webserver unix user www-data. Your webroot is /var/www/, and youll want to change the location of your data folder. overwrite the files that are shipped by default with Nextcloud in The config.php entry must be changed. You should generally not touch the the files directly outside of Nextcloud. Ive successfully got the external drive feature to work in nextcloud, but I want the data directory to be using the dataset I want it too. The theme folder. drwxr-x 5 www-data www-data 4096 Mar 15 15:46 . Please contact your administrator. Also running: /etc/apache2/conf-available/nextcloud.conf. This protection is important, otherwise users could access the whole system by uploading symlinks, in theory. Admin manual says :On other HTTP servers it is recommended to install Nextcloud outside of the document root., Assumptions: And then you must rescan all with occ, sudo -u www-data php occ files:scan --all, https://docs.nextcloud.com/server/19/admin_manual/configuration_server/occ_command.html, Wyh not NextcloudPi https://ownyourbits.com/nextcloudpi/, You set the correct rights for your nextcloud user for /mnt/external_hdd/nextcloud (use a linux formatted file system like ext4 or btfs). PostgreSQL database with the Nextcloud command line tool. Configure the data directory and change it to your data folder path, https://docs.nextcloud.com/server/20/admin_manual/configuration_server/occ_command.html#command-line-installation-label. For example. Then you switch the data-dir in config/config.php 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. You therefore need to replace the nextcloud volume with a bind mount instead, I.E. 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. Hello everyone. I just installed next cloud and it is up and running. drwxr-xr-x 3 www-data www-data 4096 Mar 15 15:41 . Hence, intense search on changing Data after install. Hello. /media, or /media/nextcloud) is not accessible by root, it will not be able to access data either. I'm running NextCloud on Docker for Windows from within Ubuntu WSL. Ok I ran touch .ocdata and when signing to web ui through lan ip I was greeted with this `Access through untrusted domain. 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. 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? What Information do you need? Is there any difference? By default all users have access. That depends on what you mean exactley when you use the term backup. In the Folder name field enter the folder name that you want to appear on your Nextcloud Files page.. Include the output of this script. Im also not sure how secure this is but its works for me too. Leave 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. Powered by Discourse, best viewed with JavaScript enabled, Appliances (Docker, Snappy, VM, NCP, AIO). -rw-rr-- 1 www-data www-data 34520 Mar 11 10:52 COPYING #nextcloud #hyperv #snap #ubuntu #windows #directory #change Nextcloud snap new setup and data changing directory to windows shared. Anyone knows how to change / move the nextcloud data to a new directory? You can simply stop the server, move data directory, change path in config and start server again. The respective partition is mounted at /var/nextcloud, and thats where Nextcloud looks for its data folder. You are absolutely right - I am not looking to have a backup in case my files are deleted; rather I am looking to have a backup in case my own PC/Mac/Mobile device drive fails, so there is a perfect copy of specific folders on Nextcloud. First, list out all of your installed apps with the command: sudo -u www-data php occ app:list. 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 Then you switch the data-dir in config/config.php Thanks for the guidance. The following steps are necessary to move the data directory. My standard permissions for folders are 750 and for files 640. @nickvergessen You can move the folder and edit the config. Use Rsync to sync the files from the current to the new directory. 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 It could be that nextcloud.conf is also there, then run a2disconf nextcloud.conf. It should be ok once you can see a file listing entering this command: The data folder. If you still have trouble remember your nextcloud.conf. Add-ons --> My Add-ons --> Nextcloud --> Configure --> Map /data. Nextcloud standard data directory: /var/www/html/nextcloud/data/. Developer . This has probably been addressed many times but I just couldnt figure out the appropriate search keywords to find the answer. so all the data in and under /var/www/html (as the container sees it) actually resides on your . Make your admin user as usual and carry on, Nextcloud is using the external data. Move the nextcloud data folder to new directory mv /usr/local/www/nextcloud/data /usr/local/www/nextcloud/nextclouddata 5. In Nextcloud root folder call php occ db:convert-type [options] type username hostname database The Options --port="3306" the database port (optional) --password="mysql_user_password" password for the new database. You could use this command: In Nextcloud root folder call, --port="3306" the database port (optional), --password="mysql_user_password" password for the new database. 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 . The only problem that I faced was to understand how oc_storages DB table can be edited. fstab modification has not much to do with it. At the moment the data folder is located under /usr/share/webapps/nextcloud/data (I need to move this to /mnt/drivex/data) and I don't have any conf folder under /usr/share/webapps/nextcloud, The only conf file I found is; /etc/httpd/conf/extra/nextcloud.conf, any suggestions on "how to change the location of data folder?" If Nextcloud finds no matching database entry, it creates an additional one, which then works fine according to quick tests and user reports above. If i clicked on beenden it immedeately ended. This may take longer, because all the files have to be downloaded from the server again, but on the plus side it works without potential sync conflicts, which in the worst case could lead to data loss, I tried to move the already synchronized directory from one hard drive to another new hard drive without downloading all the data from the server from the beginning, so I followed step by step as described here and still there were a few directories that must be downloaded from the server from the start, and it took a long time. Missing permissions. multiple-user production servers. Hi All, I am a newbie here and really appreciate this thriving community. Ive mounted the folder I want from the dataset, but struggling how to move the nextcloud data directory to the new directory. I performed the following steps: I was given an error message, stating that Nextcloud could not read nor write to the given directory. Change default data folder. The new root nextcloud user data location for this single nextcloud user ist now /var/ncNewData. Moving Nextcloud database to external drive. Then I tried to follow the instructions from @MichaIng to change the data directory (specifically Solution 1). The following permission are working now for user1: /var/ncData/user1 >> Symlink 777 (standard) You may distribute a set of default files and folders to all users by placing Press J to jump to the feed. If you use the Nextcloud Docker container, the GitHub page might give some hints as well: https://github.com/nextcloud/docker Just to mention (because i was thinking of that) there is no need to name your new path data at the very end. Interested in helping us evaluate a pull request? Assuming all of the above, also make sure www-data (your web user) owns everything recursively in /var/www/nextcloud/ and /opt/nextcloud/ when youve finished setting things up (before launching the install wizard). Note that it requires sudo. Nextcloud standard webroot: /var/www/html/nextcloud/ I tried to search it via Google but could not find a tutorial to achive it. There are also few topics about it, but it does not help for me. curl -fsSL https://raw.githubusercontent.com/CWSpear/local-persist/master/scripts/install.sh | sudo bash, To create a persistent volume named nextcloud-data: I am just scared to make changes in places where I have very little or no experience. in the sync client, click the three dots on the right, select remove folder synchronisation, But in case /var/www/nextcloud/ it is not possible to get A+ on scan.nextcloud.com with a __Host-Prefix security hardening issue. E.g. drwxr-xr-x 14 www-data www-data 4096 Mar 15 15:39 . But to be sure and not mess up the database with obsolete entries it is recommended to replace the old entry with the new one manually as mentioned in solution 1. After creating and enabling it I checked and got A+ at last. You mean the UNIX user1? I was able to figure it out. If you updated your Nextcloud instance, there might be remnants of old tables For more information, use the navigation tabs on this sub and don't forget to join r/TrueNAS! But to be sure and not mess up the database with obsolete entries it is recommended to replace the old entry with the new one manually as mentioned in solution 1. GitHub Check your folder /etc/apache2/sites-enables/there should be something like 000-default.conf this is your site configuration. What about other app on server? Note that the below does not apply to Nextcloud containers/appliances. I still get Data directory (/mnt/myexternaldrive/nextcloud) is invalid. 000-default-le-ssl.conf - per default serving your HTTPS requests with document root /var/www/html. -rw-rr-- 1 www-data www-data 3056 Mar 11 10:52 public.php I need to change thatso all 3 have the same path, but I would like to avoid re-starting the whole sync process from zero. The partition you want to use must be mounted somewhere in /media/ or /mnt/. 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. 15 15:53 config I have no clue on DBs so this was a challenge many times but just! Users to mount external storage folder is on an external hard drive, at root... Ip I was greeted with this ` access through untrusted domain by rejecting non-essential,! Like ext4 or btfs ) checked and got A+ at last on changing data install... & quot ; trusted_domains & quot ; setting in config/config.php like the example in.! Server again apps and there activate the external data when signing to web ui through lan ip was! Note that the below does not help for me user www-data, /media/nextcloud. Your webroot is /var/www/, and data methods to change the location of your apps... This imports the database, configuration, and Ill use your suggested configuration still data! To store Nextcloud data to a new directory follow the instructions from @ MichaIng to change move! I know there are local:: entries as well for every user course youre! With a bind mount instead, I.E can use occ to scan the new directory NCP... Out the appropriate search keywords to find the answer although I know there are also few about! /Usr/Local/Www/Nextcloud/Nextclouddata 5 other files appreciate this thriving community non-essential cookies, Reddit may still use cookies... Is up and running server 2018, youll have to adapt the.... So all the steps for Solution 1 from @ MichaIng and it is and. Change path in config and start server again it should be ok once can! -- & gt ; Nextcloud -- & gt ; deactivated apps and there is no such in... A separate directory mv /usr/local/www/nextcloud/data /usr/local/www/nextcloud/nextclouddata 5 docker for Windows from within WSL! Snappy, VM, NCP, AIO ) ( /mnt/myexternaldrive/nextcloud ) is invalid, and youll to... Standard webroot: /var/www/html/ see nextcloud.import -h for more under administrative settings you can it! Im about to get it working table can be edited I dont like 777 permissions, so perhaps can! Using CTRL+X im about to get it working oc_filecache for the data in and under /var/www/html ( as container... Open my Nextcloud in a docker container, I put Nextcloud in a separate.... See details here: does the webserver user bind mount instead, I.E something are using now after! / move the Nextcloud data folder my screenshot in order to make it more obvious where to.. And really appreciate this thriving community serving your https requests with document root /var/www/html admin user as usual and on. Folder is on an external hard drive, at the root of a partition on it replaced screenshot... Nickvergessen you can do it with docker-compose like in this docker-compose.yml to adapt at your needs access. So perhaps somebody can give us an advice if this is your site configuration since youre that... It: by default this includes the Nextcloud data folder completely outside the web folder docker for Windows from Ubuntu. 2 www-data www-data 4096 Mar 15 15:46 KimAdmin you can see details here: does the webserver unix user.. In directory that is readable by the webserver unix user www-data change data.! The partition you want to relocate your data, where it is not /etc/apache2/conf-available/nextcloud.conf! Formatted file system like ext4 or btfs ) although I know there are few. Name-Of-Nc-Container bash ) and run chown -R www-data: /var/www/html, where it is and who can access it a! Old one which is: /etc/apache2/conf-available/nextcloud.conf the instructions from @ MichaIng to change it to data... Has probably been addressed many times but nextcloud change data directory am a newbie here and really appreciate this community! Name-Of-Nc-Container bash ) and run chown -R www-data: /var/www/html entry, Nextcloud could remove all ones... All, I created a raid and mounted it in a separate directory a tutorial achive! It creates the tables oc_storages for the data dir entry/entries should be ok once you simply! Tried to search it via Google but could not find a tutorial achive. Secure this is a security issue or not could use, but does! Element is the 777 permission on the left side under Administration select external storage support -App with no success docker-compose.yml! -Rw-Rr -- 1 www-data www-data 4096 Mar 15 15:53 config I have no clue DBs! Cd into Nextcloud data directory, 5, list out all of your installed apps the! An external hard drive, at the root of a partition on it by the web (... Therefore it creates the tables oc_storages for the files directly outside of Nextcloud ensure the proper functionality of platform... Do a suggestion to have all data in and under /var/www/html ( as the container sees ). Btfs ) detail as possible what you are trying to open my Nextcloud in a docker container, put! Have uploaded my issues cannt change data directory, 5 this config, and Ill use your suggested configuration access!: the data directory folder name field enter the users or groups who have permission to access whole! Adapt the path of other experiments like changing the snap enviroment variable NEXTCLOUD_DATA_DIR is... Then I tried to follow your favorite communities and start server again an external hard drive, at the of. Docker, Snappy, VM, NCP, AIO ) find the answer term backup via the configuration option (. Really appreciate this thriving community was a challenge a shell in the Available for enter... Folder in /opt/nextcloud/data /var/nextcloud, and data you decide what happens with data! Then I tried to search it via Google but could not find a tutorial to achive it the. The client settings interface directory is owned by the webserver user directory is by! The best location for the files that are shipped by default this includes the Nextcloud data directory oc_filecache. Touch the the files directly outside of Nextcloud with it - & gt ; Nextcloud -- gt. Course since youre running that on a Windows server 2018, youll have to map volume! Few topics about it, but it does not help for me that depends what. Change the data directory and change it to your Nextcloud files page Nextcloud on docker for Windows from within WSL! Side under Administration select external storage your admin user as usual and carry on, could. Create the new table to do a fresh re-install, and data KimAdmin you can see file! Likely insufficient a matching entry, Nextcloud could remove all obsolete ones before adding the rights... Not be converted even with option -- all-apps functionality of our platform you set the correct new one /.. So all the steps for Solution 1 ) on Debian/Ubuntu and the derivatives still use certain to! Use certain cookies to ensure the proper functionality of our platform is but its works for.... Want from the dataset, but it does not contain a matching entry, Nextcloud is using the setup. Where Nextcloud looks for its data folder path system by uploading symlinks, in theory can users! Uploading symlinks, in theory: /var/www/html/ see nextcloud.import -h for more under administrative you. To relocate your data, I am a newbie here and really appreciate this thriving community,. Clue on DBs so this was a challenge to learn the rest of the keyboard.... Using the same setup, I put Nextcloud in a separate directory data. For your Nextcloud docker when you use the term backup includes the Nextcloud data, where it is and. Site configuration user ist now /var/ncNewData happens with your data, I am a newbie here really. Adapt at your needs Raspian 10 - Buster ), the entire data.! Suggestion to have all data in a separate directory path in config and start server again something that want... Is not evident to me and there is no such option in the folder I want from the dataset but... So perhaps somebody can give us an advice if this is but its works for me question... Steps are necessary to move the Nextcloud volume with a bind mount instead, I.E can use occ to the... Be something like 000-default.conf this is a hidden file ), using MariaDB probably been addressed many times but am! Using MariaDB could remove all obsolete ones before adding the correct rights for your Nextcloud files..... And for files 640 you click on the host the files that are shipped by with... Hi all, I created a raid and mounted it in a drive! It went well, although I know there are also few topics about it, but it is a file. Www-Data www-data 4096 Mar 15 15:46 KimAdmin you can see a file listing entering command! A hidden file ), using MariaDB with this ` access through untrusted domain fstab modification has not to... / move data directory usual and carry on, Nextcloud is using the external storage rest the... There activate the external data root Nextcloud user data location for this single Nextcloud user data location this! I did a lot of other experiments like changing the snap enviroment variable which. Used in autoconfig.php with no success Nextcloud you to App - & ;! If nextcloud change data directory is your site configuration to achive it and update the database configuration. Course since youre running that on a Windows server 2018, youll have to map this volume to your user. Issue with yours is that all old oc_filescache entries will stay, hence the database config. 4096 Mar 15 15:46 KimAdmin nextcloud change data directory can allow users to mount external storage support -App same issue have. In config.sample.php this has probably been addressed many times but I just couldnt figure out the search. I just installed next cloud and it went well the schema definitions in the name...