Time-stamp: <2012-03-30 Fri 16:56 README.md>
Author....: 'Mash (Thomas Herbert)
Bacula concurrent jobs multiple storage devices client labeled pools Debian installation and configuration.
Please see http://toshine.org/etc for full article.
root@bacula-dir:~# aptitude install mysql-server
root@bacula-dir:~# /usr/share/doc/mysql-server-5.1/examples# gunzip my-huge.cnf.gz
root@bacula-dir:~# /usr/share/doc/mysql-server-5.1/examples# cp my-huge.cnf /etc/mysql/
root@bacula-dir:/etc/mysql# mv my.cnf my.cnf.old
root@bacula-dir:/etc/mysql# mv my-huge.cnf my.cnf
root@bacula-dir:/etc/mysql# /etc/init.d/mysql restart
root@bacula-dir:/etc/mysql# mysql -u root -p
mysql> create database bacula;
mysql> GRANT ALL ON bacula.* TO bacula@localhost IDENTIFIED BY 'quoh7Xai';
mysql> FLUSH PRIVILEGES;
Follow prompts for root database user password (1st) and bacula database user password (2nd).
root@bacula-dir:~# aptitude install bacula bacula-director-mysql bacula-sd-mysql
root@bacula-dir:~# mysql -u bacula -p bacula
mysql> show tables;
+------------------+
| Tables_in_bacula |
+------------------+
| BaseFiles |
| CDImages |
| Client |
| Counters |
| Device |
| File |
| FileSet |
| Filename |
| Job |
| JobHisto |
| JobMedia |
| Location |
| LocationLog |
| Log |
| Media |
| MediaType |
| Path |
| PathHierarchy |
| PathVisibility |
| Pool |
| Status |
| Storage |
| UnsavedFiles |
| Version |
+------------------+
24 rows in set (0.00 sec)
root@bacula-dir:~# cp /usr/share/bacula-director/make_mysql_tables /etc/bacula/scripts/make_mysql_tables
root@bacula-dir:/etc/bacula/scripts# ./make_mysql_tables -u root -p
root@bacula-dir:~# mkdir -p /mnt/nfs-nas-gw/bacula-backups
root@bacula-dir:~# chown -R bacula:bacula /mnt/nfs-nas-gw/bacula-backups
root@bacula-dir:~# bacula-dir -t /etc/bacula/bacula-dir.conf
root@bacula-dir:~# bacula-sd -t /etc/bacula/bacula-sd.conf
root@bacula-dir:~# dbcheck /etc/bacula/bacula-dir.conf bacula bacula quoh7Xai
If you receive a message regarding 'waiting to mount' check the logs, it may most likely be a directory permission issue. The directory should have 'bacula' user permissions.
root@bacula-dir:~# less /var/log/bacula/log
2012-02-06 22:00:00bacula-sd JobId 35: Warning: label.c:331 Open device "PrimaryFileDevice" (/mnt/nfs-nas-gw/) Volume "webserver-FullPool-2012-02-06-35" failed: ERR=dev.c:549 Could not open: /mnt/nfs-nas-gw/webserver-FullPool-2012-02-06-35, ERR=Permission denied