1

I dont know whether this is possible or not, but what I want is, I want to install next cloud in my raspberry pi and I know how to install and I want to target the mysql database which is installed in a different server and I know how to do this as well, but my question is, I want to change the data directory to complete new server, for example, my raspberry pi has only 16gb memory card, so I have secondary linux server which contains 2TB of hard disk and also mysql is also installed in this 2TB server, so I want the data to be kept in this new 2TB server instead of raspberry. So is it possible?

Any help or suggestions is greatly appreciated....

GRK
  • 17
  • 4

1 Answers1

2

By installing a NFS server on the other server with 2TB storage you can export a directory of this server and mount it on the raspberry pi.

To install the NFS server on Debian (or raspbian) follow e.g. this tutorial https://linuxconfig.org/how-to-configure-nfs-on-debian-9-stretch-linux or any other tutorial on the web.

The ArchWiki also has good documentation on NFS: https://wiki.archlinux.org/index.php/NFS.

You can change the data directory of Nextcloud using the datadirectory configuration option in the config/config.php file. Please be careful when changing the datadir when Nextcloud is already installed, this may give some weird problems.

LEDfan
  • 36
  • 1