Hi Just,
I had looked at the instructions given at Mounting an external drive using UUID and fstab | Linux admin junior
But that talks about making a data dir for nextcloud and using UUID rather than a label, which is where I got confused. Fell at the first hurdle as it were. I already have the datadir on the disk. I just need to set the label of the drive I believe so that it is fixed, rather than simply relying on it being the only HDD there. So when I plug the other drive in and it auto mounts, nextcloud doesn’t look at that expecting to find the datadir there.
The guide here How to periodically backup to a second USB drive with NextCloudPi
Taht Says to:
Important: make sure you use the drive label in nc-datadir and other configuration options. Use names such as /media/myCloudDrive
, instead of /media/USBdrive
, or otherwise the system will not be able to guess which drive holds the data and which one holds the backups.
But it doesn’t say what to do with the original drive. I don’t know how to set the label for the original one to be I assume /media/myCloudDrive/ncdata rather than /media/USBdrive/ncdata. Do I just input it in the ncp panel under nc-datadir? Or would that make it think I was moving the data dir and fail as its already there. That what lead me to another article I cant find right now which raised editing the config.php to just put the actual datadir location in there rather than /media/USBdrive/ncdata.
But I guess I’m not really sure where to start.
I will have another trawl through the forum.