您的位置:首页 > 其它

bacula服务器备份系统安装

2017-07-16 12:59 519 查看
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密码为空。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  服务器