系统: Ubuntu 14.04
安装mysql
sudo apt-get update
sudo apt-get install mysql-server
安装Bacula
不通过源文件文件安装,因为编译时需要指定数据库,编译完,虽然配置好数据库用户名和密码,Bacula-director服务起不来,提示连不上数据库。还是通过apt-get安装,简单。
sudo apt-get install bacula-server bacula-client
安装过程中,会提示输入数据库root账号的密码。
配置Bacula
具体配置参见https://www.digitalocean.com/community/tutorials/how-to-install-bacula-server-on-ubuntu-14-04
配置中遇到的问题
备份时,总提示waiting。
*将配置文件中所有localhost或者127.0.0.1更改为具体ip后解决虽然配置文件中Password配置的没问题,但是还是提示Authentication Fail.
*服务器端和备份端Bacula版本不一致导致的,换成同一版本后解决
*切记:
1 director配置中的Client的Password和FD中的Director块的Password要一致。
2 director配置中的Storage的Password和SD中的Director块的Password要一致
3 所有配置文件中SD和FD中的Director的名称,要和director配置中的名称一致发邮件
安装sendmail,更改director配置中Messages块,填上发件人就好:mail = test@intel.com = all, !skipped operator = test@intel.com = mount
参考http://www.bacula.org/5.0.x-manuals/en/main/main/Messages_Resource.html
搭建web监控
参考http://www.bacula-web.org/news-reader/bacula-web-7-3-0.html
注意apache配置