Go to file
2022-05-30 21:53:08 +02:00
assets genesis commit 2022-05-30 21:53:08 +02:00
.drone.yml genesis commit 2022-05-30 21:53:08 +02:00
.gitignore genesis commit 2022-05-30 21:53:08 +02:00
.pre-commit-config.yaml genesis commit 2022-05-30 21:53:08 +02:00
Dockerfile genesis commit 2022-05-30 21:53:08 +02:00
README.md genesis commit 2022-05-30 21:53:08 +02:00

docker-borgbackup-exporter

Build Status hadolint pre-commit

This is a simple cron based exporter for borg backup metrics, that are supposed to be delivered via any means like a simple nginx or using node_exporters textfile or adding pushgateway pushes.

example usage

version: '3'

services:

  backup:
    build: .
    environment:
      - BORG_PASSPHRASE=ThisIsTheAbsolutlyAlmightySecretCredential
      - BORG_REPO=ssh://<user>@<host>/<root folder>
      - CRON_SCHEDULE=0 */1 * * *
    volumes:
      - ./conf/.ssh:/root/.ssh               # this volume should contain an prive ssh key and an authorized hosts key
      - exporter-data:/output                # this volume is used to share the metrics file

  borg-exporter-front:
    image: nginx:1.21
    volumes:
      - exporter-data:/usr/share/nginx/html/
    ports:
      - 8080:80

volumes:
  exporter-data: