Hello,

On 1/15/2006 3:43 AM, Jo Rhett wrote:
My home bacula server died hard the other day.  No problem, everything is
backed up.  So I rebuilt the server with new hard disks, built a minimal
bacula config (I can restore the old one from tape, right?) and bscanned the volumes back into the catalog. That seemed to go well. (jobid#,
193,924 files, etc)

However, when I am trying now to restore the data it can't find it.
Checking the jobs in the catalog appears to show only the catalog backups.

Interesting... are you sure you scanned all volumes into the catalog?

This is fast becoming frustrating.  How do I get the full catalog restored
so that I can restore the data?

What I usually do or recommend:

bextract the volume(s) with the latest catalog dump. That one is easiest found if you look into the associated bootstrap file (which can easily be saved to another machine, emailed to some mailaccount in another location, or automatically printed out after the job is done).

Then, recreate your catalog using the proper database tool like 'mysql <bacula_catalog.sql.dump' or 'psql <bacula...' IIRC.

After that, you should find the catalog populated with everything that was in there before the computer crashed. (In case of a breakdown during operation, you might have to bscan the volumes written after the last usable catalog dump, of course.)

Or better yet, just let me restore ALL of it into one of the hard disk
subdirectories?

bextract...

Amanda at the least was in native dump format so I could manually restore
it...

Yes, that's fine as long as all your backups fit onto one volume... assuming a logical volume with todays large disks it's very hard to find a tape drive for amanda and several hundred Gig of data...

maiasaura# bconsole -c /usr/local/etc/bconsole.conf
Connecting to Director maiasaura:9101
1000 OK: maiasaura-dir Version: 1.36.3 (22 April 2005)
Enter a period to cancel a command.
*restore
Using default Catalog name=MyCatalog DB=bacula
To select the JobIds, you have the following choices:
     1: List last 20 Jobs run
     2: List Jobs where a given File is saved
     3: Enter list of comma separated JobIds to select
     4: Enter SQL list command
     5: Select the most recent backup for a client
     6: Select backup for a client before a specified time
     7: Enter a list of files to restore
     8: Enter a list of files to restore before a specified time
     9: Cancel
Select item:  (1-9): 1
+-------+--------------+---------------------+----------+----------+----------+
| JobId | Client       | StartTime           | JobLevel | JobFiles | JobBytes |
+-------+--------------+---------------------+----------+----------+----------+
| 40    | maiasaura-fd | 2006-01-07 18:35:45 | F        | 1        | 9826143  |
| 39    | maiasaura-fd | 2006-01-07 18:34:06 | F        | 1        | 9825885  |
| 38    | maiasaura-fd | 2006-01-07 18:32:37 | F        | 1        | 9825628  |
| 37    | maiasaura-fd | 2006-01-07 18:31:18 | F        | 1        | 9825371  |
| 36    | maiasaura-fd | 2006-01-07 18:30:10 | F        | 1        | 9825114  |
| 35    | maiasaura-fd | 2006-01-07 18:29:10 | F        | 1        | 9824856  |
| 34    | maiasaura-fd | 2006-01-07 18:28:12 | F        | 1        | 9824921  |
| 25    | maiasaura-fd | 2005-12-24 03:11:07 | F        | 1        | 9826090  |
| 18    | maiasaura-fd | 2005-11-26 03:11:24 | F        | 1        | 9819238  |
| 17    | maiasaura-fd | 2005-11-25 03:11:03 | F        | 1        | 9818829  |
| 16    | maiasaura-fd | 2005-11-24 03:10:49 | F        | 1        | 9818420  |
| 15    | maiasaura-fd | 2005-11-23 13:17:46 | F        | 1        | 9818010  |
| 14    | maiasaura-fd | 2005-11-23 13:16:53 | F        | 1        | 9817901  |
| 12    | maiasaura-fd | 2005-11-19 03:11:56 | F        | 1        | 9816702  |
| 11    | maiasaura-fd | 2005-11-18 03:11:58 | F        | 1        | 9816438  |
| 10    | maiasaura-fd | 2005-11-17 03:12:03 | F        | 1        | 9816174  |
| 9     | maiasaura-fd | 2005-11-16 03:10:55 | F        | 1        | 9816055  |
| 8     | maiasaura-fd | 2005-11-15 03:10:45 | F        | 1        | 9815838  |
| 7     | maiasaura-fd | 2005-11-14 11:09:33 | F        | 1        | 9815433  |
| 5     | maiasaura-fd | 2005-11-12 03:11:12 | F        | 1        | 9814519  |
+-------+--------------+---------------------+----------+----------+----------+


Assuming the above actually are your database dumps, have you tried restoring the latest one, loading it into the database, and see what Bacula then reports as available jobs?

Arno

--
IT-Service Lehmann                    [EMAIL PROTECTED]
Arno Lehmann                  http://www.its-lehmann.de


-------------------------------------------------------
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://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to