這是 bacula預設的設定
more /usr/local/bacula/etc/bacula-dir.conf
Job {
Name = "RestoreFiles"
Type = Restore
Client=cross-fd
FileSet="Full Set"
Storage = File
Pool = Default
Messages = StandardWhere = /tmp/bacula-restores # 還原後的存放路徑,可在過程中自行自訂
}
執行 Console
/usr/local/bacula/etc/bconsole
輸入 restore
*restore
輸入 1,列出最新的 20 Jobs,記著 JobId
輸入 3,輸入 JobId
輸入 5,選擇一個 client
列出目錄
$ls
作記號,作記號成功時,目錄前面會有星號
$mark var
被作有記號星號的才會被還原,輸入 done接著下一步
$done
選擇還原的 Client -> yes
還原會完全被覆蓋目的檔案
ref:
http://blog.yam.com/thinkingmore/archives/553856.html
http://www.onlamp.com/pub/a/onlamp/2004/01/09/bacula.html
http://linux.chinaunix.net/docs/2006-08-03/2382.shtml
http://www.bacula.org/dev-manual/Brief_Tutorial.html
[Q1.] 12-Oct 11:11 router-fd: gw-www.2006-10-12_11.11.34 Warning: bnet.c:853 Could not connect to Storage daemon on lab100:9103. ERR=Connection refused
[A1.] 想備份一台已作為 Nat Server,由於它把 lab100這主機是自已,routing錯誤,所以無法連線到 SD,增加 "192.168.1.100 lab100"到 /etc/hosts
留言