Change storage location for files on Nextcloudpi

Good afternoon all,

I am running Nextcloudpi on a Pi 4b with 1TB m.2 sata hat. I can see the m.2 drive showing on the dashboard, but nothing is being saved to it.
I am brand new to Nextcloud, however having managed to navigate the instillation process, I have managed to get it to a place where I am able to upload photos and files from my phone.
I seem to be unable to change the location where the files are stored.
Any help would be amazing.
Thanks in advance.

HowTo: Change / Move data directory after installation

Take a look at this posts.

Thanks for that.

Like I said, I am embarrassingly new with NC and any type of coding.

When it says
"Replace those placeholder paths to match your setup.

ncdir=‘/path/to/nextcloud’
olddata=‘/old/path/to/data’
newdata=‘/new/path/to/data’
What does that mean? Or where do I find those paths? would it be datadir /media/USBdrive/ncdata/data ordbdir /var/lib/mysql

Thanks again.

How did you do installing/setup ncp?
First lesson learned - changing setups afterwards needs some skills in cli, linux et.al.
So the very first question should be is selfhosting the way to go using nextcloud or will you better off with cheap to no money services with next cloud?

I imaged the file from github onto the SD card.
To be honest, I thought that I would like to try my hand at self hosting as I had a Raspberry Pi4b sitting here not doing anything and then came across Nextcloud.
I understand that there are cheap options available and that some skill will be needed to change the setups, but also saw that there was an active community here to help so thought that support would be available if needed.
I am new to code, but I’m also eager to learn.

1 Like

So am I, that sounds all totally fine.
My proposal would be, trying to get the sata device the boot device and installing there the whole system.

I was just wondering if there was a way of flashing the image to the sata drive to start with…
Therefore eliminating the SD card all-together.

Yes, that is what I want you to do.
Do you have another computer , laptop, pi at hand?
Do you have keyboard and monitor connected to your pi4?

I am currently SSH into the pi, however I do have a spare laptop, monitor and keyboard to hand…

So we have choice.
Sorry, I’m not so keen as you may hope, I would prefer to do the “journey” with the pi connected KB/MON. We could it boot up with an os/raspianos on sd-card and try to fetch the image and write it with rpi-imager to the sata-disk.
If the sata-device is easily connected at the laptop, we could the imaging there.