Guest User

Untitled

a guest
May 27th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #!/bin/sh
  2. # A little script to easily prune jobs in bacula
  3. # without having to manually prune them
  4. volumes=""
  5. for i in $(seq 20 1 99)
  6. volumes="$volumes Maliserver-00$i"
  7. done
  8. CMD<<EOF
  9. prune Volume pool=MailServerPool
  10. $volumes
  11. mod
  12. yes
  13. EOF
  14. # Moves into the catalog where bconsole is ( might be different on you system )
  15. cd /usr/bin/
  16.  
  17. # Starts bconsole
  18. ./bconsole << $CMD
Add Comment
Please, Sign In to add comment