Skip to content

Instantly share code, notes, and snippets.

@rsftsi
rsftsi / prune_old_vols.sh
Last active Dec 13, 2019 — forked from starkers/prune_old_vols.sh
prune delete and remove old bacula volumes
View prune_old_vols.sh
#!/usr/bin/env bash
#set -x
# Prune and volumes older than 2 months:
PAST=`date --date='-1 months 0 day ago' +%Y-%m-%d`
#EG a hard coded date
#PAST="2012-11-29"
#PAST="2013-11-29"