>>>>> On Wed, 8 Feb 2006 09:16:06 +0100, Javier Payno <[EMAIL PROTECTED]> said: > > Hi Arno > > Fist of all, apologize for my English :-S > > El Martes, 7 de Febrero de 2006 20:04, Arno Lehmann escribió: > > I can't say I actually understand every detail of your question, but you > > should try the 'delete media' command from the console. It shouldn't > > damage the catalog at all, and it removes all records related to the > > given volume from the catalog. > > Well, that I want to know is which rows delete on database tables the command > delete volume to implement it on a Perl script and automate some acctions
If you are going to program it in perl, then I suggest you look at the Bacula source code to see exactly what it does. Start with the function db_delete_media_record() in src/cats/sql_delete.c (called by delete_volume() in src/dirs/ua_cmds.c). __Martin ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users