bacula快速部署

快速部署:

Server端:DD、SD、Monitor、Console均部署在Server上
Client端:FD


Server端部署:
上传事先下载的源码包

tar xvf bacula-9.2.0.tar.gz
cd bacula-9.2.0

./configure --prefix=/opt/bacula --with-mysql=/opt/mysql

make && make install

echo 'export PATH=/opt/bacula/sbin:${PATH}' >> /etc/profile
. /etc/profile
which bacula

bacula需要数据库的支持,这里采用的是Mysql数据库,并假定Mysql已经在bacula服务器端安装好了,且Mysql安装路径为/opt/mysql(bacula在编译时通过“--with-mysql”选项指定了Mysql数据库的安装路径)


初始化Mysql数据库
cd   /opt/bacula/etc
./grant_mysql_privileges -p
./create_mysql_database -p
./make_mysql_tables -p

启动服务:

/opt/bacula/sbin/bacula  {start|stop|restart|status}   或

/opt/bacula/etc/bacula-ctl-dir  {start|stop|restart|status}

/opt/bacula/etc/bacula-ctl-sd  {start|stop|restart|status}

 /opt/bacula/etc/bacula-ctl-fd  {start|stop|restart|status}

bacula客户端安装:
需要备份数据的客户端需要安装

tar xvf bacula-9.2.0.tar.gz
cd bacula-9.2.0

./configure --prefix=/opt/bacula --enable-client-only

make && make install

echo 'export PATH=/opt/bacula/sbin:${PATH}' >> /etc/profile
. /etc/profile
which bacula

启动服务:

/opt/bacula/sbin/bacula  {start|stop|restart|status}    或

/opt/bacula/etc/bacula-ctl-fd  {start|stop|restart|status}

猜你喜欢

转载自www.cnblogs.com/liliyang/p/9857445.html