Re: [Bacula-users] List files associated with destroyed tape

2014-08-08 Thread Martin Simmons
Yes, a query like below should return all of the fileid's for the files stored on volume 'z'. YMMV on mysql. These are the fileid's to delete from the file table. After that, you'll need to delete the rows from the jobmedia table associated with the volume. SELECT f.fileid FROM file f LEFT

Re: [Bacula-users] List files associated with destroyed tape

2014-08-08 Thread John Wallach
Ah, That makes a lot of sense from a preservation of the jobs that's the best behavior, however we've shoehorned bacula into an archiving system so I don't want to lose access to the other data backed up on the media associated with the job. I found this query that you commented on: http://adsm.o

Re: [Bacula-users] List files associated with destroyed tape

2014-08-08 Thread Martin Simmons
Yes, that's what I expected -- purging a volume deletes its jobs from the database. Leaving part of a job in the database would be dangerous because a restore would be incomplete. __Martin > On Thu, 07 Aug 2014 15:14:42 -0400, John Wallach said: > > Hi Martin, > > I tried this after backi

Re: [Bacula-users] List files associated with destroyed tape

2014-08-07 Thread John Wallach
Hi Martin, I tried this after backing up the catalog. It worked in the sense that it purged the files from the destroyed media but it also purged all the rest of the files in the job... >8. Re: List files associated with destroyed tape (Martin Simmons) -- John Wallach Systems Administrator

Re: [Bacula-users] List files associated with destroyed tape

2014-08-06 Thread Martin Simmons
> On Wed, 06 Aug 2014 12:37:57 -0400, John Wallach said: > > On 8/6/14 12:33 PM, Dan Langille wrote: > > > > Does this help? > > > > http://dan.langille.org/2009/08/28/what-jobs-are-on-these-tapes/ > > > > Thanks for the suggestion but I already know the media that is lost, I > guess I cou

Re: [Bacula-users] List files associated with destroyed tape

2014-08-06 Thread John Wallach
> It’s hard to extrapolate sometimes. See other email. > > The above [unasked] question is not what you originally asked, but > I understand the concern. > > I’m not sure of the answer though. It would be a great trial&error > task. > > If you can, try it on non-critial data instead. I’m in

Re: [Bacula-users] List files associated with destroyed tape

2014-08-06 Thread Dan Langille
On Aug 6, 2014, at 12:37 PM, John Wallach wrote: > On 8/6/14 12:33 PM, Dan Langille wrote: >> >> Does this help? >> >> http://dan.langille.org/2009/08/28/what-jobs-are-on-these-tapes/ >> > > Thanks for the suggestion but I already know the media that is lost, I > guess I could purge the volu

Re: [Bacula-users] List files associated with destroyed tape

2014-08-06 Thread Dan Langille
On Aug 6, 2014, at 12:11 PM, John Wallach wrote: > Greetings, > > Our ancient autoloader decided to render a particular tape inoperable. > Before my time jobs were run that spanned multiple volumes, the > destroyed tape was in one such job. > > I cannot figure out how to find the files associa

Re: [Bacula-users] List files associated with destroyed tape

2014-08-06 Thread John Wallach
On 8/6/14 12:33 PM, Dan Langille wrote: > > Does this help? > > http://dan.langille.org/2009/08/28/what-jobs-are-on-these-tapes/ > Thanks for the suggestion but I already know the media that is lost, I guess I could purge the volume but I wonder what what that would do to the job (since it has

Re: [Bacula-users] List files associated with destroyed tape

2014-08-06 Thread Dan Langille
On Aug 6, 2014, at 12:11 PM, John Wallach wrote: > Greetings, > > Our ancient autoloader decided to render a particular tape inoperable. > Before my time jobs were run that spanned multiple volumes, the > destroyed tape was in one such job. > > I cannot figure out how to find the files associa

[Bacula-users] List files associated with destroyed tape

2014-08-06 Thread John Wallach
Greetings, Our ancient autoloader decided to render a particular tape inoperable. Before my time jobs were run that spanned multiple volumes, the destroyed tape was in one such job. I cannot figure out how to find the files associated with the specific media. Here's a query that I thought would w