Am 08.01.2013 18:06, schrieb Tim Dunphy: > Is there any way (maybe by manipulating the database directly) to > re-set the tape numbering scheme so that I can have the tapes labeled > 0001-0025?
I wrote myself a little script for initializing the cassettes before labeling new - see attached lines. (Google or Bing may help translating) > #!/bin/bash > # > # EOF-Marke (end-of-file) auf Kassette setzen - Kassette Initialisieren > # > > echo > echo "ACHTUNG!" > echo "========" > echo "Kassettenschacht \"0\" vorher unter bconsole per Befehl \"release\" fuer das" > echo "System freigeben, bzw. Bacula per Script \"./bacula-stop.sh\" stoppen." > echo > echo "Kassette in Slot <nn> wird geloescht" > read -p "Eingabe Slotnummer und <ENTER> : " SLOT > > echo > echo "Laufwerk per eject freigeben ..." > mt -f /dev/st0 eject; mtx -f /dev/sg1 unload > > echo > echo "Kassette wird aus Slot " $SLOT " geladen ..." > if ! (mtx -f /dev/sg1 load $SLOT); then > echo Fehler > exit > else > echo "EOF-Marke setzen" > mt -f /dev/st0 rewind > mt -f /dev/st0 weof > mt -f /dev/st0 rewind > echo "Laufwerk wieder freigeben ..." > mt -f /dev/st0 eject; mtx -f /dev/sg1 unload > echo "Fertig!" > fi > > echo > echo "Bacula gegebenenfalls per \"./bacula-restart.sh\" wieder starten." -- Ralf Brinkmann ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_122712 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users