Permanently mount external storage (server) to Nextcloud

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.0.12
How are you able to access your server: SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: Not yet

Describe your issue

I have rented a VPS at Hetzner and have installed YunoHost on it, and within YunoHost I have installed an instance of Nextcloud. The capacity of the server is only 40GB so I wish to add some storage. For that I have rented a 1TB Storage Box at Hetzner. Now I want to mount the Storage Box to the Nextcloud instance, so that all user data is stored there.

I have managed to mount the Storage Box to the Nextcloud data directory by using SFTP but I am struggling to mount it permanently. As I understand, I have to add some commands to fstab.

How can I figure out which command, and where can I finde the necessary information?

Share relevant logs or error messages

Not relevant

If you want to mount on nextcloud, you can do it from the admin interface of nextcloud. You better use sftp https://docs.hetzner.com/storage/storage-box/access/access-sftp-scp
You can also mount the sftp storage on your server and mount bind it to /home to allow other apps to use it

/home/yunohost.app/nextcloud/
This includes installed nextcloud apps, settings, etc

After some struggle (and vacation) I seem to have managed to attach the Storage Box to Nextcloud. At least, under nextcloud’s administration(external storage, a big green tick mark indicates so.

But still, I don’t know how to check if the extra storage is being used by Nextcloud. How can I check that?

And if that is not the case, how can I make Nextrcloud use the external Storag Box as the default place to keeo data?

That depends on how you mounted the storage.
On nextcloud, you will find the mounted storage as a new folder.
On configuration, you can allow others to use it.
Not all the data will be on it, only the data you copied, moved or uploaded to that folder.
To have all the nextcloud data on the external storage, you have to mount it on the system level and mount bind it to /home/yunohost.app/nextcloud

That is the solution I am aiming at. Do you know how to do it?

You can follow this guide Adding an external storage to your server | Yunohost Documentation
Read it at least 3 times, understand it, prepare the commands that you will use in a notepad with the correct order then start.

Thanks. I have looked at that page a number of times, but I am unsure of its relevance to me. It seems to be aimed at people “hosting on an ARM card with an SD card or on a server with a small SSD drive”.

Furthermore, ‘external storage’ does not seem to include non-local drives (“Have extra storage (SSD, hard drive, USB stick) connected to your server via USB or SATA”).

And so it does not appear as a guide to mount rented disk space at a provider ike Hetzner.

Or am I misunderstanding?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.