From c88b2b17908f6293fa13c835d6a9384308348419 Mon Sep 17 00:00:00 2001 From: meteo Date: Mon, 18 May 2026 20:57:49 +0200 Subject: [PATCH] unset proxmox backup if no backup is enabled --- proxmox-to-sentri.sh | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/proxmox-to-sentri.sh b/proxmox-to-sentri.sh index f1bc128..5ea00c2 100755 --- a/proxmox-to-sentri.sh +++ b/proxmox-to-sentri.sh @@ -2,33 +2,6 @@ set -euo pipefail -# ----------------------------------------------------------------------------- -# Proxmox VM Inventory Exporter -# -# Exports one JSON object per VM with: -# - CPU / RAM -# - Network IPs -# - Snapshots -# - Backup detection -# - VM notes -# - Disk information -# -# Requirements: -# - curl -# - jq -# - for ipv4 and ipv6 collection install the proxmox agent on the VM -# -# Files: -# .env -# -# Example .env: -# PM_HOST="https://proxmox.example.com:8006" -# PM_USER="root@pam" -# PM_PASS="password" -# -# Output: -# ./output/.json -# ----------------------------------------------------------------------------- SCRIPT_PATH="$(readlink -f "${BASH_SOURCE[0]}")" SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_PATH")" && pwd)" @@ -287,7 +260,7 @@ while read -r VM; do if $backup == "yes" then [{"+proxmox":"yes"}] else - [] + [{"-proxmox":"no"}] end ), "server_description": $description