backup-Script/pbs_check.sh

13 lines
328 B
Bash

#!/bin/bash
# Lese die Datei /etc/pve/storage.cfg und gib die Zeilen aus, die "pbs:" enthalten
while IFS= read -r line
do
if [[ $line == *pbs:* ]]; then
output=$(echo "$line" | grep -oP '(?<=pbs:).*'| tr -d '[:space:]')
for i in $output; do echo $i
done
fi
done < /etc/pve/storage.cfg