From d7829cb5aea434246c6e65bd5da0dd8f125b37e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Tue, 16 Jun 2026 21:13:00 +0200 Subject: [PATCH] docs: fix README backup/update/notifications sections - Source .env before restic init so RESTIC_REPOSITORY is available - Remove stale references to deleted _backup/.env and _update/.env - Update Notifications section to point at root .env Co-Authored-By: Claude Sonnet 4.6 --- README.md | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 0ea157f..9acca0a 100644 --- a/README.md +++ b/README.md @@ -109,8 +109,8 @@ Runs daily at 3:00 AM via a systemd timer. Detects Postgres databases automatica ```bash # First-time setup on VPS -cp .env.example .env && $EDITOR .env # set RESTIC_REPOSITORY, RESTIC_PASSWORD, WEBHOOK_URL -restic init # initialise restic repo (uses vars from .env) +cp .env.example .env && $EDITOR .env # set RESTIC_REPOSITORY, RESTIC_PASSWORD, WEBHOOK_URL +source .env && restic init # initialise restic repo ./stacks.sh backup install # write & enable systemd unit + timer ./stacks.sh backup run # test run @@ -132,13 +132,9 @@ Runs nightly at 2:00 AM via a systemd timer. Pulls the latest image for every st ## Notifications -The update script and the backup script both POST to an n8n webhook, which forwards messages to Telegram. +Both update and backup POST to an n8n webhook on completion, which forwards the message to Telegram. -The webhook URL is set in: -- `_backup/.env` → `WEBHOOK_URL` -- `_update/.env` → `WEBHOOK_URL` - -Both point to the same n8n workflow at `https://n8n.pivoine.art`. The workflow accepts `{ "message": "..." }` and forwards it to Telegram. +The webhook URL is set via `WEBHOOK_URL` in the root `.env`. Both services point to the same n8n workflow at `https://n8n.pivoine.art`, which accepts `{ "message": "...", "color": "..." }` and forwards it to Telegram. ## Data