Sorry, just sent this from the wrong Email
Michael, I found this script somewhere if it helps
#!/bin/bash
cd /PATH/TO/bacula-backups/
for dir in $(find . -type d); do
for i in `find $dir -maxdepth 1 -type f -printf "%f\n"`; do
echo "list volume=$i" | bconsole | if grep --quiet "No results to list"; then
echo "$i is ready to be deleted as $dir/$i"
rm /PATH/TO/bacula-backups/$dir/$i
fi
done
done
Regards
Francis
----- Original Message -----
> From: "Michael Munger" <[email protected]>
> To: [email protected]
> Sent: Monday, 21 November, 2016 7:00:49 PM
> Subject: [Bacula-users] Reclaiming disk space
>
> I had several jobs setup with 90 day retention periods, 50GB volumes,
> and Maximum Volumes = 100. This is consuming 2.4TB of space.
>
> This is taking up too much disk space and - honestly - is overkill
> for
> what we need to back up.
>
> I have lowered the retention period to 35 days and the Maximum
> Volumes
> to 20, which will hopefully limit our disk space consumption to 1TB
> of
> space.
>
> What command (if any) can I run that will delete from disk those
> volumes
> that are no longer required? (Presumably, I only need the most recent
> 20
> volumes now?)
>
> --
> Michael Munger, dCAP, MCPS, MCNPS, MBSS
> High Powered Help, Inc.
> Microsoft Certified Professional
> Microsoft Certified Small Business Specialist
> Digium Certified Asterisk Professional
> [email protected]
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Bacula-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users