Hello, On 2/22/2007 10:47 PM, David Romerstein wrote: > Well, I believe that I may have just done something terribly stupid. > > As stated before, I'm using bacula (2.0.0, RHEL 4) to archive a very large > amount of data to tape, so that I can remove it from our overloaded filestore. ... > I then run 'purge'. I'm asked to choose to purge files, jobs, or > volume. Reading the line 'purge jobs volume' in the docs, I assume that > the proper choice here is 'jobs', so I choose that... and it appears that > it is now deleting all of the Jobs for the default client: > > You have the following choices: > 1: files > 2: jobs > 3: volume > Choose item to purge (1-3): 2 > Automatically selected Client: srv01-fd > Begin purging jobs from Client "srv01-fd" > > ... and 'mytop' tells me that the current running query is "DELETE from > File where JobID=28". JobID 28 just happens to be the first successful > large (18 million files, 300+GB) backup/archive I made. > > This... is a problem.
Not really fatal, usually. > There's no failsafe. Yep, there's a "This command > can be DANGEROUS!!!" warning, but no way to stop the action once it's > started. Right... I admit that the manual could probably be more explicit about the dangers with the purge command, but I myself understood the different purce commands from the start. And I'm not a native English speaker, so I alays assumed the manual was ok :-) > > The main question here is "are all of my jobs going to disappear from the > db?" Yes. Unless you stop the db, but then it will be quite inconsistent. > - if this is the case, question #2 is "am I going to end up running > bscan to restore my data?" No, or at least not for all volumes. You load your latest catalog backup. If that's stored on tape, the bootstrap file for the catalog backup helps you a lot. Then you only need to bscan the volumes used after the last catalog backup. By the way: When I have volumes containing data I don't need anymore I usually delete the jobs that are superfluous. Bacula will then recycle the volme when it needs a new one, and there really aren't any more jobs with valid data on the volume. The delete command can have... unwanted side-effects, too. Arno -- IT-Service Lehmann [EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users