Russell Howe ([EMAIL PROTECTED]) wrote:
> Marcin Wasilewski wrote:
> > I am running Bacula on 1.36.2 Debian with MySQL and it is working fine.
[snip]
> > What should I do to restore those files I need and do not damage anything.
> 
> I think bscan is the tool you're looking for.

In the Debian packages that's /usr/lib/bacula/bscan.mysql
(its not in the path)

I ended up writing a script which I placed in the path called "bscan" that
looks something like this:

--- bscan.sh ---
#!/bin/sh

BSCAN=/usr/lib/bacula/bscan.mysql

echo "\n*** bscan wrapper\n\nDevice: HP_C5713A\n"
$BSCAN -c /usr/bacula/bacula-sd.conf -P password -h dbhost "$@"
--- end snip ---

which gets called like so:

$ bscan -s -V Daily0001 HP_C5713A

Where Daily0001 is the currently mounted tape you wish to bscan and HP_C5713A
is the name of the device in bacula-sd.conf (I have that echo in there so I can
cut & paste it ;)

FWIW I did this with my own restore problem of a few weeks back, and it
resurrected files from a completely different host, I was unable to use bscan
to retrieve the files I needed.

-- 
Matt

Attachment: pgpnsGp6a9PDJ.pgp
Description: PGP signature

Reply via email to