Create script to run from Nextcloud container

NethServer Version: 8
Module: nextcloud

Hi all,

going away for a few days I need to be able to adjust a simple webpage I created on my (non NS-based) webserver. I don’t have direct access to that webserver from abroad, so I was thinking to create a script that copies all files from a specific folder in Nextcloud (I do have access to that from abroad) on regular intervals to my webserver (using scp).
Scripting that is not hard, but how do I get shell access to the container where my nextcloud files are.
Do I run into network difficulties, or can I just scp to 192.168.x.y (IP of webserver).
Is cron available there?
This does not need to be persistent over updates; It’s just for the weekend.
any help appreciated.

Hi Rolf,

I think there’s no need to enter the container as the Nextcloud data is stored in a volume so it’s located on the host in /home/nextcloud1/.local/share/containers/storage/volumes/nextcloud-app-data/_data/data/ (you may need to adapt nextcloud1 to the name of your Nextcloud app instance)

In the Nextcloud accounts page you can check which UUID maps to the user you need.

You can use scp to transfer the files, there should be no issues.

Cron usually is available in the supported distros.

1 Like