bareos: prune all clients

#!/bin/bash
set -e set -x CLIENTS=$(echo "list clients" | bconsole | grep "-fd" | awk -F'|' '{ print $3 }' | sed 's/\ //g') for CLIENT in $CLIENTS ; do echo "pruning $CLIENT…" echo "prune jobs client=$CLIENT jobtype=backup yes" | bconsole done echo "done."

Kommentar verfassen

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Nach oben scrollen