From 2ea4238a84fca7a8f92256b61db7c3ca3af5dfc5 Mon Sep 17 00:00:00 2001 From: Adrian Popa Date: Thu, 31 Mar 2022 10:57:11 +0300 Subject: [PATCH] Corrected some more legacy documentation --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c3f498f..1354549 100644 --- a/README.md +++ b/README.md @@ -14,13 +14,17 @@ Export borg information to prometheus. Extended to export information about a li ### Manually Copy `borg_exporter.sh` to `/usr/local/bin`. -Copy `borg_exporter.rc` to `/etc/` and replace your repokey and repository in it. +Copy `borg_exporter.rc` to `/etc/` and configure it (see the configuration section below). -Copy the systemd unit to `/etc/systemd/system` and run +Copy the systemd unit and timer to `/etc/systemd/system`: +``` +sudo cp prometheus-borg-exporter.* /etc/systemd/system +``` +and run ``` -systemctl enable server3-borg-exporter.timer -systemctl start server3-borg-exporter.timer +sudo systemctl enable prometheus-borg-exporter.timer +sudo systemctl start prometheus-borg-exporter.timer ``` Alternative: Use `ExecStartPost` in your borg backup timer itself to write our the metrics.