docs:tips_n_tricks:installing_bacula.html
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
docs:tips_n_tricks:installing_bacula.html [18.03.2010 16:48 CET] – peter | docs:tips_n_tricks:installing_bacula.html [02.04.2010 00:33 CEST] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Installing Bacula 5.0.x on Ubuntu Server 9.10 ====== | ====== Installing Bacula 5.0.x on Ubuntu Server 9.10 ====== | ||
- | |||
- | FIXME this is work in progress! Don't use it yet! FIXME | ||
As Ubuntu is shipping with Bacula 2.4 and there is no more recent version available in the backports repository, using bacula 5.0.x on Ubuntu 9.10 means compiling it from scratch - this is meant to be a short copy-n-paste instruction on how to do this. | As Ubuntu is shipping with Bacula 2.4 and there is no more recent version available in the backports repository, using bacula 5.0.x on Ubuntu 9.10 means compiling it from scratch - this is meant to be a short copy-n-paste instruction on how to do this. | ||
- | |||
- | FIXME this is work in progress! Don't use it yet! FIXME | ||
===== Preparing MySQL ===== | ===== Preparing MySQL ===== | ||
Line 122: | Line 118: | ||
/bin/sh ./ | /bin/sh ./ | ||
- | __Fix file permissions as root:__ | + | __Fix file permissions as root:__\\ |
+ | (this is needed, as we do not want to run the storage deamon and the director as root) | ||
cd / | cd / | ||
chmod a+x mtx-changer dvd-handler disk-changer startmysql stopmysql \ | chmod a+x mtx-changer dvd-handler disk-changer startmysql stopmysql \ | ||
- | bacula-ctl-dir bacula-ctl-sd bacula-ctl-fd bconsole | + | bacula-ctl-dir bacula-ctl-sd bacula-ctl-fd bconsole |
+ | cd / | ||
+ | chmod a+x * | ||
+ | |||
+ | ===== Reinit database ===== | ||
+ | |||
+ | This will destroy all information about previous backups!!! It's only noted here to get rid of data produced by testruns! | ||
+ | |||
+ | cd / | ||
+ | /bin/sh ./ | ||
+ | /bin/sh ./ | ||
+ | |||
+ | You might want to " | ||
+ | |||
+ | (stop Bacula or unmount the drive) | ||
+ | mt -f /dev/nst0 rewind | ||
+ | mt -f /dev/nst0 weof | ||
+ | |||
+ | (These two hints are from the [[http:// | ||
+ | |bacula manual]]) | ||
+ | |||
+ | I recomment to clean the working directory as well: | ||
+ | |||
+ | rm -rv / | ||
- | ===== Build static clients | + | ===== Build client only ===== |
./configure --prefix=/ | ./configure --prefix=/ | ||
Line 143: | Line 162: | ||
--libdir=/ | --libdir=/ | ||
--enable-smartalloc \ | --enable-smartalloc \ | ||
- | --enable-tray-monitor \ | + | --disable-tray-monitor \ |
- | --enable-bat \ | + | --disable-bat \ |
- | --with-mysql \ | + | --enable-client-only \ |
--with-smtp-host=localhost \ | --with-smtp-host=localhost \ | ||
--with-baseport=9101 \ | --with-baseport=9101 \ | ||
--with-tcp-wrappers \ | --with-tcp-wrappers \ | ||
- | --with-python \ | ||
--enable-lockmgr \ | --enable-lockmgr \ | ||
- | --disable-conio | + | --disable-conio |
- | | + | |
- | --enable-client-only \ | + | NB: '' |
- | | + | |
- | --enable-static-fd | + | ===== Further Reading ===== |
+ | |||
+ | There is a lot of documentation on the projects web page. Especcially useful for configuration is the [[http:// | ||
docs/tips_n_tricks/installing_bacula.html.1268927283.txt.gz · Last modified: 18.03.2010 16:48 CET by peter