diff --git a/README.Fedora b/README.Fedora new file mode 100644 index 0000000..cfce259 --- /dev/null +++ b/README.Fedora @@ -0,0 +1,88 @@ +======== Features + +- Components: bat, bconsole, bacula-tray-monitor, director, storage daemon, + client, docs, Nagios plugin. +- HTML/PDF docs. +- File Daemon bpipe-fd plugin. +- POSIX.1e capabilities for File Daemon. +- Systemd for Fedora 15+. +- LZO compression. +- Static uid/gid of 133 (see "setup" package). +- No usermode / fedora-usermgmt stuff in the packages. + +======== PostgreSQL, MySQL and SQLite databases + +Bacula director supports different databases backends, if you want to switch +away from the default PostgreSQL one you need to change the "libbaccats" (the +catalogue library) symlink to the real library. The following examples uses +version 5.2.3, substitute them with you running version. + +Show the current database backend: + +# update-alternatives --display libbaccats-5.2.3.so +libbaccats-5.2.3.so - status is auto. + link currently points to /usr/lib64/libbaccats-postgresql-5.2.3.so +/usr/lib64/libbaccats-mysql-5.2.3.so - priority 50 +/usr/lib64/libbaccats-sqlite3-5.2.3.so - priority 40 +/usr/lib64/libbaccats-postgresql-5.2.3.so - priority 60 +Current `best' version is /usr/lib64/libbaccats-postgresql-5.2.3.so. + +To change to a different backend (i.e. MySQL), issue the following command: + +# update-alternatives --set libbaccats-5.2.3.so /usr/lib64/libbaccats-mysql-5.2.3.so + +======== Quick installation guide with the default PostgreSQL backend + +Perform the following commands as root to install Bacula with its default +configuration and all daemons and consoles in one server. Tune your commands +accordingly. + +1) Install packages + +# yum -y install postgresql-server bacula-director bacula-storage \ + bacula-client bacula-console bacula-console-bat + +2) Create database + +# postgresql-setup initdb +# systemctl enable postgresql.service +# systemctl start postgresql.service +# su - postgres +# cd /usr/libexec/bacula +# ./create_bacula_database +# ./make_bacula_tables +# ./grant_bacula_privileges + +3) Change passwords in /etc/bacula/*conf with something you like + +# sed -i -e 's/@@DIR_PASSWORD@@/dir-Fedora/g' \ + -e 's/@@FD_PASSWORD@@/fd-Fedora/g' \ + -e 's/@@SD_PASSWORD@@/sd-Fedora/g' \ + -e 's/@@MON_DIR_PASSWORD@@/mon-dir-Fedora/g' \ + -e 's/@@MON_FD_PASSWORD@@/mon-fd-Fedora/g' \ + -e 's/@@MON_SD_PASSWORD@@/mon-sd-Fedora/g' \ + /etc/bacula/*conf + +4) Enable daemons and check they are working + +# systemctl enable bacula-dir.service +# systemctl enable bacula-sd.service +# systemctl enable bacula-fd.service + +# systemctl start bacula-dir.service +# echo status bacula-dir | bconsole + +# systemctl start bacula-sd.service +# echo status bacula-sd | bconsole + +# systemctl start bacula-fd.service +# echo status bacula-fd | bconsole + +5) Install the docs and read them!! + +# yum -y install bacula-docs + +======== Bugs + +Please file bugs against the appropriate component using the Fedora version. + diff --git a/bacula.spec b/bacula.spec index 4184b88..0a04ad7 100644 --- a/bacula.spec +++ b/bacula.spec @@ -13,6 +13,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: http://www.bacula.org/downloads/Bacula-%{version}/%{name}-%{version}.tar.gz Source1: http://www.bacula.org/downloads/Bacula-%{version}/%{name}-docs-%{version}.tar.bz2 +Source5: README.Fedora Source6: bacula.logrotate Source7: bacula-fd.init Source8: bacula-dir.init @@ -354,7 +355,7 @@ for manual in problems console utility developers main misc; do cp -f bacula-docs-%{version}/manuals/en/$manual/$manual/*.{css,html,png} $manual cp -f bacula-docs-%{version}/manuals/en/$manual/$manual.pdf . done - +cp %{SOURCE5} . %install rm -rf %{buildroot} @@ -651,6 +652,7 @@ fi %files common %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING LICENSE README SUPPORT VERIFYING ReleaseNotes +%doc README.Fedora %config(noreplace) %{_sysconfdir}/logrotate.d/bacula %dir %{_sysconfdir}/%{name} %dir %{_libexecdir}/%{name} @@ -796,6 +798,7 @@ fi to bacula-libs. - Move bscan to bacula-storage now that is dependent only on bacula-libs. +- Added README.Fedora. * Tue Dec 20 2011 Simone Caronni - 5.2.3-4 - Changing uid from 33 per previous discussion, static uid