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 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user