diff options
author | Mario Preksavec <mario@slackware.hr> | 2018-04-12 20:20:43 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-04-13 04:19:44 +0700 |
commit | 6c0ee4c63f8d08821c97fde19709f8af0d697d33 (patch) | |
tree | c4c8199404c4caa884d514c8d02724c5cff52738 /system/bacula/README.SLACKWARE | |
parent | 06f41b7861620b4979760b5435f1b139256eb87a (diff) |
system/bacula: Cherry-pick and fix the upgrading procedure.
Signed-off-by: Mario Preksavec <mario@slackware.hr>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/bacula/README.SLACKWARE')
-rw-r--r-- | system/bacula/README.SLACKWARE | 72 |
1 files changed, 33 insertions, 39 deletions
diff --git a/system/bacula/README.SLACKWARE b/system/bacula/README.SLACKWARE index d32e7e64646d8..eaf57eba47126 100644 --- a/system/bacula/README.SLACKWARE +++ b/system/bacula/README.SLACKWARE @@ -1,40 +1,34 @@ -This is an important excerpt from ReleaseNotes that came with bacula version -5.2.1 which explains updating database from 5.0.x version to 5.2.x. If you -are upgrading, it would be in your best interest to read and understand the -following: - -New Catalog format in version 5.2.0 and greater ------------------------------------------------ -This release of Bacula uses a new catalog format. We provide a set of -scripts that permit to convert a 5.0.x (version 12) catalog to 5.2.1 (version -14). The Bacula project rpm spec files have been modified to -detect the database change and do the upgrade for you. We strongly -recommend that you save a copy of your existing database before upgrading -using rpms. - -The simplest way to upgrade the database assuming you are building from -source (i.e. manually): -1. Stop any current version of Bacula from running. -2. Save a copy of your existing database. -3. Configure, build, and install the 5.2.1 version of Bacula - Note the new ./configure options in the manuals see the link - at the bottom of this file. -4. cd <your-scripts-installation-directory> -5. ./update_bacula_tables -6. If you have multiple catalogs, edit the update_bacula_tables - script and put the name of another database, and then - execute the script again. Repeat this until all Bacula - catalogs have been updated. -7. Start the new Bacula. If everything worked, it should - not print any error messages. - -If you start from scratch, you don't need to run the update_bacula_tables -script because the create_bacula_tables script automatically creates the new -table format. However, if you are using a version of Bacula older than 5.0.0 -(e.g. 3.0.3) then you need to run the update_bacula_tables script that will -be found in the <bacula>/src/cats directory after you run the ./configure -command. As mentioned above, before running this script, please backup your -catalog database, and when you do running it, be sure shutdown Bacula and be -aware that running the script can take some time depending on your database -size. +Installing from scratch +----------------------- +You may wish to add these lines to /etc/rc.d/rc.local to start the service: + + if [ -x /etc/rc.d/rc.bacula ]; then + /etc/rc.d/rc.bacula start + fi + +You may also add these lines to /etc/rc.d/rc.local_shutdown: + + if [ -x /etc/rc.d/rc.bacula ]; then + /etc/rc.d/rc.bacula stop + fi + +Remember to give executable permission to /etc/rc.d/rc.local_shutdown: + + chmod 0755 /etc/rc.d/rc.local_shutdown + +Upgrading from 5.2.13 to 9.0.6 +------------------------------ + +Before installing the new package, make sure to: + +1. Stop the old version from running +2. Save a copy of the old database for safe keeping + +Only after those two steps have been completed successfully: + +3. Upgrade to the new package +4. Run the update script: /var/bacula/scripts/update_bacula_tables +5. If you have multiple catalogs, edit and run the update script for each one + +If everything went well, starting Bacula should not print any error messages. |