Hello,

You need to run the update_bacula_tables script that is usually in the scripts directory.  Alternatively, it is in the <bacula>/src/cats directory.

Best regards,
Kern


On 15/08/2017 20:47, Jari Fredriksson wrote:

I just upgraded and Bacula got updated.

How  ever, the database did not upgrade automatically. This is a CentOS 7 installation.


[root@backup ~]# cd /usr/share/doc/bacula-director-9.0.3/updatedb

[root@backup updatedb]# ll

total 260

-rw-r--r--. 1 root root   845 Aug  8 08:39 README

-rw-r--r--. 1 root root   963 Aug  8 08:39 update_bacula_tables.in

-rw-r--r--. 1 root root   485 Aug  8 08:39 update_bacula_tables_8_to_9

-rw-r--r--. 1 root root  3948 Aug 15 13:24 update_mysql_tables

-rw-r--r--. 1 root root  3957 Aug  8 08:39 update_mysql_tables.in

-rwxr-xr-x. 1 root root  2172 Aug 15 13:24 update_mysql_tables_10_to_11

-rw-r--r--. 1 root root  2181 Aug  8 08:39 update_mysql_tables_10_to_11.in

-rwxr-xr-x. 1 root root  2422 Aug 15 13:24 update_mysql_tables_11_to_12

-rw-r--r--. 1 root root  2431 Aug  8 08:39 update_mysql_tables_11_to_12.in

-rw-r--r--. 1 root root  1586 Aug  8 08:39 update_mysql_tables_4_to_5

-rw-r--r--. 1 root root  2491 Aug  8 08:39 update_mysql_tables_5_to_6

-rw-r--r--. 1 root root  2314 Aug  8 08:39 update_mysql_tables_6_to_7

-rw-r--r--. 1 root root  1364 Aug  8 08:39 update_mysql_tables_7_to_8

-rw-r--r--. 1 root root  3264 Aug  8 08:39 update_mysql_tables_8_to_9

-rw-r--r--. 1 root root  2569 Aug 15 13:24 update_mysql_tables_9_to_10

-rw-r--r--. 1 root root  2578 Aug  8 08:39 update_mysql_tables_9_to_10.in

-rw-r--r--. 1 root root  3970 Aug 15 13:24 update_postgresql_tables

-rw-r--r--. 1 root root  3984 Aug  8 08:39 update_postgresql_tables.in

-rwxr-xr-x. 1 root root  1347 Aug 15 13:24 update_postgresql_tables_10_to_11

-rw-r--r--. 1 root root  1361 Aug  8 08:39 update_postgresql_tables_10_to_11.in

-rwxr-xr-x. 1 root root  2938 Aug 15 13:24 update_postgresql_tables_11_to_12

-rw-r--r--. 1 root root  2952 Aug  8 08:39 update_postgresql_tables_11_to_12.in

-rw-r--r--. 1 root root  2071 Aug  8 08:39 update_postgresql_tables_7_to_8

-rw-r--r--. 1 root root  4252 Aug  8 08:39 update_postgresql_tables_8_to_9

-rw-r--r--. 1 root root  2492 Aug 15 13:24 update_postgresql_tables_9_to_10

-rw-r--r--. 1 root root  2506 Aug  8 08:39 update_postgresql_tables_9_to_10.in

-rw-r--r--. 1 root root  5659 Aug 15 13:24 update_sqlite3_tables

-rw-r--r--. 1 root root  5665 Aug  8 08:39 update_sqlite3_tables.in

-rwxr-xr-x. 1 root root  8408 Aug 15 13:24 update_sqlite3_tables_10_to_11

-rw-r--r--. 1 root root  8414 Aug  8 08:39 update_sqlite3_tables_10_to_11.in

-rwxr-xr-x. 1 root root  2206 Aug 15 13:24 update_sqlite3_tables_11_to_12

-rw-r--r--. 1 root root  2212 Aug  8 08:39 update_sqlite3_tables_11_to_12.in

-rw-r--r--. 1 root root 11201 Aug  8 08:39 update_sqlite3_tables_8_to_9

-rw-r--r--. 1 root root  8404 Aug 15 13:24 update_sqlite3_tables_9_to_10

-rw-r--r--. 1 root root  8410 Aug  8 08:39 update_sqlite3_tables_9_to_10.in

-rw-r--r--. 1 root root  8389 Aug  8 08:39 update_sqlite_tables_10_to_11.in

-rw-r--r--. 1 root root  4525 Aug  8 08:39 update_sqlite_tables_4_to_5

-rw-r--r--. 1 root root  5332 Aug  8 08:39 update_sqlite_tables_5_to_6

-rw-r--r--. 1 root root  6666 Aug  8 08:39 update_sqlite_tables_6_to_7

-rw-r--r--. 1 root root  4571 Aug  8 08:39 update_sqlite_tables_7_to_8

-rw-r--r--. 1 root root 11200 Aug  8 08:39 update_sqlite_tables_8_to_9

-rw-r--r--. 1 root root  8442 Aug  8 08:39 update_sqlite_tables_9_to_10.in

[root@backup updatedb]# bacula-dir -f -t

bacula-dir: dird.c:1152-0 Could not open Catalog "MyCatalog", database "bacula".

bacula-dir: dird.c:1157-0 Version error for database "bacula". Wanted 16, got 15

15-Aug 21:40 bacula-dir ERROR TERMINATION

Please correct configuration file: bacula-dir.conf

[root@backup updatedb]# bacula-dir --version

bacula-dir: invalid option -- '-'

Copyright (C) 2000-2017 Kern Sibbald.

 

Version: 9.0.3 (08 August 2017)



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


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




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to