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 [15.03.2010 00:13 CET] – peter | docs:tips_n_tricks:installing_bacula.html [02.04.2010 00:33 CEST] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Installing Bacula on Ubuntu Server 9.10 ====== | + | ====== Installing Bacula |
- | FIXME this is work in progress! Don't use it yet! | + | As Ubuntu |
+ | |||
+ | ===== Preparing MySQL ===== | ||
+ | |||
+ | aptitude install mysql-server mysql-client | ||
+ | # choose secure password | ||
+ | |||
+ | edit '' | ||
+ | |||
+ | [client] | ||
+ | user=" | ||
+ | password="< | ||
+ | |||
+ | ===== Preparing the System ===== | ||
+ | |||
+ | create a system ('' | ||
+ | |||
+ | useradd -r -m -c " | ||
+ | addgroup bacula tape | ||
+ | |||
+ | (using / | ||
+ | |||
+ | As we are going to compile bacula with TCP Wrapper support, make sure it can be accessed locally by adding the following linew to ''/ | ||
+ | |||
+ | ALL: LOCAL | ||
+ | ALL: 127.0.0.1 | ||
+ | ALL: <ip number of system> | ||
+ | |||
+ | Install the tool(s): | ||
+ | |||
+ | aptitude install mtx | ||
+ | |||
+ | ===== Installing bacula ===== | ||
Install packages (needed on a fresh installed server) | Install packages (needed on a fresh installed server) | ||
Line 51: | Line 83: | ||
make | make | ||
- | Du as root: | + | __Du as root:__ |
mkdir / | mkdir / | ||
Line 59: | Line 91: | ||
cd < | cd < | ||
make install | make install | ||
- | + | ||
+ | cd / | ||
+ | chgrp bacula etc/ | ||
+ | chown bacula: | ||
+ | |||
+ | __Continue as user (using '' | ||
+ | |||
+ | Setup MySQL for bacula: | ||
+ | |||
+ | cd / | ||
+ | /bin/sh ./ | ||
+ | mysql -u bacula -p '' | ||
+ | |||
+ | Hit Enter at the password prompt (initial password is **empty**, which is not the same as **no password**. Enter at the SQL prompt: | ||
+ | |||
+ | set password = password('< | ||
+ | quit | ||
+ | |||
+ | remove MySQL history as it contains the unencrypted password: | ||
+ | |||
+ | rm -v ~/ | ||
+ | |||
+ | continue with setting up MySQL for bacula: | ||
+ | |||
+ | /bin/sh ./ | ||
+ | /bin/sh ./ | ||
+ | |||
+ | __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.1268608425.txt.gz · Last modified: 15.03.2010 00:13 CET by peter