Skip to content

Instantly share code, notes, and snippets.

View rsftsi's full-sized avatar

Renato Freitas rsftsi

View GitHub Profile
@rsftsi
rsftsi / prune_old_vols.sh
Last active December 13, 2019 04:01 — forked from starkers/prune_old_vols.sh
prune delete and remove old bacula volumes
#!/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"