ngosang / restic-exporter

Prometheus exporter for the Restic backup system
MIT License
79 stars 17 forks source link

Also allow restic environment variables #21

Closed CommanderRedYT closed 8 months ago

CommanderRedYT commented 11 months ago

It would be nice if the script also supports variables from https://restic.readthedocs.io/en/latest/040_backup.html#environment-variables like RESTIC_REPOSITORY etc.

Then one could re-use the backup.env file for this script.

zauberstuhl commented 8 months ago

@CommanderRedYT it already does. If you remove the obsolete checks from the script you can use all environment variables from restic. The exporter is a simple wrapper around the restic cli tool.

I did it and it works perfectly:

You can test it with the docker image zauberstuhl/restic-exporter:main

Best

ngosang commented 8 months ago

Fixed in 1.5.0 / 4efcaba7c5aa4969b71d7ca6cf77c072d0587329