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