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密码为空。
首先在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密码为空。
相关文章推荐
- bacula服务器备份系统备份恢复等操作
- bacula服务器备份系统配置
- rhel 5.3 安装系统服务器相关资料备份
- 服务器安装操作系统大容量磁盘系统规划
- 新购买的阿里云服务器 ECS Ubuntu系统安装配置说明(目录)
- 03系统服务器下安装WMP10实际经验分析
- CentOS 7系统下安装ftp服务器的全过程
- PHP的strtolower()和strtoupper()函数在安装非中文系统的服务器下可能会将汉字转换为乱码
- CentOS 6.5系统安装配置LAMP(Apache+PHP5+MySQL)服务器环境
- Linux系统上安装软件(JDK以及tomcat服务器)
- Ubuntu系统下的Nginx服务器软件安装时的常见错误解决
- Linux\CentOS系统下的服务器搭建,下载编译环境,安装vsFtpd、nginx、MySQL、JDK、Tomcat、PHP
- windows 7系统安装与配置Tomcat服务器环境
- svn服务器中实现自动备份(post-commit钩子,linux系统)
- 戴尔PowerEdge R730 机架式服务器RAID调整与系统安装
- windows 7系统安装与配置Tomcat服务器环境
- [转] CentOS 6.5系统安装配置LAMP(Apache+PHP5+MySQL)服务器环境
- RIS实现系统的远程安装之四远程安装服务器的安装与管理
- 戴尔poweredge r730服务器配置以及系统安装
- wdlinux_lnmp服务器安装版ISO及下载,集成wdcp管理系统