Bacula-users

Re: [Bacula-users] delete volume by id error

2010-06-09 17:59:01
Subject: Re: [Bacula-users] delete volume by id error
From: Phil Stracchino <alaric AT metrocast DOT net>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 09 Jun 2010 17:56:30 -0400
On 06/09/10 17:07, Jeremiah D. Jester wrote:
> Every time I try to delete a volume by id I get an error. Is this
> normal? Deleting by VolumeName works fine.

> 
> Enter *MediaId or Volume name: 5
> 
> sql_get.c:1062 Media record for Volume "5" not found.

Since about Bacula 3.x, since volumes can have numeric "names", when
deleting volumes by media ID one must precede the ID with an asterisk,
as the prompt above tries to remind you.  "5" will be interpreted as a
volume name; to specify a media ID, you need "*5".


-- 
  Phil Stracchino, CDK#2     DoD#299792458     ICBM: 43.5607, -71.355
  alaric AT caerllewys DOT net   alaric AT metrocast DOT net   phil AT 
co.ordinate DOT org
         Renaissance Man, Unix ronin, Perl hacker, Free Stater
                 It's not the years, it's the mileage.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>