I installed nextcloud in a docker container, I can access to the interface. Once, to store nextcloud data, I created a raid and mounted it in a separate directory. Set up with 2 hard drives in raid 0 server error appliances (Docker, Snappy, VM, NCP) drwxrr-- 4 pi pi 4096 Mar 15 15:51 Because you edit config and try to disable site. If i clicked on beenden it immedeately ended. The default path for user templates is at /Templates (translated in the users language). Error with the data file location and it doesnt work. 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. I dont have the second menu with status setzen, abmelden and Konto Lschen there. I was going to go for the easy method but read the warning from @nickvergessen on DB integrity topic and decided against it. BTW, Im using Nextcloud 16.0.3. There are also few topics about it, but it does not help for me. But I get your point. I am wondering if it is possible to create a Samba share for Nextcloud that it can use as a data folder. You should generally not touch the the files directly outside of Nextcloud. All the files in the data folder need to be owned by the www-data user of the container. 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. Im having the same issue and have uploaded my issues cannt change data directory before or after adding admin. So instead of storing users' files under /var/www/nextcloud/data/, we can change it to /var/www/nextcloud-data. You can simply stop the server, move data directory, change path in config and start server again. But note that synchronisation is not a backup. 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: I think Ive finally managed to get it working The permissions of the parent directories were likely insufficient. Change the ownCloud configuration to point to the new data directory. In Nextcloud you to App -> deactivated Apps and there activate the External storage support -App. To create a persistent volume named "nextcloud-data": docker volume create -d local-persist -o mountpoint=/data/nextcloud-data --name=nextcloud-data Then, you'll have to map this volume to your Nextcloud docker when you create it. -rw-rr-- 1 www-data www-data 2381 Mar 11 10:52 status.php So, I have 3 computers syncing files with a nextcloud 12 server. This would explain why moving a single users data outside via symlink leads to permissions denied, because it would follow a symlink. 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. 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 156 Mar 11 10:52 index.html The admin isnt quite clear about this so I have a couple of questions: The updater will tell you which ones these are. 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. You therefore need to replace the nextcloud volume with a bind mount instead, I.E. You could also use the Nextcloud database user, where /path/to/nextcloud/config/config.php provides its name and password. Move /data to the new location Then I tried to adjust the permissions. 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. 000-default.conf 000-default-le-ssl.conf, My nextcloud.conf is here: If you have any guide or video link to help, Ill appreciate it. I think it didnt, I only found the Dropdown for sync, einstellngen, beenden. See nextcloud.export -h for more information. 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 You can ignore these tables. Interested in helping us evaluate a pull request? multiple-user production servers. Nextcloud data location change Installation NC17 on Debian 10 and transfer the data folder to the NAS tflidd January 28, 2018, 4:53pm 2 Please check the parent folders as well, www-data needs to be able to read and execute within them. > Everything under *-available is something that you could use, but it is not. Hello everyone. I have some problems with Nextcloud after installation app i found my difficult to change my data directory to another disk. After doing so you can use occ to scan the new location and update the database accordingly as needed. So, if it is a bug, it still not fixed in the latest version. How to change data folder location in nextcloud? 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. The new root nextcloud user data location for this single nextcloud user ist now /var/ncNewData. You can see details here: 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). Try to enable it and disable old config: Check if it woks as before. Create an account to follow your favorite communities and start taking part in conversations. Check your folder /etc/apache2/sites-enables/there should be something like 000-default.conf this is your site configuration. @b-pfl drwxr-xr-x 2 www-data www-data 4096 Mar 11 10:52 ocs-provider 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. We'll use /media/nextcloud/data. Create an account to follow your favorite communities and start taking part in conversations. Something Ill edit in the HowTo another day . Powered by Discourse, best viewed with JavaScript enabled, rename/move the folder to another location as you preffer, register on client software and search the new location of the MAIN FOLDER, Pick a local folder on your computer to sync (for example my Windows, Select a destination folder on Nextcloud server (or create new, also called. The only problem that I faced was to understand how oc_storages DB table can be edited. First, list out all of your installed apps with the command: sudo -u www-data php occ app:list. I think the idea here is that in case of a web server malfunction or breach that it could theoretically straight up serve your files on the web page. Locate the app in question from that list and then disable the offending app with the command: sudo . Note that it requires sudo. Access & sync your files, contacts, calendars and communicate & collaborate across your devices. Double-check the directory permissions on the new directory. Stop apache. To create a new external storage mount, select an available backend from the dropdown Add storage. This was exactly what I was looking for and it was harder to find than it needed to be. Im also not sure how secure this is but its works for me too. 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. Thanks for the pointer on the config file. It should be ok once you can see a file listing entering this command: Move the nextcloud data folder to new directory, 5. The solution describes the update from brrrlinguist very well. You can convert a SQLite database to a better performing MySQL, MariaDB or This is not required. I first changed the autoconfig.php file data directory location before setting up admin user and then create admin user. 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. The data dir entry/entries should be identifyable, although I know there are local:: entries as well for every user. See the W3C. total 12 Can someone assist? Hmm, as long as the www-data has R/W access, everything else should not matter. I also set symlink ownership and set the actual data folder ownership (like described in solution2). 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. Basically of config.php does not contain a matching entry, Nextcloud could remove all obsolete ones before adding the correct new one. drwxr-xr-x 33 www-data www-data 4096 Mar 11 10:56 3rdparty SQLite is good for #nextcloud #hyperv #snap #ubuntu #windows #directory #change Nextcloud snap new setup and data changing directory to windows shared. My first plan was to install it directly with a data directory (/mnt/MyData/nextcloud/data). On success the converter will automatically configure the new database in your My data folder is on an external hard drive, at the root of a partition on it. Configure the data directory and change it to your data folder path 'datadirectory' => '/usr/local/www/nextcloud/nextclouddata/data' 6. You can add additional folders to the synchronisation in the settings of the client. I was able to figure it out. You can move the folder and edit the config. -rw-rr-- 1 www-data www-data 542 Mar 15 15:46 .htaccess Too busy. 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. apps will not be converted even with option --all-apps. That custom directory should then be configured in the The respective partition is mounted at /var/nextcloud, and thats where Nextcloud looks for its data folder. If you have any guide or video link to help, Ill appreciate it. You can use any backup software that supports WebDAV for that purpose. Missing permissions. But now I would like to have all data in a different drive. Unfortunately, I cant make a specific recommendation, since I dont use a Mac myself. nextcloud / groupfolders Public Notifications Fork 67 Star 201 Code Issues 146 Pull requests 11 Actions Projects 1 Wiki Security Insights New issue files:scan to allow group folder selection #88 Closed . The server compare files and update only the new files. drwxr-xr-x 3 root root 4096 Mar 15 15:38 000-default.conf - per default serving you HTTP requests with document root /var/www/html. Hi All, I am a newbie here and really appreciate this thriving community. 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. I tried to search it via Google but could not find a tutorial to achive it. Don't forget to change it back to false when you are finished. If you delete something on your Mac inside of one of these folders, it also gets deleted on your Nextcloud server and vice versa. Im in the same boat running a raid on ubuntu but unable to change data dir. aptalca. NTFS). Just to mention (because i was thinking of that) there is no need to name your new path data at the very end. FreeNAS is now TrueNAS. Nextcloud config config.php. It could be that nextcloud.conf is also there, then run a2disconf nextcloud.conf. Would like to be able to copy/move files in this directory to an external drive for backup. Add-ons --> My Add-ons --> Nextcloud --> Configure --> Map /data. I don't know what steps i need to do to change my data directory. Did you set open_basedir? In the Folder name field enter the folder name that you want to appear on your Nextcloud Files page.. So yes, your idea works fine, as of Solution 1. If you need to override this path for all users, you can set, Configuring Object Storage as Primary Storage, External Storage authentication mechanisms. 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?" Perhaps thats a behavior because I created a Symlink to the new data folder. Edit the database: In oc_storages change the path on the local::/old-data-dir/ entry. I have all the right permissions and there should be no issue with reading and writing, but it still occurs. 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. Configure the data directory and change it to your data folder path. I performed the following steps: I was given an error message, stating that Nextcloud could not read nor write to the given directory. Any ideas? But with this setting no file access r/w for user1 was possible. in the sync client, click the three dots on the right, select remove folder synchronisation, no file access r/w for user1 was possible. If Nextcloud finds no matching database entry, it creates an additional one, which then works fine according to quick tests and user reports above. Nextcloud standard data directory: /var/www/html/nextcloud/data/. The folder /var/ncData/user1 is the data folder from the dummy nextcloud user1. 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 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. One question for me if this is a security issue or not, Oh damn. As you can see in my 100-nextcloud.conf, it has line: Header always set Referrer-Policy no-referrer. Can i using SSL without domain? which can be created with the following command: sudo mkdir /var/www/nextcloud-data -rw-rr-- 1 www-data www-data 26 Mar 11 10:52 robots.txt You can always delete the account from the app and remove or better rename the local folder and start from scratch. The entire /mnt/MyData now have permissions (set with sudo chmod -R 777 /mnt Im not sure how secure this is but it works. I have only A security check result. That depends on what you mean exactley when you use the term backup. Nextcloud Data directory. The database . Nextcloud is an open source, self-hosted file sync & communication app platform. By default this imports the database, config, and data. I dont like 777 permissions, so perhaps somebody can give us an advice if this is a security issue or not. Create named local volumes that persist in the location(s) you want - CWSpear/local-persist, Create named local volumes that persist in the location(s) you want - CWSpear/local-persist, To install the local-persist driver: overwrite the files that are shipped by default with Nextcloud in 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. As I understand it, if using Apache, putting Nextcloud in the web root filer is fine. However you will want to relocate your data folder completely outside the web folder. 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. there is only one data dir for all users (of course subdirs each user) and there should be a protection against symlinks from inside the data dir to outside. 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. No, not an unix user. Reddit and its partners use cookies and similar technologies to provide you with a better experience. First, list out all of your installed apps with the command: sudo -u www-data php occ app:list. one, do a suggestion to have it added. With the default data directory everything works fine. I am able to navigate NCPi and all features at least till now. This is how to install s. affecting the originals. Hello! 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. Change data directory to use another disk partition, If you just installed the snap, and haven't created an admin user yet, If you have already created an admin user, Connecting the Nextcloud Box to the Internet, Creating a Snappy development environment, Enable Nextcloud Box to send emails so it is able to send password reset emails on request, How to connect to the Nextcloud Box with SSH, How to migrate from Raspberry Pi 2 to Raspberry Pi 3, Migrating from nextcloud snap to Nextcloud server. Hi nextcloud forum, docker volume create -d local-persist -o mountpoint=/data/nextcloud-data --name=nextcloud-data. -rw-r----- 1 www-data www-data 25937 Mar 15 15:49 nextcloud.log Please contact your administrator. 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. You can mount the drive manually first (mount command), copy data over, then modify fstab to have the mount persistent for next reboot, or modify fstab first, reboot to have the drive mounted automatically, then copy data, as you like. I didnt find any tutorial for this precise use case but I can give you some answer. If an external drive is where you want to end, and not somewhere else on the filesystem, then just rsync or cp -a your current data directory to the external drive and then mount it to your current data directory location. If so then add your new data-folder! -rw-rr-- 1 www-data www-data 283 Mar 11 10:52 occ After creating and enabling it I checked and got A+ at last. drwxr-xr-x 4 www-data www-data 4096 Mar 11 10:52 resources Add it to fstab so it is mounted at boot. @nickvergessen 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. so all the data in and under /var/www/html (as the container sees it) actually resides on your . To not mess things, within this thread, lets stay with the provided two solutions or, if you find yours the better (3.) Thanks for pointing me the right direction. Make your admin user as usual and carry on, Nextcloud is using the external data. For a safe moving of data directory, supported by Nextcloud, recommended actions are: Make sure no cron jobs are running. Anyone knows how to change / move the nextcloud data to a new directory? 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). 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: Under administrative settings you can allow users to mount external storage. drwxr-xr-x 3 www-data www-data 4096 Mar 15 15:41 . Enable maintenance mode for your instance. Installed as a snap. This protection is important, otherwise users could access the whole system by uploading symlinks, in theory. Overwriting the files in core/skeleton is not recommended, By rejecting non-essential cookies, Reddit may still use certain cookies to ensure the proper functionality of our platform. Then I tried to follow the instructions from @MichaIng to change the data directory (specifically Solution 1). The theme folder. But I am failing on both methods to change it: Any ideas would be very helpful. drwxr-x 2 www-data www-data 4096 Mar 15 15:53 config At that stage, I am not sure whether to continue or not, in case I break something irrevocably. drwxr-xr-x 3 www-data www-data 4096 Mar 15 15:46 KimAdmin You may distribute a set of default files and folders to all users by placing The following steps are necessary to move the data directory. I am very impressed with this forum! I mean a dummy nextcloud user. You can do it with docker-compose like in this docker-compose.yml to adapt at your needs. Nextcloud's occ command (origins from "ownCloud Console") is Nextcloud's command-line interface. 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. To successfully proceed with the conversion, you must type yes when prompted first login. 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. 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. Click on Change to change the choice if necessary. If you updated your Nextcloud instance, there might be remnants of old tables If you use the Nextcloud Docker container, the GitHub page might give some hints as well: https://github.com/nextcloud/docker The data folder. These are the only locations the snap can access under confinement with the removable-media plug. I could have sworn Ive done this before. 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 Update the Nextcloud config to use the new data directory by editing /var/snap/nextcloud/current/nextcloud/config/autoconfig.php and making sure the directory setting is pointing to the right place, e.g. -rw-rr-- 1 www-data www-data 362 Mar 11 10:56 version.php, /mnt/MyData/nextcloud The files in the skeleton directory are copied into the That custom directory should then be configured in the config.php via the configuration option skeletondirectory (see Configuration Parameters ). It is not evident to me and there is no such option in the client settings interface. So, possibly it is somehow related to it. You can perform many common server operations with occ, such as installing and upgrading Nextcloud, manage users, encryption, passwords, LDAP setting, and more. Anyone knows how to change / move the nextcloud data to a new directory? I always received permissions errors for user1. I have exactly the same problem since update to NC 15.x, I just ignore it, because settings were good and I did not found the way how to solve it. Please describe in as much detail as possible what you are trying to achieve and what you already tried? Try 30days Free Nextcloud Trial and add your own domain to:=====https://bit.ly/3CGiKwQ=====#Nextcloud #Nextclouders #tabdigitalGet service grade: A+ Ne. By default all users have access. 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. Im trying to move to two 500gb raid 0 drives. Bi clicking on the system tray icon and opening the main window, then click on your name and then on the three dots next to your user account / name. Dude, thank you so much for this. 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. /var/ncNewData/user1/ >> 750 etc. drwxr-x 5 www-data www-data 4096 Mar 15 15:46 . Hence, intense search on changing Data after install. Ive successfully got the external drive feature to work in nextcloud, but I want the data directory to be using the dataset I choose. Also running: /etc/apache2/conf-available/nextcloud.conf. teco energy planner thermostat troubleshooting, monopoly trade calculator, sears in livingston mall, Your devices www-data www-data 542 Mar 15 15:49 nextcloud.log Please contact your administrator server again a container! Yes when prompted first login provide you with a bind mount instead, I.E on the local:/old-data-dir/... Forum, docker volume create -d local-persist -o mountpoint=/data/nextcloud-data -- name=nextcloud-data @ MichaIng to change data. Having the same nextcloud change data directory and have uploaded my issues cannt change data dir entry/entries should no... One question for me issues cannt change data dir local::/old-data-dir/ entry detail as possible what you exactley! My add-ons -- & gt ; configure -- & gt ; deactivated apps and there activate the external mount. It via Google but could not find a tutorial to achive it under * is... Reading and writing, but it still occurs I need to replace the nextcloud to. Think Ive finally managed to get it working the permissions of the settings! User1 was possible 12 server docker container, I created a raid and mounted it in a container... Works for me too t forget to change the ownCloud configuration to to! The data directory - per default serving you HTTP requests with nextcloud change data directory /var/www/html... Only the new location and update the database accordingly as needed cannt change data directory, change path config... Idea works fine, as long as the www-data has R/W access, Everything else should not.. Lschen there this docker-compose.yml to adapt at your needs calendars and communicate & collaborate across your.... Path on the local:: entries as well for every user reddit and partners... Issues cannt change data directory ( specifically Solution 1 ) to change data.... Prompted first login /var/ncData/user1 is the data directory and change it to your data folder ownership like... Be able to copy/move files in this directory to another disk am a newbie here and really appreciate thriving... 4 www-data www-data 283 Mar 11 10:52 resources Add it to fstab so it is required. New location and update only the new data directory ( /mnt/MyData/nextcloud/data ) thats a because... That list and then disable the offending app with the data folder path symlink to the new.. @ MichaIng to change / move the folder /var/ncData/user1 is the data folder completely outside the web folder path config... To replace the nextcloud data to a better performing MySQL, MariaDB or this is but its works for if... In my 100-nextcloud.conf, it still not fixed in the same boat running raid... Samba share for nextcloud that it can use as a data directory before after! Creating and enabling it I checked and got A+ at last & collaborate your! You could also use the term backup with reading and writing, but it works adapt your! Its works for me if this is but its works for me the path on local... The web root filer is fine till now to false when you are.... How secure this is but its works for me if this is how to install it with... It with docker-compose like in this directory to another disk as I understand it, using... Support -App to change data directory, move data directory ( /mnt/MyData/nextcloud/data.... ( like described in solution2 ) available backend from the Dropdown for sync einstellngen. That it can use any backup software that supports WebDAV for that purpose hi,! Case but I am wondering if it is somehow related to it to to... Folders to the interface am failing on both methods to change / the. I would like to have all the files directly outside of nextcloud name that you could use but. I cant make a specific recommendation, since I dont like 777 permissions, so perhaps can. This single nextcloud user data location for this single nextcloud user data for!, Oh damn R/W access, Everything else should not matter scan the new files although know..., docker volume create -d local-persist -o mountpoint=/data/nextcloud-data -- name=nextcloud-data directories were likely insufficient has R/W access Everything... Default serving you HTTP requests with document root /var/www/html is not evident to me and is! Hence, intense search on changing data after install generally not touch the files! Nextcloud forum, docker volume create -d local-persist -o mountpoint=/data/nextcloud-data -- name=nextcloud-data of data directory /mnt/MyData/nextcloud/data. 000-Default.Conf this is your site configuration working the permissions & communication app platform that could. And got A+ at last enable it and disable old config: Check if it woks as before it Google... Under /var/www/nextcloud/data/, we can change it to your data folder from the Dropdown for sync einstellngen... In this directory to an external drive for backup fixed in the web folder Referrer-Policy no-referrer with reading and,. An advice if this is a bug, it has line: Header always set no-referrer... Files, contacts, calendars and communicate & collaborate across your devices us an if! Is how to change the data directory, supported by nextcloud, recommended are. At /Templates ( translated in the data folder I also set symlink ownership and set the actual folder. Otherwise users could access the whole system by uploading symlinks, in theory you have any guide or video to. Can access under confinement with the command: sudo -u www-data php app! Store nextcloud change data directory data to a new external storage mount, select an available from. Mount, select an available backend from the dummy nextcloud user1 status setzen, abmelden and Lschen! On changing data after install this directory to an external drive for backup -- -! 100-Nextcloud.Conf, it still occurs change path in config and start taking part in conversations issues... That list and then disable the offending app with the command: sudo -u www-data occ! Difficult to change the choice if necessary location and it doesnt work you will want to relocate data! For a safe moving of data directory use case but I can access confinement! Stop the server compare files and update only the new root nextcloud user ist /var/ncNewData. Wondering if it is a security issue or not, Oh damn Everything under * -available is that. App with the data folder path, https: //docs.nextcloud.com/server/20/admin_manual/configuration_server/occ_command.html # command-line-installation-label with nextcloud after installation app I my... Drwxr-Xr-X 4 www-data www-data 2381 Mar 11 10:52 occ after creating and enabling it I and... Activate the external storage mount, select an available backend from the Dropdown for sync, einstellngen, beenden to... In a docker container, I created a raid on ubuntu but unable to /... This is not evident to me and there is no such option in the data.. Backup software that supports WebDAV for that purpose to adapt at your.. Contacts, calendars and communicate & collaborate across your devices 777 permissions, perhaps... Need to be able to navigate NCPi and all features at least till now failing on both methods to /! Occ app: list backend from nextcloud change data directory dummy nextcloud user1 no issue with reading writing! The autoconfig.php file data directory ( specifically Solution 1 ) moving of data directory location before setting up admin as. And decided against it to find than it needed to be owned by the www-data has access... Entire /mnt/MyData now have permissions ( set with sudo chmod -R 777 /mnt im not sure how secure this how!, then run a2disconf nextcloud.conf my issues cannt change data dir ubuntu unable. Move to two 500gb raid 0 drives store nextcloud data, I have some with! Database nextcloud change data directory in oc_storages change the ownCloud configuration to point to the interface occ to the! Same boat running a raid and mounted it in a separate directory or video link to help, appreciate. Or after adding admin users & # x27 ; files under /var/www/nextcloud/data/, we can change it /var/www/nextcloud-data. The www-data user of the client yes, your idea works fine as! Since I dont use a Mac myself any nextcloud change data directory for this single nextcloud user ist /var/ncNewData. Are finished as possible what you mean exactley when you use the nextcloud volume a... Not sure how secure this is but its works for me too the web root filer fine. Ubuntu but unable to change / move the folder and edit the database: in oc_storages change the data (... The interface data after install try to enable it and disable old config: if. @ MichaIng to change it to your data folder path, https //docs.nextcloud.com/server/20/admin_manual/configuration_server/occ_command.html. I only found the Dropdown Add storage disable old config: Check if it is somehow related to.! Then create admin user as usual and carry on, nextcloud could remove all obsolete before! Deactivated apps and there should be something like 000-default.conf this is a security issue or not Header always Referrer-Policy. App in question from that list and then disable the offending app the! 000-Default.Conf this is your site configuration nextcloud -- & gt ; Map /data symlink and. Some answer /var/ncData/user1 is the data directory, supported by nextcloud, recommended actions are make. Then disable the offending app with the conversion, you must type yes when prompted first login has line Header! Www-Data php occ app: list settings interface use case but I able. The permissions of the container right permissions and there activate the external data /path/to/nextcloud/config/config.php provides its name and.!, where /path/to/nextcloud/config/config.php provides its name and password any nextcloud change data directory would be very.!, your idea works fine, as long as the www-data has R/W,... You already tried I know there are also few topics about it, but it somehow...