Requirement:
mysql mysql-server
bacula-director-common bacula-director-mysql
bacula-client
bacula-storage-common bacula-storage-mysql
bacula-common bacula-console bacula-docs bacula-traymonitor
1. 安裝mysql
yum install mysql mysql-server
service mysqld start
mysqladmin -u root password '管理者密碼'
chkconfig mysqld on
2. 安裝bacula相關套件
yum install bacula-director-common bacula-director-mysql
yum install bacula-client
yum install bacula-storage-common bacula-storage-mysql
yum install bacula-common bacula-console bacula-docs
3. 建立bacula使用之資料庫
cd /usr/libexec/bacula
./create_mysql_database mysql -u root -p
./make_mysql_tables mysql -u root -p
4. 設定bacula資料庫使用權限
mysql -u root -p
grant all on bacula.* to bacula@localhost identified by 'bacula';
flush privileges;
5. 設定bacula-dir的組態檔
vi /etc/bacula/bacula-dir.conf
...
Director {
Password = "bacula-dir的密碼"
}
...
Client {
Address = Bacula Server IP
Password = "baucla-fd的密碼"
}
...
Storage {
Address = Bacula Server IP
Password = "bacula-sd的密碼"
}
...
Catalog {
dbname = "bacula"; dbuser = "bacula"; dbpassword = "bacula"
}
...
Console {
Password = "tray-monitor使用的密碼"
}
6. 設定bacula-fd的組態檔
vi /etc/bacula/bacula-fd.conf
...
Director {
Password = "對應dir組態中Client的密碼"
}
...
Director {
Password = "對應dir組態中Console的密碼"
}
7. 設定bacula-sd的組態檔
vi /etc/bacula/bacula-sd.conf
...
Director {
Password = "對應dir組態中Storage的密碼"
}
...
Director {
Password = "對應dir組態中Console的密碼"
}
...
Device {
Archive Device = 指定備份儲存的目錄
}
8. 設定bconsole的組態檔
vi /etc/bacula/bconsole.conf
Director {
address = Bacula Server IP
Password = "對應dir組態中Console的密碼"
}
service bacula-dir start
chkconfig bacula-dir on
service bacula-fd start
chkconfig bacula-fd on
service bacula-sd start
chkconfig bacula-sd on
10. 檢查服務是否正常啟動
netstat -tnulp
參考文章:
http://www.bacula.org/en/
http://yuhfa.blogspot.com/2008/12/bacula.html
沒有留言:
張貼留言