Hello Robert You can create a file with list of volumes that you want to delete and use some script something like this below:
Example of file /tmp/volumes.txt volume01 volume02 volume03 #!/bin/bash bconsole=$(which bconsole) for volname in $(cat /tmp/volumes.txt); do echo $volname; echo "delete volume=${volname} pool=PoolName yes" | ${bconsole} ; rm -f /path/to/storage/${volname}; done Best regards *Wanderlei Hüttel* Em qui., 5 de ago. de 2021 às 16:38, Robert Earl <eleiso...@gmail.com> escreveu: > Hi folks, > I have a large number of abandoned volumes with no data, no associated > file, and haven't been written in years. I believe they are the obstacle to > automatic labeling of new volumes; my Maximum Volumes for this pool is 120. > > Alarmingly, I just found a "Full" volume whose mtime is April 9, 2021 but > Baculum's "Last Written" record is Feb. 28, 2019. > > I also have 10 old volumes that are outdated and I can purge/recycle. > > I am looking at batch-processing a large number of volumes, though, so > this is unwieldy through the GUI, and I'm dense on the niceties of > bconsole. What would be the procedure for a set of mass operations like > this from a script/command line? > > Thanks > Robert > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users >
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users