>>>>> On Wed, 7 Apr 2010 15:23:03 -0600, May, John said: > > What about archives I've already made using the 'bad' client with > 'autoprune=yes' option? I tried to bscan the tape back into the database, > but I still can't restore individual files. I get the error message about > the files being pruned.
There is no simple long-term solution. You can turn off AutoPrune temporarily and reload the config before doing the bscan if you need to do a restore. You could then modify the clientid for those jobs in the Jobs table to refer to the new archiving client. __Martin > > > John > > -----Original Message----- > From: Martin Simmons [mailto:mar...@lispworks.com] > Sent: Wednesday, April 07, 2010 1:56 PM > To: bacula-users@lists.sourceforge.net > Subject: Re: [Bacula-users] Retention Policy Pruning Files? > >>>>> On Wed, 7 Apr 2010 09:43:12 -0600, May, John said: > > > > Whenever I archive files, I always put them in an 'Archive' pool I created > > After only about a week or two, I am no longer able to restore because I > > get the following message: > > > > You have selected the following JobId: 686 > > > > Building directory tree for JobId(s) 686 ... > > > > For one or more of the JobIds selected, no files were found, > > so file selection is not possible. > > Most likely your retention policy pruned the files. > > > > Do you want to restore all the files? (yes|no): > > > > Can sombody take a look at my bacula-dir.conf file and see why this is > > happening? > > > > All Archive jobs have different filesets, but go into the pool 'Archive'. > > I've set a retention period of 30 years, job retention of 30 years, Recycle > > = no, Auto Prune = no and Volume retention of 30 years, but the files > > seem to be still getting pruned. > > I think the problem is that the client definition contains: > > > File Retention = 30 days # 30 days > > AutoPrune = yes # Prune expired Jobs/Files > > This causes it to prune the file records of *all* jobs for that client > whenever it prunes *any* job for that client. > > Assuming you need that file retention for other jobs on the client, you can > work around the problem by adding a separate client definition for use by the > archive jobs, with the same Address pararmeter as the normal one. > > __Martin > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users