bacula服务器备份系统安装

1.在bacula服务器端安装bacula
首先在http://www.bacula.org下载相应的源码,这里下载的是bacula-5.0.1.tar.gz,接着进行编译安装,安装过程如下:


[root@baculaServer opt]# tar zxvf bacula-5.0.1.tar.gz  
[root@baculaServeropt]# cd bacula-5.0.1  
[root@baculaServer bacula-5.0.1]# ./configure --prefix=/opt/bacula --with-mysql=/opt/mysql  
[root@baculaServer bacula-5.0.1]#make  
[root@baculaServer bacula-5.0.1]#make install 
注意:这一步提示找不到mysql路径时候上面第三步可以不指定mysql路径即可,改为:./configure --prefix=/opt/bacula --with-mysql

 bacula需要数据库的支持,这里采用Mysql数据库,并假定Mysql已经在bacula服务器端安装好了,且Mysql安装路径为/opt/mysql(bacula在编译时通过“--with-mysql”选项指定了Mysql数据库的安装路径)。
 bacula安装完成后,所有配置文件默认放在/opt/bacula/etc/目录下。


2.在bacula客户端安装bacula
由于bacula客户端只是是需要备份的客户端,因而只需安装相应的客户端组件即可,过程如下:


[root@baculaClient opt]# tar zxvf bacula-5.0.1.tar.gz  
[root@baculaClient opt]# cd bacula-5.0.1  
[root@baculaClient bacula-5.0.1]# ./configure --prefix=/opt/bacula --enable-client-only  
[root@baculaClient bacula-5.0.1]#make  
[root@baculaClient bacula-5.0.1]#make install 
三、 初始化Mysql数据库
 在baculaServer上安装完bacula后,还需要创建bacula对应的Mysql数据库以及访问数据库的授权,好在bacula已经为用户准备好了这样的脚本,接下来只要在bacula服务器端上执行如下脚本即可。


[root@localhost bacula-5.0.1]#cd /opt/bacula/etc  
[root@localhost etc]# ./grant_mysql_privileges   
[root@localhost etc]# ./create_mysql_database   
Creation of bacula database succeeded.  
[root@localhost etc]# ./make_mysql_tables   
Creation of Bacula MySQL tables succeeded. 


 接下来可以登录Mysql数据库,查看bacula的数据库和数据表是否已经建立。在执行上面三行Mysql初始代码时,默认由空密码的root用户执行,因此要请确保Mysql数据库root密码为空。
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值