Skip to content

Instantly share code, notes, and snippets.

@athompso
athompso / prune_old_vols.sh
Last active October 23, 2015 15:23 — forked from starkers/prune_old_vols.sh
prune delete and remove old bacula volumes
#!/bin/sh
#set -x
# Prune and volumes older than 2 months:
PAST=$(date --date='-2 months 0 day ago' +%Y-%m-%d)
#EG a hard coded date
#PAST="2012-11-29"
#PAST="2013-11-29"