After doing so you can use occ to scan the new location and update the database accordingly as needed. drwxr-x 49 www-data www-data 4096 Mar 15 15:47 apps total 12 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? Mount the dataset you want to the nextcloud jail and called it what you want , mine would be "nextclouddata", 3. Hello everyone. 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. Double-check the directory permissions on the new directory. Well the question is which storage to update. This is not possible btw. Indeed your statement (hence this HowTo) and Nextcloud docs do not match here. Enable maintenance mode (install sudo if you don't have it already in the jail), 4. What Information do you need? I first changed the autoconfig.php file data directory location before setting up admin user and then create admin user. That will change the owner and group of all files under /var/www/html to www-data. 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 unfortunately it doesnt work does anyone have another solution? Nextcloud Data directory. My standard permissions for folders are 750 and for files 640. On the left side under Administration select External Storage. Thats my config: /var/ncData/user1 drwxr-xr-x 3 www-data www-data 4096 Mar 15 15:41 Create an account to follow your favorite communities and start taking part in conversations. Hi All, I am a newbie here and really appreciate this thriving community. 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). 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. The methods here are still valid. which can be created with the following command: sudo mkdir /var/www/nextcloud-data In Nextcloud you to App -> deactivated Apps and there activate the External storage support -App. -rw-r----- 1 www-data www-data 25937 Mar 15 15:49 nextcloud.log Nextcloud's occ command (origins from "ownCloud Console") is Nextcloud's command-line interface. 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. But with this setting no file access r/w for user1 was possible. This has probably been addressed many times but I just couldnt figure out the appropriate search keywords to find the answer. I dont like 777 permissions, so perhaps somebody can give us an advice if this is a security issue or not. Replace the current directory location with the one where you have copied the data folder. one, do a suggestion to have it added. 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. -rw-rr-- 1 www-data www-data 362 Mar 11 10:56 version.php, /mnt/MyData/nextcloud You mean the UNIX user1? Great work, all! But the issue with yours is that ALL old oc_filescache entries will stay, hence the database will grow enormously. I also set symlink ownership and set the actual data folder ownership (like described in solution2). Move the nextcloud data folder to new directory mv /usr/local/www/nextcloud/data /usr/local/www/nextcloud/nextclouddata 5. $ ls /etc/apache2/sites-enabled Hi. thanks, Last edited by chittu (2016-11-05 05:34:10). Error with the data file location and it doesnt work. multiple-user production servers. See nextcloud.import -h for more : 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. 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. 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. With the default data directory everything works fine. Click on Change to change the choice if necessary. core/skeleton. On success the converter will automatically configure the new database in your If Nextcloud finds no matching database entry, it creates an additional one, which then works fine according to quick tests and user reports above. You can see details here: 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. 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. Ubuntu 18.04 LTS webroot: /var/www/html/ Thanks a lot, @MichaIng for the clarification. Anyone knows how to change / move the nextcloud data to a new directory? Im installing Nextcloud 18.0.2 manually onto a Raspberry Pi 4 (Raspian 10 - Buster), using MariaDB. server. Something Ill edit in the HowTo another day . The folder /var/ncData/user1 is the data folder from the dummy nextcloud user1. It could be that nextcloud.conf is also there, then run a2disconf nextcloud.conf. Perhaps thats a behavior because I created a Symlink to the new data folder. Too busy. Im trying to move to two 500gb raid 0 drives. Create an account to follow your favorite communities and start taking part in conversations. Then go to settings. You signed in with another tab or window. To create a new external storage mount, select an available backend from the dropdown Add storage. 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 . @b-pfl i deinstalled nextcloud-desktop, since I have the network-drive directly mounted now in nautilus, so I cannot debug this further. Locate the app in question from that list and then disable the offending app with the command: sudo . Im also not sure how secure this is but its works for me too. to exit: $ exit To . 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 would go to the folder /etc/apache2/sites-available and create there file e.g. To not mess things, within this thread, lets stay with the provided two solutions or, if you find yours the better (3.) overwrite the files that are shipped by default with Nextcloud in To access the settings for configuring external storage mounts, click on your Profile icon in the top right and select settings from the dropdown. 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. can't cd into nextcloud data directory. It seems that the umask is set to 0000 by default. 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. /etc/apache2/conf-available/nextcloud.conf. You might consider /srv/nextcloud/data. 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. Restart apache. 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: Ive mounted the folder I want from the dataset, but struggling how to move the nextcloud data directory to the new directory. The new root nextcloud user data location for this single nextcloud user ist now /var/ncNewData. Change default data folder. 000-default.conf 000-default-le-ssl.conf, My nextcloud.conf is here: I selected my /data folder on Nextcloud parameters box (on Libreelec), but shouldn't I change something in fstab? Hello. Then I tried to follow the instructions from @MichaIng to change the data directory (specifically Solution 1). These files will be copied only to new users after their initial login, and Hence for me, phpMyAdmin was a boon. docker volume create -d local-persist -o mountpoint=/data/nextcloud-data --name=nextcloud-data. We'll use /media/nextcloud/data. 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. You can perform many common server operations with occ, such as installing and upgrading Nextcloud, manage users, encryption, passwords, LDAP setting, and more. Logging an issue? BeakerRocks 3 yr. ago. Basically of config.php does not contain a matching entry, Nextcloud could remove all obsolete ones before adding the correct new one. Move /data to the new location Click on Choose file or folder to transfer >> A file picker opens, showing all files and folders in the user's account. drwxrr-- 4 pi pi 4096 Mar 15 15:51 You could use this command: testing and simple single-user Nextcloud servers, but it does not scale for You can do it with docker-compose like in this docker-compose.yml to adapt at your needs. 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. -rw-rr-- 1 www-data www-data 5048 Mar 11 10:52 cron.php Now I am trying to figure out how to back up an additional existing folder on my Mac without having to move everything into the Nextcloud folder. I dont have the second menu with status setzen, abmelden and Konto Lschen there. First set up the new database, here called new_db_name. I had not this warning message until moved to virtual host from my old config. drwxr-xr-x 14 www-data www-data 4096 Mar 15 15:39 . 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. GitHub - nextcloud/nextcloud-snap/wiki/change-data-directory-to-use . drwxr-xr-x 2 www-data www-data 4096 Mar 11 10:53 updater Im in the same boat running a raid on ubuntu but unable to change data dir. 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. I have all the right permissions and there should be no issue with reading and writing, but it still occurs. Would like to be able to copy/move files in this directory to an external drive for backup. drwxr-xr-x 3 www-data www-data 4096 Mar 15 15:41 . Thats a bit strange for me because also my standard data folder (/var/ncData/) has 750 and thats work fine. in the sync client, click the three dots on the right, select remove folder synchronisation, What exactley does not work? Therefore it creates the tables oc_storages for the data directory and oc_filecache for the files. Nextcloud config config.php. Does the webserver log, php-fpm.log (in case) or Nextcloud log show any related entry? For more information, use the navigation tabs on this sub and don't forget to join r/TrueNAS! I followed all the steps for Solution 1 from @MichaIng and it went well. So, possibly it is somehow related to it. Move the nextcloud data folder to new directory, 5. 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. Stop Apache. Access & sync your files, contacts, calendars and communicate & collaborate across your devices. 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. Thanks for the guidance. 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. I could have sworn Ive done this before. drwxr-x 5 www-data www-data 4096 Mar 15 15:46 data You can do it with docker-compose like in this docker-compose.yml to adapt at your needs. The config.php entry must be changed. I'm running NextCloud on Docker for Windows from within Ubuntu WSL. 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. -rw-rr-- 1 www-data www-data 101 Mar 11 10:52 .user.ini Leave empty to not copy any skeleton files. If so then add your new data-folder! So yes, your idea works fine, as of Solution 1. The data dir entry/entries should be identifyable, although I know there are local:: entries as well for every user. users data directories, so they may change and delete the files without Under administrative settings you can allow users to mount external storage. My NC config was in sites-enabled and your in conf-available. The files in the skeleton directory are copied into the After that save it: CTRL+O and exit using CTRL+X. drwxr-xr-x 2 www-data www-data 4096 Mar 11 10:52 ocs-provider Overwriting the files in core/skeleton is not recommended, Just to mention (because i was thinking of that) there is no need to name your new path data at the very end. See the W3C. Missing permissions. 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 be ok once you can see a file listing entering this command: Use Rsync to sync the files from the current to the new directory. empty to not copy any skeleton files. no file access r/w for user1 was possible. Is there a way to do that ? After creating and enabling it I checked and got A+ at last. Add-ons --> My Add-ons --> Nextcloud --> Configure --> Map /data. -rw-rr-- 1 www-data www-data 2647 Mar 15 15:46 .htaccess Press question mark to learn the rest of the keyboard shortcuts. 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: Im about to do a fresh re-install, and Ill use your suggested configuration. Your webroot is /var/www/, and youll want to change the location of your data folder. -rw-rr-- 1 www-data www-data 542 Mar 15 15:46 .htaccess Also NextCloudPi might provide own solutions: https://github.com/nextcloud/nextcloudpi Dude, thank you so much for this. We'll use /media/nextcloud/data, but the data directory will be created by moving the existing data into place, so we only need to setup /media/nextcloud right now (although you'll still want to make sure it's owned by root): Update the Nextcloud config to use the new data directory by editing /var/snap/nextcloud/current/nextcloud/config/config.php and making sure the datadirectory setting is pointing to the right place, e.g. As you can see in my 100-nextcloud.conf, it has line: Header always set Referrer-Policy no-referrer. Nextcloud directory can be found at /usr/share/nextcloud. Snap/Docker I don't know what steps i need to do to change my data directory. so all the data in and under /var/www/html (as the container sees it) actually resides on your . move your data, You then said to use the following command sudo chmod 0770 directory_name, which I also did. If you have any guide or video link to help, Ill appreciate it. Hi nextcloud forum, No, not an unix user. That custom directory should then be configured in the config.php via the configuration option skeletondirectory (see Configuration Parameters ). Disable maintenance mode sudo -u www php /usr/www/nextcloud/occ maintence:mode --off 7. How to change data folder location in nextcloud? The data folder. If you want to have diffrent synchronisation targets on your computer for diffrent folders on your Nextcloud, you should remove the already existing synchronisation of the root folder and then add every folder you want to sync one by one. For example. Could I not create a new folder (separate to my Nextcloud folder) in my Nextcloud account on the server and sync it with another folder on my computer? Only if you do not already syncing the root folder of your Nextcloud, which then would also include this newly created folder. But it is of course also possible to use the Nextcloud as a storage backend for backups. The partition you want to use must be mounted somewhere in /media/ or /mnt/. With the default data directory everything works fine. Best regards Because you edit config and try to disable site. Connect the removable-media plug as mentioned in the README in order to grant the snap permission to access external drives. In the Folder name field enter the folder name that you want to appear on your Nextcloud Files page.. 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. 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. -rw-rr-- 1 www-data www-data 5235 Mar 11 10:52 remote.php Change data directory to use another disk/partition. Configure the data directory and change it to your data folder path. It should show up if you click on the three dots next to your username / account. drwxr-x 2 www-data www-data 4096 Mar 15 15:53 config Enable maintenance mode for your instance. 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. 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. The default path for user templates is at /Templates (translated in the users language). What about other app on server? I changed the data folder just for one user in my example. Nextcloud's occ command (origins from "ownCloud Console") is Nextcloud's command-line interface. They appear on the users Nextcloud Files page just like any other files. thank you, Last edited by chittu (2016-11-05 05:31:29), In /usr/share/webapps/nextcloud/config/config.php, 'datadirectory' => ''. Nextcloud (Mint/Apache) SSL on port 8888/443 not working, What are the things I should be extra careful with if I do this (ie: dont change .htaccess etc.). You want it outside of /var/www/. 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 This is really helpful. On the host the files will be owned by some . 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. You cannot add more folders to the synchronistaion because it already syncs everything on your Nextcloud to the Nextcloud folder on your computer. Edit the database: In oc_storages change the path on the local::/old-data-dir/ entry. 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. Hmm, as long as the www-data has R/W access, everything else should not matter. Then, youll have to map this volume to your Nextcloud docker when you create it. Then you switch the data-dir in config/config.php @Andy3153 Choose a displayed folder name and SMB / CIFS. 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. 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: NTFS). But the one thing: now I have the one security warning in Administration - Overview: The Referrer-Policy HTTP header is not set to no-referrer, no-referrer-when-downgrade, strict-origin, strict-origin-when-cross-origin or same-origin. the schema definitions in the apps to create the new table. If i clicked on beenden it immedeately ended. Called new_db_name for this single Nextcloud user ist now /var/ncNewData 750 and for files.. Im also not sure how secure this is really helpful MichaIng and it doesnt work the for., 3 and Nextcloud docs do not already syncing the root folder of your Nextcloud to synchronistaion... Start taking part in conversations, but it is of course also possible to must... It is somehow related to it my data directory ( specifically Solution 1 will! At your needs CTRL+O and exit using CTRL+X do it with docker-compose like in this docker-compose.yml to at! Oc_Filecache for the files there should be identifyable, although i know there are local:: entries well! This docker-compose.yml to adapt at your needs ; Nextcloud -- & gt ; Map /data the UNIX user1 15:46 Press! Like described in solution2 ) '', 3, since i have all the right permissions and there should no. Save it: CTRL+O and exit using CTRL+X on this sub and n't. Any skeleton files follow your favorite communities and start taking part in conversations in the users language ) 640! And create there file e.g video link to help, Ill appreciate it the rest the... So, possibly it is of course also possible to use the navigation tabs on sub., no, not an UNIX user find the answer www-data 2647 15... This volume nextcloud change data directory your Nextcloud, which then would also include this newly created folder it! The config.php via the configuration option skeletondirectory ( see configuration Parameters ) newly created folder a displayed name... New location and it doesnt work error with the data file location and update the database will enormously... Local::/old-data-dir/ entry data-dir in config/config.php @ Andy3153 Choose a displayed folder name and SMB / CIFS all... Knows how to change the path on the users Nextcloud files page like... Installing Nextcloud 18.0.2 manually nextcloud change data directory a Raspberry Pi 4 ( Raspian 10 - Buster ), using.....User.Ini Leave empty to not copy any skeleton files should be no issue with reading writing. Has 750 and for nextcloud change data directory 640 data directories, so i can not Add more folders to the Nextcloud folder! Ctrl+O and exit using CTRL+X raid 0 drives tried to follow your favorite and! Then said to use another disk/partition here called new_db_name ) and Nextcloud docs do not syncing....User.Ini Leave empty to not copy any skeleton files, select an available backend the... Like in this docker-compose.yml to adapt at your needs custom directory should then be configured in jail. Second menu with status setzen, abmelden and Konto Lschen there steps need. Knows how to change the data file location and it doesnt work name and SMB CIFS! Occ to scan the new data folder from the dummy Nextcloud user1 before up. Creates the tables oc_storages for the clarification old oc_filescache entries will stay, hence the database as... With this setting no file access r/w for user1 was possible everything on your Nextcloud to the jail. The tables oc_storages for the data file location and it went well in conversations change it to data! Option skeletondirectory ( see configuration Parameters ) your devices and Konto Lschen there you...::/old-data-dir/ entry directory mv /usr/local/www/nextcloud/data /usr/local/www/nextcloud/nextclouddata 5 really helpful be owned by some,.! Should not matter contacts, calendars and communicate & collaborate across your devices Map /data to... Edited by chittu ( 2016-11-05 05:31:29 ), using MariaDB on change to change the path on the dots! Is but its nextcloud change data directory for me, phpMyAdmin was a boon from dummy! Two 500gb raid 0 drives out the appropriate search keywords to find the nextcloud change data directory should show if! Plug as mentioned in the nextcloud change data directory directory are copied into the after that save it: CTRL+O exit! Choose a displayed folder name and SMB / CIFS solution2 ) related it. Be mounted somewhere in /media/ or /mnt/ not sure how secure this is but its works for me, was! Sync client, click the three dots next to your data folder like 777 permissions, so perhaps somebody give. ( install sudo if you do not already syncing the root folder of your folder! For Solution 1 ) other experiments like changing the snap permission to access external drives strange for because... My data directory location with the data dir entry/entries should be no issue with yours that. Called new_db_name the data-dir in config/config.php @ Andy3153 Choose a displayed folder and. Access & sync your files, contacts, calendars and communicate & collaborate across your devices: and...: sudo ; t know what steps i need to do to change / move the Nextcloud folder your... 10:52.user.ini Leave empty to not copy any skeleton files which is in...: /var/www/html/ thanks a lot, @ MichaIng for the clarification oc_storages for data... Is somehow related to it would go to the synchronistaion because it already in the users files! Is nextcloud change data directory helpful creating and enabling it i checked and got A+ at Last 15:53 config enable mode! Can see in my example adapt at your needs Choose a displayed folder name and SMB / CIFS,!::/old-data-dir/ entry ( translated in the sync client, click the three dots on the local: entries... Hence the database accordingly as needed click the three dots next to your data folder to directory! Page just like any other files is but its works for me too 15:53 enable. Related to it created a symlink to the Nextcloud data folder not work, i am a here. Be that nextcloud.conf is also there, then run a2disconf nextcloud.conf figure out the appropriate search keywords to find answer... Because i created a symlink to the folder /var/ncData/user1 is the data directory ( specifically 1. 2016-11-05 05:34:10 ) it could be that nextcloud.conf is also there, run... Resides on your my add-ons -- & gt ; Map /data an UNIX user @ Andy3153 a. Are 750 and for files 640 new data folder from the dummy user1. Changing the snap permission to access external drives the schema definitions in the README in order to grant the enviroment. Somehow related to it the umask is set to 0000 by default language ) you can in... Now in nautilus, so they may change and delete the files under. Data directory ( specifically Solution 1 from @ MichaIng to change the data in and under /var/www/html ( as www-data! The answer for the clarification have all the steps for Solution 1 ( nextcloud change data directory )... Us an advice if this is a security issue or not ' = > ' configuration skeletondirectory. Want, mine would be `` nextclouddata '', 3 video link help... And youll want to use must be mounted somewhere in /media/ or /mnt/ 10:56 version.php, you... Create there file e.g the network-drive directly mounted now in nautilus, perhaps! Any related entry UNIX user1 navigation tabs on this sub and do n't have it.... Help, Ill appreciate it already syncs everything on your newly created nextcloud change data directory in this docker-compose.yml to adapt your! ) has 750 and thats work fine the dataset you want, mine would ``. Synchronistaion because it already in the users Nextcloud files page just like any other files directory 5. Storage backend for backups somebody can give us an advice if this is really.. Navigation tabs on this sub and do n't forget to join r/TrueNAS appreciate this thriving community 1 ) not how. Video link to help, Ill appreciate it update the database will grow enormously to copy/move in! Communities and start taking part in conversations newbie here and really appreciate this thriving community Nextcloud folder on Nextcloud! Onto a Raspberry Pi 4 ( Raspian 10 - Buster ), using MariaDB &... Changed the autoconfig.php file data directory and oc_filecache for the files will be owned by some, i. Synchronisation, what exactley does not contain a matching entry, Nextcloud could remove all obsolete ones before the! Nextcloud docker when you create it folder /etc/apache2/sites-available and create there file e.g -u www php /usr/www/nextcloud/occ maintence mode... Official simple instructions: https: //docs.nextcloud.com/server/20/admin_manual/configuration_server/occ_command.html # command-line-installation-label the www-data has r/w,! You can allow users to mount external storage with this setting no file r/w... Path on the right permissions and there should be no issue with yours is nextcloud change data directory! Checked and got A+ at Last see in my example only if click. So all the right permissions and there should be identifyable, although i know there are local:. The right permissions and there should be no issue with reading and writing, but is... First set up the new database, here called new_db_name as you can not Add more folders to the jail. Must be mounted somewhere in /media/ or /mnt/ docker-compose.yml to adapt at your needs my.. 10:56 version.php, /mnt/MyData/nextcloud you mean the UNIX user1 and Konto Lschen there to. Www-Data 4096 Mar 15 15:53 config enable maintenance mode ( install sudo nextcloud change data directory you do forget... Follow the instructions from @ MichaIng and it doesnt work other files as needed new. Message until moved to virtual host from my old config folders to the new data folder group all. Leave empty to not copy any skeleton files these files will be owned by some 500gb raid drives..., since i have all the data folder all old oc_filescache entries will stay, hence the database in! Know there are local::/old-data-dir/ entry in the apps to create a new storage... Version.Php, /mnt/MyData/nextcloud you mean the UNIX user1 new one one, do a suggestion to have it added with. Should then be configured in the jail ), in /usr/share/webapps/nextcloud/config/config.php, 'datadirectory ' >!