Reference:
Linux client:
- yum install wget -y
- wget https://www.bacula.org/downloads/Bacula-4096-Distribution-Verification-key.asc --no-check-certificate
- rpm --import Bacula-4096-Distribution-Verification-key.asc
- vi /etc/yum.repos.d/Bacula.repo
- [Bacula-Community]
name=CentOS - Bacula - Community
baseurl=http://www.bacula.org/packages/[access key]/rpms/11.0.5/el7/
enabled=1
protect=0
gpgcheck=1 - access key請參考 Bacula 11.0.5 install with rpm
- yum install bacula-client -y
- systemctl start bacula-fd.service
- systemctl enable bacula-fd.service
- 設定firewalld
- firewall-cmd --zone=public --add-port=9102/tcp --permanent
- firewall-cmd --reload
- ln -s /opt/bacula/etc/ /etc/bacula
- vi /etc/bacula/bacula-fd.conf
- systemctl restart bacula-fd.service
- 修改 DNS or /etc/hosts 讓 client 可以用名稱找到 server
- vi /etc/hosts
- 192.168.12.9 bacula02 #add server IP hostname
- 在bacula server:
- 建立要存備份檔的目錄
- mkdir /home/linux01
- chown bacula:bacula /home/linux01/
- 用webmin新增Storage Device, Storage Daemons, Volume Pools (請見最下面截圖)
- systemctl restart bacula-sd.service
- 用baculum新增Clients, FileSets, Jobs (請見最下面截圖)
- 讓client可以寫入Bacula Storage
- firewall-cmd --zone=public --add-port=9103/tcp --permanent
- firewall-cmd --reload
- 測試Jobs backup, restore
Windows client:
- download Windows Binaries 及安裝
- 這三個步驟要修改,其他都用預設值
- 設定 Windows 防火牆
- 修改 DNS or C:\Windows\System32\drivers\etc\hosts 讓 client 可以用名稱找到 server
- 在bacula server:
- 建立要存備份檔的目錄
- mkdir /home/w2019
- chown bacula:bacula /home/w2019/
- 用webmin新增Storage Device, Storage Daemons, Volume Pools (請見最下面截圖)
- systemctl restart bacula-sd.service
- 用baculum新增Clients, FileSets, Jobs (請見最下面截圖)
- 讓client可以寫入Bacula Storage
- firewall-cmd --zone=public --add-port=9103/tcp --permanent
- firewall-cmd --reload
- 測試Jobs backup, restore
Webmin:
Baculum:
沒有留言:
張貼留言