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 [17.03.2010 23:08 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 |
- | + | ||
- | 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 compilint | + | |
- | + | ||
- | FIXME this is work in progress! Don't use it yet! FIXME | + | |
===== Preparing MySQL ===== | ===== Preparing MySQL ===== | ||
Line 104: | Line 100: | ||
Setup MySQL for bacula: | Setup MySQL for bacula: | ||
- | cd < | + | cd /opt/bacula/ |
- | ./ | + | |
mysql -u bacula -p '' | mysql -u bacula -p '' | ||
Line 119: | Line 115: | ||
continue with setting up MySQL for bacula: | continue with setting up MySQL for bacula: | ||
- | ./ | + | |
- | ./ | + | |
+ | |||
+ | __Fix file permissions as root:__\\ | ||
+ | (this is needed, as we do not want to run the storage deamon and the director as root) | ||
+ | cd / | ||
+ | chmod a+x mtx-changer dvd-handler disk-changer startmysql stopmysql \ | ||
+ | bacula-ctl-dir bacula-ctl-sd bacula-ctl-fd bconsole make_catalog_backup.pl delete_catalog_backup | ||
+ | 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 client only ===== | ||
+ | |||
+ | ./configure --prefix=/ | ||
+ | --sbindir=/ | ||
+ | --sysconfdir=/ | ||
+ | --mandir=/ | ||
+ | --docdir=/ | ||
+ | --htmldir=/ | ||
+ | --with-working-dir=/ | ||
+ | --with-pid-dir=/ | ||
+ | --with-subsys-dir=/ | ||
+ | --with-scriptdir=/ | ||
+ | --with-plugindir=/ | ||
+ | --libdir=/ | ||
+ | --enable-smartalloc \ | ||
+ | --disable-tray-monitor \ | ||
+ | --disable-bat \ | ||
+ | --enable-client-only \ | ||
+ | --with-smtp-host=localhost \ | ||
+ | --with-baseport=9101 \ | ||
+ | --with-tcp-wrappers \ | ||
+ | --enable-lockmgr \ | ||
+ | --disable-conio | ||
+ | |||
+ | NB: '' | ||
+ | |||
+ | ===== 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.1268863696.txt.gz · Last modified: 17.03.2010 23:08 CET by peter