![]() If Bacula crashes with the following type of error when it is started: For that reason, we do not recommend it for production use. However, several users have reported corrupted databases while using SQLite. SQLite has performed reasonably well for us in all our testing. We have much less "production" experience using SQLite than using MySQL. If you have followed the above steps, this will all happen automatically and the SQLite libraries will be linked into Bacula. configure program to create a database named bacula.db in Bacula's working directory. This script will be automatically setup by the. This script creates the SQLite database as well as the tables used by Bacula. This directory contains the Bacula catalog interface routines. It doesn't matter what database you have chosen create_bacula_database will always create your database.Īt this point, you can create the SQLite database and tables: The *_bacula_* files are provided for convenience. If you inspect create_bacula_database, you will see that it calls create_sqlite_database. These files are also available in the bacula-src/src/cats directory after running. ![]() These files will be of the form *_bacula_* (e.g. configure command to configure Bacula.īacula will install scripts for manipulating the database (create, delete, make tables etc) into the main installation directory. This phase is done after you have run the. Installing and Configuring SQLite - Phase II If you want more security, you can change the PRAGMA that is used in the file src/version.h.Īt this point, you should return to completing the installation of Bacula. You should not use the When building SQLite3 you MUST configure it with -enable-threadsafe and -enable-cross-thread-connections.īy default, SQLite3 is now run with PRAGMA synchronous=OFF this increases the speed by more than 30 time2, but it also increases the possibility of a corrupted database if your server crashes (power failure or kernel bug). configure used to build Bacula will need to include -with-sqlite3. If you do not have GNU tar, a command such as: Note, the above command requires GNU tar. Download the Bacula dependency packages.Installing and Configuring is quite easy. Please note that the version will be updated as new versions are available and tested. Our standard location (for the moment) for SQLite is in the dependency package depkgs/sqlite-2.8.16. configure -with-sqlite statement for configuring Bacula, you will need SQLite version 2.8.16 or later installed. Installing and Configuring SQLite - Phase I If you use SQLite, and your Storage daemon is not on the same machine as your Director, you will need to transfer your database to the Storage daemon's machine before you can use any of the SD tools such as bscan.SQLite cannot be used in the bweb web GUI package.Please note that SQLite3 is not network enabled, which means that it must be linked into the Director rather than accessed by the network as MySQL and PostgreSQL are. We recommend that you use either MySQL or PostgreSQL. Note: SQLite3 implementation remains in the source code, but SQLite3 is no longer supported by the Bacula project. Installing and Configuring SQLite - Phase II.Installing and Configuring SQLite - Phase I.Next: Catalog Maintenance Up: Main Reference Previous: Installing and Configuring PostgreSQL Contents Index
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |