Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4872

Beginners • Raspberry Pi 5/Nextcloud: Move Data To SSD

$
0
0
Hi,

I am building my own Nextcloud server basing the build on a build document for the Raspberry Pi. I'm no Linux expert so that's why I've come to ask you guys :slight_smile:

My kit for the build is:
  • Raspberry Pi 5, 8Gb (Pi-Hut UK)
  • ADATA 64Gb MicroSD (Amazon UK)
  • ADATA 240Gb SSD (Amazon UK)
  • Geekworm X1100 SATA HDD/SSD Shield
  • Geekworm Raspberry Pi 5 PSU

My aim is to have Nextcloud installed on the MicroSD but to locate the data on the attached SSD.

Everything is working so far, I've logged on to Nextcloud via the web interface but now I've reached a point in the document where I think I could potentially configure the data to sit on the SSD:

Move Nextcloud's data folder:•mkdir -p /var/nextcloud
  • mv -v /var/www/nextcloud/data /var/nextcloud/data

In Nextcloud's configuration folder, make a backup of the config file then edit the original:
  • cd /var/www/nextcloud/config
  • cp -p config.php config.php.bk
  • nano config.php

Edit the 'datadirectory' line to read: 'datadirectory' ='/var/nextcloud/data',

Exit, saving the file.

Ensure that the www-data user still has ownerships over our new folder. Once done, you can refresh the Nextcloud web page and everything should be as previous.

  • sudo chown -R www-data:www-data /var/nextcloud/data

I think I have to change /var/nextcloud to something SSD related or perhaps simply mount the SSD into the /var/nextcloud folder.

Any advice would be greatly appreciated as I'm a little out of my depth.

James

Statistics: Posted by JamesCRocks — Tue Nov 05, 2024 4:57 pm



Viewing all articles
Browse latest Browse all 4872

Trending Articles