If you installed from souce please follow the following steps:. In general none of your existing. Note: you should adjust the email addresses to correspond to the address to which you would like Bacula to send you mail. Also, you must have the correct Qt5 libraries pre-loaded. If not, remove the line "-enable-bat".
The major number is currently 1 and normally does not change very frequently. The minor number starts at 0 and increases each for each production release by 2 i. The patch number is increased each time a bug fix or fixes is released to production.
So, as of this date 05 May , the current production Bacula release is version If there are bug fixes, the next release will be For all patch releases where the minor version number does not change, the database and all the daemons will be compatible. That means that you can safely run a Of course, in this case, the Director may have bugs that are not fixed.
Generally, within a minor release some minor releases are not so minor , all patch numbers are officially released to production. This means that while the current Bacula version is When the minor number is odd, it indicates that the package is under development and thus may not be stable. For example, while the current production release of Bacula is currently All patch versions of the development code are available in the SVN source repository.
However, not all patch versions of the development code odd minor version are officially released. When they are released, they are released as beta versions see below for a definition of what beta means for Bacula releases.
In general when the minor number increases from one production release to the next i. As often as possible, we attempt to make new releases that are downwards compatible with prior clients, but this is not always possible.
You must check the release notes. In general, you will have fewer problems if you always run all the components on the same minor version number i. As discussed above, we have combined a number of third party packages that Bacula might need into the depkgs release. You can, of course, get the latest packages from the original authors or from your operating system supplier. However, be aware that the packages in the depkgs files have been tested by us for compatibility with Bacula.
Typically, a dependency package will be named depkgs-ddMMMyy. Jan , and yy is the year. An actual example is: depkgsDec.
To install and build this package if needed , you do the following:. Create a bacula directory, into which you will place both the Bacula source as well as the dependency package. Detar the depkgs into the bacula directory. Although the exact composition of the dependency packages may change from time to time, the current makeup is the following:. Note, some of these packages are quite large, so that building them can be a bit time consuming. The above instructions will build all the packages contained in the directory.
However, when building Bacula , it will take only those pieces that it actually needs. You should build the packages that you will require in depkgs a prior to configuring and building Bacula , since Bacula will need them during the build process. Note, the depkgs-qt package is required for building bat, because bat is currently built with Qt version 4. It can be built with other Qt versions, but that almost always creates problems or introduces instabilities.
Each one should point to a specific location in the depkgs-qt package that you loaded. This ensures that the bat build will use your Qt 4. Before running your Bacula build, please make sure that qmake-qt4 is not on your path. If it is please rename it.
If you don't do this, Bacula will attempt to build with any Qt5 package installed on your system rather than the one you just built. If you are going to build Qt5 using depkgs-qt , you must source the qt5-paths file included in the package prior to building Bacula.
You might find it worthwhile to build mtx because the tapeinfo program that comes with it can often provide you with valuable information about your SCSI tape drive e. Note, most distros provide mtx as part of their release. The depkgs1 package is depreciated and previously contained readline, which should be available on all operating systems. The depkgs-win32 package is deprecated and no longer used in Bacula version 1.
It was previously used to build the native Win32 client program, but this program is now built on Linux systems using cross-compiling. All the tools and third party libraries are automatically downloaded by executing the appropriate scripts. Install and build any depkgs as noted above. This should be unnecessary on most modern Operating Systems.
Note, if you already have a running MySQL or PostgreSQL on your system, you can skip this phase provided that you have built the thread safe libraries. And you have already installed the additional rpms noted above. This is because. The make distclean is also critical if you move the source directory from one machine to another.
If the make distclean fails, just ignore it and continue on. If you skip this step make and proceed immediately to the make install you are making two serious errors: 1. If all goes well, the. If you install Bacula on more than one system, and they are identical, you can simply transfer the source tree to that other system and do a "make install".
However, if there are differences in the libraries or OS versions, or you wish to install on a different OS, you should start from the original compress tar file. If you do transfer the source tree, and you have previously done a. This is because the GNU autoconf tools cache the configuration, and if you re-use a configuration for a Linux machine on a Solaris, you can be sure your build will fail. To avoid this, as mentioned above, either start from the tar file, or do a "make distclean".
In general, you will probably want to supply a more complicated configure statement to ensure that the modules you want are built and that everything is placed into the correct directories. The advantage of using the above configuration to start is that everything will be put into a single directory, which you can later delete once you have run the examples in the next chapter and learned how Bacula works.
In addition, the above can be installed and run as non-root. For the developer's convenience, I have added a defaultconfig script to the examples directory.
You should find additional useful examples in this directory as well. The -- enable-conio or -- enable-readline options are useful because they provide a command line history, editing capability for the Console program and tab completion on various option.
If you have included either option in the build, either the termcap or the ncurses package will be needed to link. The advantage of using the above configuration to start is that everything will be put into a single directory, which you can later delete once you have run the examples in the next chapter and learned how Bacula works. In addition, the above can be installed and run as non-root.
For the developer's convenience, I have added a defaultconfig script to the examples directory. You should find additional useful examples in this directory as well. The -- enable-conio or -- enable-readline options are useful because they provide a command line history, editing capability for the Console program and tab completion on various option. If you have included either option in the build, either the termcap or the ncurses package will be needed to link. If Bacula's configure process finds the ncurses libraries, it will use those rather than the termcap library.
On some systems, such as SuSE, the termcap library is not in the standard library directory. As a consequence, the option may be disabled or you may get an error message such as:.
The same library requirements apply if you wish to use the readline subroutines for command line editing, history and tab completion or if you are using a MySQL library that requires encryption. If you need encryption, you can either export the appropriate additional library options as shown above or, alternatively, you can include them directly on the.
On some systems such as Mandriva, readline tends to gobble up prompts, which makes it totally useless. If this happens to you, use the disable option, or if you are using version 1.
You will still need either the termcap or the ncurses library, but it is unlikely that the conio package will gobble up prompts. The code within Bacula remains, so it should be usable, and if users submit patches for it, we will be happy to apply them.
However, due to the fact that each version of readline seems to be incompatible with previous versions, and that there are significant differences between systems, we can no longer afford to support it. MySQL is a high quality database that is very efficient and is suitable for small and medium sized installation up to 2,, files per job. It requires a certain knowledge to install and maintain. PostgreSQL is suitable for any sized installation some sites have much more than 1 billion objects in the Catalog.
Bacula uses many optimized PostgreSQL functions, and can run more than 10 time faster on jobs having millions of files than MySQL Specially in during restore, accurate mode, bvfs queries and when the database server is not on the same host than the Director.
There are a number of options and important considerations given below that you can skip for the moment if you have not had any problems building Bacula with a simplified configuration as shown above.
If the. Alternatively, if the package is installed in a non-standard location as far as Bacula is concerned , then there is generally an option listed below or listed with ". In other cases, there are options that will permit you to disable to feature e. If you want to dive right into it, we recommend you skip to the next chapter, and run the example program. It will teach you a lot about Bacula and as an example can be installed into a single directory for easy removal and run as non-root.
If you have any problems or when you want to do a real installation, come back to this chapter and read the details presented below. The following command line options are available for configure to customize your installation.
However, we find this a somewhat vague concept, and so we have not implemented this option other than to use any explicit prefix that you may define. If you do not explicitly specify a prefix, Bacula's configure routine will not use the default value that. As a consequence, we suggest that you avoid it. We have provided options that allow you to explicitly specify the directories for each of the major categories of installation files. If you wish the man page to be installed in a different location, use this option to specify the path.
If it is not available on your system, you can download the depkgs-qt package from the Bacula Source Forge download area and build it. In particular to use the Qt4 built by depkgs-qt you must source the file qt4-paths. To verify that your PostgreSQL is thread safe, you can try this change the path to point to your particular installed libpq. The above example shows a libpq that contains the required function PQputCopyData and is thread enabled i.
If you do not see the mutex entries, then thread support has not been enabled. Running with Batch Insert turned on is recommended because it can significantly improve attribute insertion times. However, it does put a significantly larger part of the work on your SQL engine, so you may need to pay more attention to tuning it. For MySQL, the location is set in my.
You may also want to increase the memory available to your SQL engine to further improve performance during Batch Inserts. When linking a static binary, the linker needs the static versions of all the libraries that are used, so frequently users will experience linking errors when this option is used. The first thing to do is to make sure you have the static glibc library installed on your system.
The second thing to do is the make sure you do not specify -openssl or -with-python on your. You may be able to enable those options, but you will need to load additional static libraries. Note, for Bacula to be configured properly, you must specify one of the two database options supported. That is: -with-postgresql, otherwise the. If you get errors linking, you need to load the development libraries, or you need to disable SSL by setting without-openssl. On SuSE, the libwrappers libraries needed to link Bacula are contained in the tcpd-devel package.
This option is designed primarily for use in regression testing. Most users can safely ignore this option. Note, many other options are presented when you do a. If you want to install Bacula in an installation directory rather than run it out of the build directory as developers will do most of the time , you should also include the -- sbindir and -- sysconfdir options with appropriate paths. Neither are necessary if you do not use "make install" as is the case for most development work.
The install process will create the sbindir and sysconfdir if they do not exist, but it will not automatically create the pid-dir, subsys-dir, or working-dir, so you must ensure that they exist before running Bacula for the first time.
To build Bacula from source, you will need the following installed on your system they are not by default : libiconv, gcc 3. Probably the simplest way to do so is to run:.
It is also possible to use the crle program to set the library search path. However, this should be used with caution. Next time around, we'll install the Bacula client on a remote machine and back up over the network to the server.
You don't want to miss our tips, tutorials, and commentary on the Linux OS and open source applications. Delivered Tuesdays. He's covered a variety of topics for over twenty years and is an avid promoter of open source. For more news about Jack Wallen, visit his website jackwallen More about Networking 5 programming languages network architects should learn free PDF Behind the scenes: A day in the life of a database administrator 20 steps to decommission a redundant data center facility 17 Terminal commands every user should know.
Delivered Tuesdays Sign up today. Editor's Picks. The best programming languages to learn in Check for Log4j vulnerabilities with this simple-to-use script. TasksBoard is the kanban interface for Google Tasks you've been waiting for. Paging Zefram Cochrane: Humans have figured out how to make a warp bubble.
Comment and share: How to install the Bacula backup server on Ubuntu Show Comments. Hide Comments.
0コメント