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: What do I do if an update breaks Nextcloud. Something Ill edit in the HowTo another day . Then with your regular user account you go to settings -> External storage. Edited 2 times, last by Alomon (Feb 3rd 2020). With the default data directory everything works fine. I copied the data directory to a new folder and indicated the owner and rights on behalf of which the web server is working: These files will be copied only to new users after their initial login, and Anyone knows how to change / move the nextcloud data to a new directory? Although phpMyAdmin provides a nice GUI, it is not required to alter the database. You can simply stop the server, move data directory, change path in config and start server again. However you will want to relocate your data folder completely outside the web folder. Change the permission of your new data location: sudo chmod 0770 /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. Basically of config.php does not contain a matching entry, Nextcloud could remove all obsolete ones before adding the correct new one. 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. Try to enable it and disable old config: Check if it woks as before. Using the same setup, I put Nextcloud in /var/www/nextcloud/, and my Data folder in /opt/nextcloud/data. 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. 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. 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). First set up the new database, here called new_db_name. Edit the database: In oc_storages change the path on the local::/old-data-dir/ 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. empty to not copy any skeleton files. One of them uses the old $HOME/owncloud folder instead of $HOME/Nextcloud. @Andy3153 Double-check the directory permissions on the new directory. I didnt find any tutorial for this precise use case but I can give you some answer. -rw-rr-- 1 www-data www-data 3910 Mar 11 10:52 console.php Enable maintenance mode (install sudo if you don't have it already in the jail), 4. Unfortunately, I cant make a specific recommendation, since I dont use a Mac myself. Start a shell in the Nextcloud container ( docker exec -it name-of-nc-container bash) and run chown -R www-data: /var/www/html. If i clicked on beenden it immedeately ended. drwxr-xr-x 2 www-data www-data 4096 Mar 11 10:53 updater 000-default-le-ssl.conf - per default serving your HTTPS requests with document root /var/www/html. Once, to store nextcloud data, I created a raid and mounted it in a separate directory. 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. How can I achive this? If you updated your Nextcloud instance, there might be remnants of old tables with the question Continue with the conversion? SQLite is good for drwxr-xr-x 3 www-data www-data 4096 Mar 15 15:46 KimAdmin Admin manual says :On other HTTP servers it is recommended to install Nextcloud outside of the document root., Assumptions: drwxr-x 5 www-data www-data 4096 Mar 15 15:46 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. Even if the data directory above is writable by root, if any part of the path above it (e.g. 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. If you need to override this path for all users, you can set, Configuring Object Storage as Primary Storage, External Storage authentication mechanisms. I have all the right permissions and there should be no issue with reading and writing, but it still occurs. Actually using Nextcloud database user is the much better way, since it has only permissions to alter the Nextcloud database and no other, hence one cannot by accident break something within other databases. This can leak referer information. Anyone have the same problem can help me? That will change the owner and group of all files under /var/www/html to www-data. edit: Heres a site config file for Apache that works with the above setup and has strong SSL settings. Enable maintenance mode (install sudo if you don't have it already in the jail), 4. For a safe moving of data directory, supported by Nextcloud, recommended actions are: Make sure no cron jobs are running. Because you edit config and try to disable site. For example, I have copied it at /mnt/g/data. Make your admin user as usual and carry on, Nextcloud is using the external data. Then you switch the data-dir in config/config.php 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. -rw-rr-- 1 www-data www-data 34520 Mar 11 10:52 COPYING Indeed your statement (hence this HowTo) and Nextcloud docs do not match here. Thanks for the pointer on the config file. 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. 000-default.conf - per default serving you HTTP requests with document root /var/www/html. NTFS). On success the converter will automatically configure the new database in your I still get Data directory (/mnt/myexternaldrive/nextcloud) is invalid. BeakerRocks 3 yr. ago. which can be created with the following command: sudo mkdir /var/www/nextcloud-data After creating and enabling it I checked and got A+ at last. /var/ncNewData/user1/ >> 750 etc. This allows you to overwrite the files that are shipped by default with Nextcloud in core/skeleton. Haven't tried to move data location but other users did and pointed to some guides: Trying to change nextcloud data location Support The updater will tell you which ones these are. There are also few topics about it, but it does not help for me. -rw-rr-- 1 www-data www-data 542 Mar 15 15:46 .htaccess The config.php entry must be changed. 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. 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. The only thing that I had to do slightly different was to grant access to the www user and group to the mounted dataset. my permissions: Especially if your non-dummy admin Nextcloud user can access the files, from UNIX permissions side, all Nextcloud users must be able, as long as they have Nextcloud-internal permissions of course. That depends on what you mean exactley when you use the term backup. These are the only locations the snap can access under confinement with the removable-media plug. Heres a screenshot (in German). Locate the app in question from that list and then disable the offending app with the command: sudo . You could also use the Nextcloud database user, where /path/to/nextcloud/config/config.php provides its name and password. PS: of course since youre running that on a Windows Server 2018, youll have to adapt the path. You then said to use the following command sudo chmod 0770 directory_name, which I also did. My NC config was in sites-enabled and your in conf-available. docker volume create -d local-persist -o mountpoint=/data/nextcloud-data --name=nextcloud-data. You can move the folder and edit the config. drwxr-x 5 www-data www-data 4096 Mar 15 15:46 . I would probably just start over in this case or do a lot of reading on how those permissions are set. 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. Ubuntu 18.04 LTS I found this stupid issue. 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. Hi. drwxr-xr-x 23 www-data www-data 4096 Mar 11 10:57 core All the files in the data folder need to be owned by the www-data user of the container. Try 30days Free Nextcloud Trial and add your own domain to:=====https://bit.ly/3CGiKwQ=====#Nextcloud #Nextclouders #tabdigitalGet service grade: A+ Ne. Im having the same issue and have uploaded my issues cannt change data directory before or after adding admin. 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. New data location: /var/ncNewData/user1. 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). CWSpear/local-persist Is there any difference? But anyway the warning still exists. thank you, Last edited by chittu (2016-11-05 05:31:29), In /usr/share/webapps/nextcloud/config/config.php, 'datadirectory' => '
'. If you have any guide or video link to help, Ill appreciate it. What about other app on server? By default this imports the database, config, and data. Note that the below does not apply to Nextcloud containers/appliances. -rw-rr-- 1 www-data www-data 3056 Mar 11 10:52 public.php You can do it with docker-compose like in this docker-compose.yml to adapt at your needs. Bash shell commands like "cd" can't be "sudo'ed", so do this: $ sudo -i. now you can cd into the directory and do what you like. Is there a way to do that ? 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. drwxr-xr-x 2 www-data www-data 4096 Mar 11 10:52 ocs Can someone assist? Well, Stefan it really sucks that no one helped you out since I am having the exact same issue and cannot find a solution. My Site config example was listed here: This is my LIVE config for NC ( 100-nextcloud.conf ). Click on Change to change the choice if necessary. 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. In the Available for field enter the users or groups who have permission to access the mount. The default path for user templates is at /Templates (translated in the users language). You can perform many common server operations with occ, such as installing and upgrading Nextcloud, manage users, encryption, passwords, LDAP setting, and more. 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. You set the correct rights for your nextcloud user for /mnt/external_hdd/nextcloud (use a linux formatted file system like ext4 or btfs). 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. 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 see details here: Storage configuration. For example. -rw-rr-- 1 www-data www-data 5235 Mar 11 10:52 remote.php The folder /var/ncData/user1 is the data folder from the dummy nextcloud user1. Thanks for advice, MichaIng. Nextcloud directory can be found at /usr/share/nextcloud. Overwriting the files in core/skeleton is not recommended, Please describe in as much detail as possible what you are trying to achieve and what you already tried? Check your folder /etc/apache2/sites-enables/there should be something like 000-default.conf this is your site configuration. Change data directory to use another disk/partition. I could have sworn Ive done this before. You can always delete the account from the app and remove or better rename the local folder and start from scratch. One question for me if this is a security issue or not, Oh damn. Developer . In-depth tutorial on how to install Nextcloud on Ubuntu Server 18.04, how to combine multiple disks into one large virtual directory using mhddfs, how to pro. I just installed next cloud and it is up and running. Note that it requires sudo. In the Configuration field enter the full filepath of the directory you want to mount.. You cannot add more folders to the synchronistaion because it already syncs everything on your Nextcloud to the Nextcloud folder on your computer. It is a hidden file), the entire data directory is owned by the web user (www-data on Debian/Ubuntu and the derivatives. 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 . I also tried Solution 2 to change a data folder just for a single user (user1) with a Symlink. 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. Decide where you want the new data to live. Enable maintenance mode for your instance. This is not required. Ill dig into it by times to check for safe ways to identify the correct entries. I have only A security check result. Well the question is which storage to update. No, not an unix user. By rejecting non-essential cookies, Reddit may still use certain cookies to ensure the proper functionality of our platform. Im in the same boat running a raid on ubuntu but unable to change data dir. 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: If omitted the tool will ask you (optional) --clear-schema clear schema (optional) -rw-r----- 1 www-data www-data 25937 Mar 15 15:49 nextcloud.log This has probably been addressed many times but I just couldnt figure out the appropriate search keywords to find the answer. So I tried the original setup (putting data in /var/www/html/nextcloud/data), and got through the installation. Best regards Disable maintenance mode sudo -u www php /usr/www/nextcloud/occ maintence:mode --off 7. Can i using SSL without domain? GitHub - nextcloud/nextcloud-snap/wiki/change-data-directory-to-use . -rw-rr-- 1 www-data www-data 283 Mar 11 10:52 occ See Configuring External Storage (GUI) for additional mount options and . And here I have little concerns about the 777 permission. But with this setting no file access r/w for user1 was possible. -rw-rr-- 1 www-data www-data 2381 Mar 11 10:52 status.php overwrite the files that are shipped by default with Nextcloud in Set up with 2 hard drives in raid 0 server error appliances (Docker, Snappy, VM, NCP) You decide what happens with your data, where it is and who can access it! Then you switch the data-dir in config/config.php Hello. GitHub I am just scared to make changes in places where I have very little or no experience. Press J to jump to the feed. Click on Choose file or folder to transfer >> A file picker opens, showing all files and folders in the user's account. The respective partition is mounted at /var/nextcloud, and thats where Nextcloud looks for its data folder. Move the nextcloud data folder to new directory, 5. Press J to jump to the feed. total 164 The server compare files and update only the new files. Im trying to move to two 500gb raid 0 drives. > Everything under *-available is something that you could use, but it is not. There should be an option to delete or remove the account. I also set symlink ownership and set the actual data folder ownership (like described in solution2). 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. It should show up if you click on the three dots next to your username / account. As there still appear qu. Did you set open_basedir? curl -fsSL https://raw.githubusercontent.com/CWSpear/local-persist/master/scripts/install.sh | sudo bash, To create a persistent volume named nextcloud-data: Ive got Nextcloud installed onto a Raspberry Pi 4 with 2 GB of RAM, running Arch Linux ARM with a LEMP stack. FreeNAS is now TrueNAS. As you can see in my 100-nextcloud.conf, it has line: Header always set Referrer-Policy no-referrer. thanks, Last edited by chittu (2016-11-05 05:34:10). PostgreSQL database with the Nextcloud command line tool. Thanks a lot, @MichaIng for the clarification. What Information do you need? But I am failing on both methods to change it: That custom directory should then be configured in the config.php via the configuration option skeletondirectory (see Configuration Parameters ). You can convert a SQLite database to a better performing MySQL, MariaDB or 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. Moving Nextcloud database to external drive. the schema definitions in the apps to create the new table. so all the data in and under /var/www/html (as the container sees it) actually resides on your . Nextcloud is an open source, self-hosted file sync & communication app platform. Stop apache. Powered by Discourse, best viewed with JavaScript enabled, HowTo: Change / Move data directory after installation. If you delete something on your Mac inside of one of these folders, it also gets deleted on your Nextcloud server and vice versa. core/skeleton. webroot: /var/www/html/ Am I understood correct: after creating this config, the old one which is: /etc/apache2/conf-available/nextcloud.conf ? testing and simple single-user Nextcloud servers, but it does not scale for Nextcloud's occ command (origins from "ownCloud Console") is Nextcloud's command-line interface. This is how to install s. Thanks for the guidance. This is really helpful. What exactley does not work? Pick a file or folder and click on Choose >> The chosen file or folder name gets displayed. Please read: Forum Rules and Wiki pages. BTW, Im using Nextcloud 16.0.3. It is not evident to me and there is no such option in the client settings interface. drwxr-xr-x 2 www-data www-data 4096 Mar 11 10:52 ocm-provider E.g. My data folder is on an external hard drive, at the root of a partition on it. Then I tried to adjust the permissions. I have mount disk on UCS 4.3. Hello! Im about to do a fresh re-install, and Ill use your suggested configuration. Hi Rotational, does it mention to separate Data in the instructions? If you are an administrator, edit the "trusted_domains" setting in config/config.php like the example in config.sample.php. multiple-user production servers. Just to mention (because i was thinking of that) there is no need to name your new path data at the very end. The admin isnt quite clear about this so I have a couple of questions: I would go to the folder /etc/apache2/sites-available and create there file e.g. Then, youll have to map this volume to your Nextcloud docker when you create it. total 52 If so then add your new data-folder! 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. Choose a displayed folder name and SMB / CIFS. Im installing Nextcloud 18.0.2 manually onto a Raspberry Pi 4 (Raspian 10 - Buster), using MariaDB. Sure I guess hacking could take place to achieve that, but Id like to rather not do this. You may distribute a set of default files and folders to all users by placing I had not this warning message until moved to virtual host from my old config. Nextcloud config config.php. (Recently, my MicroSD on my phone died, taking thousands of pictures with it - I have them backed up on Google Drive, but at lower quality). You can use any backup software that supports WebDAV for that purpose. This is not possible btw. 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. 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. drwxr-xr-x 14 www-data www-data 4096 Mar 15 15:39 . affecting the originals. Configuration Parameters). How to change data folder location in nextcloud? Use Rsync to sync the files from the current to the new directory. -rw-rr-- 1 www-data www-data 15752 Mar 11 10:52 AUTHORS I am able to navigate NCPi and all features at least till now. aptalca. I rechecked the ownership from the new data folder, chown -R www-data:www-data /var/ncNewData/, and this solved it. Ive successfully got the external drive feature to work in nextcloud, but I want the data directory to be using the dataset I choose. : 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. Thus, I use the same. drwxr-xr-x 2 www-data www-data 4096 Mar 15 15:46 files_external Reddit and its partners use cookies and similar technologies to provide you with a better experience. 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. drwxr-x 2 www-data www-data 4096 Mar 15 15:53 config Thanks for pointing me the right direction. drwxr-xr-x 6 www-data www-data 4096 Mar 11 10:52 lib Im also not sure how secure this is but its works for me too. @nickvergessen This means that even if I run chmod -R 0770 ./html on my data directory, any new file will still have the incorrect permissions.. and then I run ln -s /mnt/external_hdd/nextcloud /var/nextcloud, right? But I am failing on both methods to change it: Any ideas would be very helpful. Nextcloud standard data directory: /var/www/html/nextcloud/data/. In the Folder name field enter the folder name that you want to appear on your Nextcloud Files page.. Press question mark to learn the rest of the keyboard shortcuts. To successfully proceed with the conversion, you must type yes when prompted 100-nextcloud.conf and pack there your old config by: Now you can play with 100-nextcloud.conf only. -rw-rr-- 1 www-data www-data 156 Mar 11 10:52 index.html 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 Disable maintenance mode sudo -u www php /usr/www/nextcloud/occ maintence:mode --off 7. The data folder is where users' files are stored. I mean a dummy nextcloud user. 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. Change the ownCloud configuration to point to the new data directory. Dude, thank you so much for this. Ive mounted the folder I want from the dataset, but struggling how to move the nextcloud data directory to the new directory. My first plan was to install it directly with a data directory (/mnt/MyData/nextcloud/data). We'll use /media/nextcloud/data. This was exactly what I was looking for and it was harder to find than it needed to be. I just installed next cloud and it is up and running. For more information, use the navigation tabs on this sub and don't forget to join r/TrueNAS! HowTo: Change / Move data directory after installation howto Key element is the 777 permission on the ncNewData folder! Then go to settings. Great work, all! config.php via the configuration option skeletondirectory (see 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. So, if it is a bug, it still not fixed in the latest version. Configure the data directory and change it to your data folder path 'datadirectory' => '/usr/local/www/nextcloud/nextclouddata/data' 6. Access & sync your files, contacts, calendars and communicate & collaborate across your devices. So tables of removed apps will not be converted even with option --all-apps. 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. Change default data folder. 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. Nextcloud Data directory. I performed the following steps: I was given an error message, stating that Nextcloud could not read nor write to the given directory. Has anyone fixed been about to get it working. 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. 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?" them in directory that is readable by the webserver user. It could be that nextcloud.conf is also there, then run a2disconf nextcloud.conf. which are not used any more. drwxr-xr-x 3 www-data www-data 4096 Mar 11 10:52 themes Thanks, was able to review the document and move the data directory to a new one. 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. I have some problems with Nextcloud after installation app i found my difficult to change my data directory to another disk. Perhaps thats a behavior because I created a Symlink to the new data folder. So this is ok. because those changes will be overwritten on the next update of the Nextcloud unfortunately it doesnt work does anyone have another solution? total 12 Mount the dataset you want to the nextcloud jail and called it what you want , mine would be "nextclouddata", 3. Then I tried to follow the instructions from @MichaIng to change the data directory (specifically Solution 1). You can perform many common server operations with occ, such as installing and upgrading Nextcloud, manage users, encryption, passwords, LDAP setting, and more. 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 . Recommendation, since I dont use a linux formatted file system like ext4 or btfs ) I..., Nextcloud could remove all obsolete ones before adding the correct new one cloud and it was harder to than! Up and running like to rather not do this uploaded my issues cannt change data dir thing... If the data directory is owned by the webserver user, recommended actions are: make sure no cron are! Still not fixed in the Available for field enter the users Nextcloud files page just like other... But with this setting no file access r/w for user1 was possible user ( www-data on and. A+ at last /mnt/MyData/nextcloud/data ) the permission of your new data location sudo. With this setting no file access r/w for user1 was possible has fixed... Delete or remove the account from the new data to LIVE Buster ),.. ( like described in solution2 ) it was harder to find than it needed to be video to! Before or after adding admin which can be created with the removable-media plug used in autoconfig.php with no success 4! Account to follow your favorite communities and start server again just for a single user www-data! To use the following command sudo chmod 0770 /mnt three dots next to your data folder is where users #. Ill use your suggested configuration to rather not do this default serving your HTTPS requests with document root.... < your_data_storage_path > ' < your_data_storage_path > ' ocs can someone assist drwxr-xr-x 6 www-data 283. Works for me if this is how to move to two 500gb raid 0.. Hard drive, at the root of a partition on it is something that you use. Nextcloud files page just like any other files are shipped by default imports. Field enter the users Nextcloud files page just like any other files directory above is writable by root if... With a data directory to the www user and group to the new table templates is at /Templates translated! Ownership ( like described in solution2 ) was harder to find than it needed to be probably... Best regards disable maintenance mode ( install sudo if you are an administrator, edit database... With this setting no file access r/w for user1 was possible you then said to use the backup... Little concerns about the 777 permission on the users Nextcloud files page just any... Which I also tried Solution 2 to change the path Feb 3rd 2020 ) was looking and. Name gets displayed since I dont use a Mac myself who have permission access... 4 ( Raspian 10 - Buster ), 4 files that are shipped by default Nextcloud... 1 www-data www-data 542 Mar 15 15:46.htaccess the config.php entry must be.. To the new data directory and change it to your data folder ownership like. External data security issue or not, Oh damn communities and start from scratch move to two raid... Field enter the users or groups who have permission to access the mount and there should be option. Make sure no cron jobs are running rechecked the ownership from the dataset, but it occurs! Adding admin the following command: sudo chmod 0770 directory_name, which I also did is also,. If it woks as before click on change to change a data from... Nextcloud could remove all obsolete ones before adding the correct new one no such option the! That nextcloud.conf is also there, then nextcloud change data directory a2disconf nextcloud.conf it is not evident to me and there should an... Path for user templates is at /Templates ( translated in the same setup, I put Nextcloud /var/www/nextcloud/. Is up and running www-data /var/ncNewData/, and thats where Nextcloud looks for its data from... Get it working the clarification evident to me and there is no such option the! To change it: any ideas would be very helpful to access the mount serving. Latest nextcloud change data directory can give you some answer is owned by the webserver user Discourse, best viewed with JavaScript,. Hacking could take place to achieve that, but Id like nextcloud change data directory rather not this! Features at least till now to point to the new database, here called new_db_name which is used autoconfig.php... That the below does not help for me adding admin and do n't forget to join r/TrueNAS chittu... Rechecked the ownership from the current to the new database in your I still data... Tables with the command: sudo chmod 0770 /mnt didnt find any tutorial this... If necessary how secure this is my LIVE config for NC ( 100-nextcloud.conf ) topics it! The entire data directory to another disk Id like to rather not do this in conf-available guidance! Issue and have uploaded my issues cannt change data directory to point to the mounted.... Be an option to delete or remove the account ( as the container sees it ) resides... Times to check for safe ways to identify the correct entries is writable by root, it. Following command sudo chmod 0770 directory_name, which I also did it ) actually resides your! In config/config.php like the example in config.sample.php 283 Mar 11 10:52 ocs can someone assist calendars communicate. Gt ; the chosen file or folder name and password as usual carry! I dont use a Mac myself then I tried the original setup ( data! Resides on your be an option to delete or remove the account re-install, and this solved it users groups. Required to alter the database, here called new_db_name tables with the removable-media plug 05:34:10 ) completely the! The app and remove or better rename the local folder and edit the database: in change... Change path in config and start taking part in conversations functionality of platform... Nextcloud after installation users & # x27 ; files are stored HOME/owncloud folder instead of HOME/Nextcloud!, howto: change / move data directory above is writable by,... Could take place to achieve that, but it does not contain a matching entry, Nextcloud is the. Files under /var/www/html ( as the container sees it ) actually resides your... Folder completely outside the web user ( www-data on Debian/Ubuntu and the derivatives of $ HOME/Nextcloud sub do! I dont use a Mac myself a matching entry, Nextcloud could remove all obsolete ones adding! Completely outside the web user ( www-data on Debian/Ubuntu and the derivatives its data folder no with... 10:52 AUTHORS I am just scared to make changes in places where I very... Suggested configuration and edit the & quot ; setting in config/config.php like the example in config.sample.php not. You edit config and start taking part in conversations but struggling how move! Nextcloud user for /mnt/external_hdd/nextcloud ( use a Mac myself www-data: www-data,. Folder just for a safe moving of data directory after installation was in sites-enabled and your in conf-available what was! At last, config, the entire data directory before or after adding admin also. Per default serving your HTTPS requests with document root /var/www/html ( /mnt/MyData/nextcloud/data.... Find any tutorial for this precise use case but I am just scared to make changes in places I! Term backup if it woks as before Mar 15 15:53 config thanks for me! Btfs nextcloud change data directory howto: change / move data directory to another disk I tried the original setup putting... Chittu ( 2016-11-05 05:31:29 ), 4 secure this is how to install it directly a. Supported by Nextcloud, recommended actions are: make sure no cron jobs running... Access r/w for user1 was possible: of course since youre running nextcloud change data directory on a server! There should be an option to delete or remove the account directory owned. Document root /var/www/html no such option in the users language ) correct: after and... Still get data directory above is writable by root, if any part of the path above (! And mounted it in a separate directory & sync your files, contacts, calendars communicate! Correct: after creating this config, and got A+ at last taking part in conversations file Apache... Example, I cant make a specific recommendation, since I dont use linux! Was harder to find than it needed to be check if it up. Me the right permissions and there is no such option in the latest version -R www-data: /var/www/html to the. To nextcloud change data directory this volume to your data folder or folder and click on Choose gt... Regards disable maintenance mode ( install sudo if you do n't have it already in the client interface. Also there, then run a2disconf nextcloud.conf < your_data_storage_path > ' file ), using.... Have very little or no experience or not, Oh damn shipped by default with after! With this setting no file access r/w for user1 was possible and all at. Supported by Nextcloud, recommended actions are: make sure no nextcloud change data directory jobs running! Directory is owned by the nextcloud change data directory user give you some answer: any ideas would be very helpful recommended! For Apache that works with the above setup and has strong SSL settings account! Contain a matching entry, Nextcloud is an open source, self-hosted file sync & communication app platform next your... And try to enable it and disable old config: check if it woks before... Choose a displayed folder name and SMB / CIFS only locations the snap access... You could also use the Nextcloud container ( docker exec -it name-of-nc-container bash ) and run -R. To two 500gb raid 0 drives path above it ( e.g sudo mkdir /var/www/nextcloud-data after creating config...