Reference:
(這方法裝起來的Bacula是5.2.13版,和bacula.org上的版本落差頗大)
步驟:
- 安裝 CentOS 7
- yum install -y bacula-director bacula-storage bacula-console bacula-client mariadb-server
- vi /etc/sysconfig/selinux
- SELINUX=disabled
- setenforce 0
- systemctl start mariadb
- systemctl enable mariadb
- 調整為mysql
- alternatives --config libbaccats.so
- Enter to keep the current selection[+], or type selection number: 1
- /usr/libexec/bacula/grant_mysql_privileges
- /usr/libexec/bacula/create_mysql_database -u root
- /usr/libexec/bacula/make_mysql_tables -u bacula
- mysql_secure_installation
- 剛裝好預設密碼是空的
- mysql -u root -p
- UPDATE mysql.user SET password=PASSWORD("password") WHERE user='bacula';
- FLUSH PRIVILEGES;
- exit
- Configure Bacula Director
- vi /etc/bacula/bacula-dir.conf
- 修改Password, Address (192.168.12.x), dbpassword
- bacula-dir -tc /etc/bacula/bacula-dir.conf
- Configure Bacula Storage
- mkdir /home/backup
- chown bacula:bacula /home/backup
- vi /etc/bacula/bacula-sd.conf
- 修改Password, Archive Device = /home/backup
- bacula-sd -tc /etc/bacula/bacula-sd.conf
- Configure Bacula Console
- vi /etc/bacula/bconsole.conf
- 修改Password
- bconsole -tc /etc/bacula/bconsole.conf
- Configure Bacula file daemon
- vi /etc/bacula/bacula-fd.conf
- 修改Password
- bacula-fd -tc /etc/bacula/bacula-fd.conf
- start all bacula daemons
- systemctl start bacula-dir
- systemctl start bacula-fd
- systemctl start bacula-sd
- systemctl enable bacula-dir
- systemctl enable bacula-fd
- systemctl enable bacula-sd
- yum install wget -y
- 安裝webmin (https://sourceforge.net/projects/webadmin/files/webmin/)
- wget https://sourceforge.net/projects/webadmin/files/webmin/1.981/webmin-1.981-1.noarch.rpm --no-check-certificate
- yum install webmin-1.981-1.noarch.rpm -y
- service webmin status
- chkconfig webmin on
- 調整 firewalld,開放port 10000 (webmin)
- firewall-cmd --zone=public --add-port=10000/tcp --permanent
- firewall-cmd --reload
- 連上管理網頁
- https://IP-address:10000
- System / Bacula Backup System
- Click on “ Module Configuration” link
- Select the database type and fill the bacula database user and password
- Label Volume
接下來就可以測試backup了。
沒有留言:
張貼留言