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 https://lists.sourceforge.net/lists/listinfo/bacula-users