2011年4月2日 星期六

Bacula - 遠端主機備份

Linux Client
OS:CentOS 5.3

1. 安裝編譯用套件
yum  install  gcc  gcc-c++

2. 下載原始碼編譯安裝
wget  https://sourceforge.net/projects/bacula/files/bacula/5.0.3/bacula-5.0.3.tar.gz/download
tar  -zxvf  bacula-5.0.3.tar.gz
cd  bacula-5.0.3
CFLAGS="-g -O2 -Wall" \
   ./configure \
   --enable-client-only \
   --sbindir=/usr/local/bacula/bin \
   --sysconfdir=/usr/local/bacula/bin \
   --with-pid-dir=/usr/local/bacula/bin/working \
   --with-subsys-dir=/usr/local/bacula/bin/working \
   --enable-smartalloc \
   --with-working-dir=/usr/local/bacula/bin/working \
   --with-dump-email=your@address.com \
   --with-job-email=your@address.com \
   --with-smtp-host=localhost
make
make install

3. 修改Client的Bacula File Confiugration
cd  /usr/local/bacula/bin
vi  bacula-fd.conf
# List Directors who are permitted to contact this File daemon
Director {
  Name = bacula-dir (對應bacula director name)
  Password = linuxtest (自訂密碼)
}

4. 啟用bacula file deamon
/usr/local/bacula/bin/bacula-fd

Bacula  Server
1. 使用Webmin建立遠端Bacula Client
https://Bacula server IP:10000
1-1 建立Bacula File Client
Director Configuration -> Backup Clients -> Add a new backup client
Bacula FD password需和Client端輸入的要相同










1-2 測試Client是否驗證成功
Backup and Restore Actions -> Client Status










Windows Client
1. 下載安裝Bacula程式
Installation Type選擇Automatic




















輸入相關參數
DIR Name:bacula director name
DIR Password:自訂密碼
DIR Address:bacula director IP



















2. 驗證Windows Bacula File configuration
開始 -> 所有程式集 -> Bacula -> Configuration -> Edit Client Configuration
# List Directors who are permitted to contact this File daemon
Director {
  Name = bacula-dir (對應bacula director name)
  Password = "windowstest" (自訂密碼)
}

3. 啟動bacula file deamon
開始 -> 所有程式集 -> Bacula -> Start File Service

Bacula Server
1. 使用Webmin建立遠端Bacula Client
https://Bacula server IP:10000
1-1 建立Bacula File Client
Director Configuration -> Backup Clients -> Add a new backup client











1-2 測試Client是否驗證成功
Backup and Restore Actions -> Client Status


1 則留言:

  1. How to enter your winnings at the Casino!
    A player can access the 밀양 출장마사지 casino from 충주 출장안마 any 여주 출장안마 device 과천 출장샵 and enter the winning number 파주 출장샵 to claim a prize. If a player plays in any of our Casino games, then a

    回覆刪除