bareos: prune all clients

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."

Leave a Reply

Your email address will not be published. Required fields are marked *

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