Re: [Bacula-users] Problem with Bscan, cant find catalog to put a tapelistng into the database

2019-10-09 Thread H.J. Leever via Bacula-users
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 
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. 

 

 

 

 


 

 

Libre de virus.  

 www.avast.com 

 

On Mon, Oct 7, 2019 at 9:57 AM H.J. Leever via Bacula-users 
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 ] 

   -b bootstrap  specify a bootstrap file

   -c  specify configuration file

   -dset debug level to 

   -dt   print timestamp in debug output

   -mupdate media info in database

   -D   specify the driver database name (default NULL)

   -n  specify the database name (default bacula)

   -u  specify database user name (default bacula)

   -P  specify database password (default none)

   -h  specify database host (default NULL)

   -t  specify database port (default 0)

   -pproceed inspite of I/O errors

   -rlist records

   -ssynchronize or store in database

   -Sshow scan progress periodically

   -vverbose

   -V   specify Volume names (separated by |)

   -w   specify working directory (default from conf file)

   -?print this message 

 

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




 

-- 

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

 


 

 

Libre de virus.  

 www.avast.com 

 

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


Re: [Bacula-users] Problem with Bscan, cant find catalog to put a tapelistng into the database

2019-10-07 Thread Jose Alberto
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.





Libre
de virus. www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Mon, Oct 7, 2019 at 9:57 AM H.J. Leever via Bacula-users <
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 ] 
>
>-b bootstrap  specify a bootstrap file
>
>-c  specify configuration file
>
>-dset debug level to 
>
>-dt   print timestamp in debug output
>
>-mupdate media info in database
>
>-D   specify the driver database name (default NULL)
>
>-n  specify the database name (default bacula)
>
>-u  specify database user name (default bacula)
>
>-P  specify database password (default none)
>
>-h  specify database host (default NULL)
>
>-t  specify database port (default 0)
>
>-pproceed inspite of I/O errors
>
>-rlist records
>
>-ssynchronize or store in database
>
>-Sshow scan progress periodically
>
>-vverbose
>
>-V   specify Volume names (separated by |)
>
>-w   specify working directory (default from conf file)
>
>-?print this message
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


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


Libre
de virus. www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem with Bscan, cant find catalog to put a tapelistng into the database

2019-10-07 Thread Pedro Oliveira

Hi Leever

Change your Postgresql pg_hba.conf to the following,

# Allow any user on the local system to connect to any database with
# any database user name using Unix-domain sockets (the default for local
# connections).
#
# TYPE  DATABASEUSERADDRESS METHOD
local   all all trust

# The same using local loopback TCP/IP connections.
#
# TYPE  DATABASEUSERADDRESS METHOD
hostall all 127.0.0.1/32trust

# The same as the previous line, but using a separate netmask column
#
# TYPE  DATABASEUSERIP-ADDRESS  IP-MASK 
METHOD
hostall all 127.0.0.1   255.255.255.255 
trust

# The same over IPv6.
#
# TYPE  DATABASEUSERADDRESS METHOD
hostall all ::1/128 trust

# The same using a host name (would typically cover both IPv4 and IPv6).
#
# TYPE  DATABASEUSERADDRESS METHOD
hostall all localhost   trust

Execute Postgresql Reload to assume the new connection parameters, and 
then execute BSCAN, it will be easier to "bscann" the volumes whiteout 
asking for Postgresql Password.


Please, don't forget after terminating the Bscan to revert the Psql 
Pg_hba.conf to the original state.


Best

Pedro



On 07/10/19 15:33, H.J. Leever via Bacula-users 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 ] 

   -b bootstrap specify a bootstrap file

   -c  specify configuration file

   -d    set debug level to 

   -dt print timestamp in debug output

   -m update media info in database

   -D   specify the driver database name (default NULL)

   -n  specify the database name (default bacula)

   -u  specify database user name (default bacula)

   -P  specify database password (default none)

   -h  specify database host (default NULL)

   -t  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   specify Volume names (separated by |)

   -w   specify working directory (default from conf 
file)


   -? print this message



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