#!/bin/bash
PBS_PASSWORD="Wiry3-Finally-Juror-Glorious"
PBS_FINGERPRINT="be:e1:16:01:34:26:e7:27:a5:c0:ef:d5:54:27:02:38:ea:94:6d:fc:d1:6e:c5:b2:ec:7d:c3:d9:d5:32:9e:c0"
PBS_REPOSITORY=bck_ops@pbs@localhost:vmx-pbs_data1
NEW_OWNER=bck_ops@pbs
CLIENT_LIST=$(proxmox-backup-client list | cut -c5- | grep -E '(ct|vm|host)/.*' | cut -d' ' -f1)

# Boucle sur la liste
for MYCLIENT in $CLIENT_LIST; do
	echo "My Client : $MYCLIENT"
  proxmox-backup-client change-owner "$MYCLIENT" "$NEW_OWNER"
done
