Sep 182021
 

Sometimes I mess up. Then I have to clean up and redo.

These help me do that.

This deletes FullAutoNoNextPool-12954 to FullAutoNoNextPool-12958.

[dan@knew:~] $ seq 12954 12958 | xargs -n 1 -I % echo delete yes volume=FullAutoNoNextPool-% | sudo bconsole
Connecting to Director bacula.int.unixathome.org:9101
1000 OK: 103 bacula-dir Version: 9.6.7 (10 December 2020)
Enter a period to cancel a command.
delete yes volume=FullAutoNoNextPool-12954
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"

This command will delete volume FullAutoNoNextPool-12954
and all Jobs saved on that volume from the Catalog
You have messages.
delete yes volume=FullAutoNoNextPool-12955
...

This creates FullAutoNoNextPool-12954 to FullAutoNoNextPool-12958.

[dan@knew:~] $ seq 12954 12958 | xargs -n 1 -I % echo label volume=FullAutoNoNextPool-% pool=FullFileNoNextPool storage=bacula-sd-01-FullAutoNoNextPool drive=2 slot=0 | sudo bconsole
Connecting to Director bacula.int.unixathome.org:9101
1000 OK: 103 bacula-dir Version: 9.6.7 (10 December 2020)
Enter a period to cancel a command.
label volume=FullAutoNoNextPool-12954 pool=FullFileNoNextPool storage=bacula-sd-01-FullAutoNoNextPool drive=2 slot=0
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Connecting to Storage daemon bacula-sd-01-FullAutoNoNextPool at bacula-sd-01.int.unixathome.org:9103 ...
Sending label command for Volume "FullAutoNoNextPool-12954" Slot 0 ...
3000 OK label. VolBytes=290 VolABytes=0 VolType=1 Volume="FullAutoNoNextPool-12954" Device="vDrive-FullAutoNoNextPool-2" (/usr/local/bacula/volumes/FullAutoNoNextPool)
Catalog record for Volume "FullAutoNoNextPool-12954", Slot 0  successfully created.
Requesting to mount VirtualDisk-FullAutoNoNextPool ...
3906 File device ""vDrive-FullAutoNoNextPool-2" (/usr/local/bacula/volumes/FullAutoNoNextPool)" is always mounted.
You have messages.
label volume=FullAutoNoNextPool-12955 pool=FullFileNoNextPool storage=bacula-sd-01-FullAutoNoNextPool drive=2 slot=0
...
Website Pin Facebook Twitter Myspace Friendfeed Technorati del.icio.us Digg Google StumbleUpon Premium Responsive