Thanks this brought me further i now have an entry in my database! I used a 
small –p in stead of the upper –P

I also  have the option of the database inserted and the BSR Now it is reading 
my tape!

 

bscan -s -m -b "/var/lib/bacula/name_of.bsr" -c bacula-sd.conf -n bacula -u 
bacula -P"EncryptedPW" -v -V GKM187 /dev/nst0

 

Thanks a lot!

Greetings Harry

 

Van: Jose Alberto [mailto:j.se...@gmail.com] 
Verzonden: maandag 7 oktober 2019 17:15
Aan: H.J. Leever <hlee...@casema.nl>
CC: bacula-users@lists.sourceforge.net
Onderwerp: Re: [Bacula-users] Problem with Bscan, cant find catalog to put a 
tapelistng into the database

 

Hi. 

 

I run a few days ago  because  for error delete Job on volumen. 

 

bscan -V BA01563 -v -s -m -u bacula -P MY_PASSWORD -h 127.0.0.1 -c 
/opt/bacula/etc/bacula-sd.conf /dev/nst0

 

Bacula 9.4.4 

Postgres. 

Debian 9. 

 

all fine. 

 

 

 

 


 
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
 

Libre de virus.  
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
 www.avast.com 

 

On Mon, Oct 7, 2019 at 9:57 AM H.J. Leever via Bacula-users 
<bacula-users@lists.sourceforge.net <mailto:bacula-users@lists.sourceforge.net> 
> wrote:

Hello,i am having a LTO5 with several tapes, I lost the database and could not 
restore the backed up catalog!

 

Now I am having several tapes with data but Bacula’s catalog don’t know them!

I know whats on which tape with “sudo bls -V GKM169 /dev/nst0” this works.

 

Bacula-bat works ok I have several backups in my database which I can see in 
Bacula console.

 

But when I use bscan to load the tape contence into the catalog bscan says my 
Catalog is “NULL”

 

Can someone lease help me, is have searched all the documentation but can not 
find how i can read the listing into de catalog ! 

 

hleever2@hleever2:~$ sudo bscan -s -m -n bacula -c bacula-sd.conf -v -V GKM167 
/dev/nst0

bscan: butil.c:292-0 Using device: "/dev/nst0" for reading.

07-okt 14:27 bscan JobId 0: Ready to read from volume "GKM167" on Tape device 
"LTO-5" (/dev/nst0).

bscan: bscan.c:312-0 Could not open Catalog "NULL", database "bacula".

07-okt 14:28 bscan JobId 0: Fatal error: mysql.c:271 Unable to connect to MySQL 
server.

Database=bacula User=bacula

MySQL connect failed either server not running or your authorization is 
incorrect.

bscan: bscan.c:315-0 mysql.c:271 Unable to connect to MySQL server.

Database=bacula User=bacula

MySQL connect failed either server not running or your authorization is 
incorrect.

07-okt 14:28 bscan ERROR TERMINATION

Could not open Catalog "NULL", database "bacula".

hleever2@hleever2:~$ sudo bscan -s -m -n bacula -C MyCatalog -c bacula-sd.conf 
-v -V GKM167 /dev/nst0

bscan: ongeldige optie -- 'C'

Copyright (C) 2001-2017 Kern Sibbald.

 

Version: 9.0.6 (20 November 2017)

 

Usage: bscan [ options ] <bacula-archive>

       -b bootstrap      specify a bootstrap file

       -c <file>         specify configuration file

       -d <nn>           set debug level to <nn>

       -dt               print timestamp in debug output

       -m                update media info in database

       -D <driver name>  specify the driver database name (default NULL)

       -n <name>         specify the database name (default bacula)

       -u <user>         specify database user name (default bacula)

       -P <password>     specify database password (default none)

       -h <host>         specify database host (default NULL)

       -t <port>         specify database port (default 0)

       -p                proceed inspite of I/O errors

       -r                list records

       -s                synchronize or store in database

       -S                show scan progress periodically

       -v                verbose

       -V <Volumes>      specify Volume names (separated by |)

       -w <dir>          specify working directory (default from conf file)

       -?                print this message 

 

_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net <mailto:Bacula-users@lists.sourceforge.net> 
https://lists.sourceforge.net/lists/listinfo/bacula-users




 

-- 

#############################
#   Sistema Operativo: Debian      #
#        Caracas, Venezuela          #
#############################

 


 
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
 

Libre de virus.  
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
 www.avast.com 

 

_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to