Created
August 23, 2021 09:56
-
-
Save inode64/5f78bbbfc337887ad599a5d7a034573e to your computer and use it in GitHub Desktop.
Cancel all waiting jobs in bareos or bacula
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for fn in $(echo "s dir" | bconsole | awk '/is waiting/ {print $1}' | sort -r); do | |
echo "cancel jobid=$fn" | |
done | bconsole |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment