Sebclem / hassio-nextcloud-backup

Hass.io Add-on: Backup your snapshots to Nextcloud
GNU General Public License v3.0
118 stars 15 forks source link

Use this in docker installation #183

Closed jds11111 closed 1 year ago

jds11111 commented 1 year ago

Is your feature request related to a problem? Please describe. Before I switch to pure docker installation from HassOS, I need to get this addon working as a docker container. I suspect that this is possible, and have made progress despite my ignorance on the subject. I suppose I could use the Duplicati docker container, but yours is very nicely integrated with home assistant now.

Describe the solution you'd like Probably just need a few lines in the docs to explain how to do this, or a way to remove the code from requiring the supervisor?

Describe alternatives you've considered So far, I have done the following:

git clone https://github.com/Sebclem/hassio-nextcloud-backup cd hassio-nextcloud-backup docker build nextcloud_backup

Everything seems to work just fine so far. Then I run the image: docker run 94ffff31605e

But this throws some understandable errors:

curl: (6) Could not resolve host: supervisor
[21:53:48] ERROR: Something went wrong contacting the API

and [2022-09-06 21:53:52] [error]: Nextcloud config not found !

The first error is understandable, because supervisor is not running on such an install. The second, because I haven't written the config file yet, and not sure where to put it. I had assumed that the file config.json is where I could make some small changes, like the UI port, but my changes there don't seem to show up in the docker image. In fact the docker image has no port forwarding.

System information

Additional context I am happy to help debug this change. My installation is just test, not production so far.

Sebclem commented 1 year ago

Hi,

The main issue here is that you are not running a supervisor. Backups/snapshots are mades by the supervisor, this add-on only send a request to create a new one, download and upload it to your Nextcloud instance.

This add-on can't work without supervision, sorry.

jds11111 commented 1 year ago

OK. Thanks for letting me know.