From 3b00ffa93db00964335f6f4d3c5d99b4caff7a20 Mon Sep 17 00:00:00 2001 From: Mikkel Georgsen Date: Fri, 16 Jan 2026 12:10:51 +0000 Subject: [PATCH] Add PBS helper script for backup monitoring ~/bin/pbs provides: - status: Overview with datastore, storage, dedup ratio, task summary - tasks: Recent backup/prune tasks with timestamps - errors: Filter for failures only - gc: Garbage collection details - snapshots: List recent backups per namespace - storage: Detailed dedup statistics Also installed bc for calculations. Co-Authored-By: Claude Opus 4.5 --- CLAUDE.md | 12 ++++++++++++ README.md | 1 + 2 files changed, 13 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index 76bc675..2874cb1 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -78,6 +78,18 @@ The `~/bin/dns` script manages Technitium DNS (internal zone: lab.georgsen.dk): ~/bin/dns lookup # Query DNS ``` +## PBS (Proxmox Backup Server) Access + +The `~/bin/pbs` script shows backup status and statistics: +```bash +~/bin/pbs status # Overview: datastores, storage, dedup, tasks +~/bin/pbs tasks [hours] # Show recent tasks (default: 24h) +~/bin/pbs errors [hours] # Show only failures (default: 72h) +~/bin/pbs gc # Garbage collection status +~/bin/pbs snapshots [ns] # List recent snapshots +~/bin/pbs storage # Detailed storage/dedup stats +``` + ## Beszel Dashboard Access The `~/bin/beszel` script manages the server monitoring dashboard: diff --git a/README.md b/README.md index 6839c13..0e050b5 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,7 @@ Helper scripts available: - `~/bin/dns` - Technitium DNS API - `~/bin/kuma` - Uptime Kuma monitoring API - `~/bin/beszel` - Beszel server dashboard API +- `~/bin/pbs` - PBS backup status and statistics ## Quick Links