I have Bacula 1.36.3 running on a FreeBSD 5.4 machine with MySQL 4.14. Scheduled backups run fine and show that bytes are being backed up. However when I try to restore any files from any job, no files are found to put in the directory tree. Here's some example bconsole output:

--- BEGIN ---
#restore

First you select one or more JobIds that contain files
to be restored. You will be presented several methods
of specifying the JobIds. Then you will be allowed to
select which files from those JobIds are to be restored.

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): Unexpected question has been received.
3
Enter JobId(s), comma separated, to restore: Unexpected question has been received.
41
You have selected the following JobId: 41

Building directory tree for JobId 41 ... 1 Job, 0 files inserted into the tree.
No MediaType found for your JobIds.
The defined Storage resources are:
    1: File
    2: HP DLT 30
Select Storage resource (1-2): Unexpected question has been received.
1

You are now entering file selection mode where you add (mark) and
remove (unmark) files to be restored. No files are initially added, unless
you used the "all" keyword on the command line.
Enter "done" to leave this mode.

cwd is: /
$ ls
$ done
No files selected to be restored.
--- END ---

Yet if I use bscan to rebuild the catalog, then files are found. I happened to do this with one volume used for job id 2. Here is more sample bconsole output:

--- BEGIN ---
#restore

First you select one or more JobIds that contain files
to be restored. You will be presented several methods
of specifying the JobIds. Then you will be allowed to
select which files from those JobIds are to be restored.

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): Unexpected question has been received.
3
Enter JobId(s), comma separated, to restore: Unexpected question has been received.
2
You have selected the following JobId: 2

Building directory tree for JobId 2 ... +++++++++++++++++++++++++++++++++++++
1 Job, 320,834 files inserted into the tree.

You are now entering file selection mode where you add (mark) and
remove (unmark) files to be restored. No files are initially added, unless
you used the "all" keyword on the command line.
Enter "done" to leave this mode.

cwd is: /
$
--- END ---

Initially I thought this problem was due to a corrupted database. I tried various MySQL commands to repair tables but still had no files listed. Next I ran dbcheck. I had lots of orphaned records. Finally I decided to just blow the database away and start over from scratch.

But now that I've started over, I am having the same trouble. So I suspect there is something wrong with my configuration. What are the most likely causes of this and where should I start looking? I'd appreciate any pointers as I have been unable to turn anything up with Google.

Thanks,

Drew

--
Visit The Alchemist's Warehouse
Magic Tricks, DVDs, Videos, Books, & More!

http://www.alchemistswarehouse.com



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to