On Fri, Nov 7, 2008 at 9:10 PM, James Harper <[EMAIL PROTECTED]> wrote: >> On Fri, Nov 7, 2008 at 7:39 AM, James Harper >> <[EMAIL PROTECTED]> wrote: >> > Quick question - I've been looking through the docs and the source > code >> > and can't find the answer - where does bacula store the counter for > the >> > next tape label number? >> > >> >> It does not. It gets that from the database. > > If it stores it in the database, do you know what table? I have looked > through all the tables and can't see what counter would represent 'last > tape labelled' or 'next autolabel number'... > > Basically, I want to reset the counter to a given number. > There is no counter. It finds the maximum mediaid of all the volumes that exist in the database. I believe the only way to reset this counter is to delete all of your media in every pool.
Here is some info on why this is so: http://sourceforge.net/mailarchive/forum.php?thread_name=479E22E3.40805%40neuro-tech.net&forum_name=bacula-devel BTW, I am going on vacation in 6 hours and will not be back till the 15th or 16th. I am not sure if I will have internet access in during this time so I probably will not be able to reply again until I return. John ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users