- 1. 安卓批量安裝卸載備份恢復手機軟件 安卓軟件管家 v...
- 2. Sql數據庫自動備份恢復助手(擁有友好的操作界面) ...
- 3. D8系統備份恢復專家(全面支持win xp,win 7和vista系...
- 4. 小哨兵一鍵恢復(新一代安全快速的系統備份恢復工具...
- 5. UC保險箱S60V3(手機備份恢復工具) V1.0.0.1 簡體中...
- 6. UC保險箱塞班第五版(手機備份恢復工具) V1.0.0.1 簡...
- 7. FBackup(簡單好用的文件備份恢復工具) V4.6.253 多...
- 8. ERUNTgui(注冊表備份恢復工具)免費下載 V1.2.6
- 9. 雨過天晴電腦保護系統(極速電腦備份恢復軟件) V1...
- 10. 磁盤分區備份恢復軟件(OneKey Ghost) V6.5 中文免...
利用bacula完成數據的備份恢復
作者: 來源: 發布時間:2012-2-16 8:52:38 點擊:
如不指定,默認會還原的原數據所在地
}
FileSet { #2.定義名為dbfs要備份的客戶端數據,即指定需要備份哪些數據,需要排除哪些數據,可指定多個FileSet
Name = "dbfs"
Include {
Options {
# Compression=GZIP #對備份文件進行gzip的壓縮
signature = MD5 #驗證方式為MD5碼的方式
}
File = /var/www #指定客戶端需要備份的文件或目錄
}
Exclude { #排除不需要備份的文件或目錄
File = /var/www/cgi-bin
File = /var/www/error
File = /var/www/icons
}
}
Schedule { #3.備份任務的執行時間策略,定義名為dbscd的備份任務調度策略
Name = dbscd
Run = Level=Full mon at 7:00 #在周一7點作一次全備份
Run = Level=Full fri at 7:00 #在周五7點作一次全備份
Run = Level=Differential sat at 7:00 #在周六7點作一次差異備份
Run = Level=Differential sun at 7:00 #在周日7點作一次差異備份
Run = Level=Differential tue-thu at 7:00 #在周二到周四7點作差異備份
}
#Schedule {
# Name = "WeeklyCycle"
# Run = Full 1st sun at 23:05
# Run = Differential 2nd-5th sun at 23:05
# Run = Incremental mon-sat at 23:05
#}
#Schedule {
# Name = "WeeklyCycleAfterBackup"
# Run = Full sun-sat at 23:10
#}
FileSet {
Name = "Catalog"
Include {
Options {
signature = MD5
}
File = "/usr/local/bacula/var/bacula/working/bacula.sql"
}
}
Client { #1.要備份的客戶端
Name = 2012-02-15-fd
Address = 192.168.32.31
FDPort = 9102
Catalog = MyCatalog #記錄客戶機備份情況的日志名,后面Catalog邏輯段定義
Password = "d1+RTcYIpa7YYB2/SrhRp/BAB7lBSF/Rl7wgrkSb52A2" # Director與FD的驗證密碼,必須與bacula-fd.conf中密碼相同
File Retention = 30 days # 指定保存在數據庫中的記錄多久循環一次,這里30天,只影響數據庫中的記錄,不影響備份的文件
Job Retention = 6 months # job的保持周期,應大于File Retention的值
AutoPrune = yes # 當達到指定的保存周期時,是否自動刪除數據庫中記錄,yes表自動清除過期的job
}
Storage { #4.備份數據的存儲介質和路徑;Storage用來指定將客戶端數據備份到哪個存儲設備上。
Name = dbsd
Address = 192.168.32.30 #存儲端SD的IP地址
SDPort = 9103
Password = "w6YqAfWkU7NMxRJ8s/8y5kUffGpysot4vt9HVQjE9bQy" #Director端與SD的通訊密碼,必須與bacula-sd.conf中Director段密碼相同
Device = dbdev #指定數據備份介質,必須與存儲SD端的bacula-sd.conf中Device邏輯端的Name相同
Media Type = File #指定數據備份介質類別,必須與存儲SD端的bacula-sd.conf中Device邏輯端的Media Type相同
}
Catalog { #Catalog邏輯段用來定義關于日志和數據庫的設定
Name = MyCatalog
dbname = "bacula"; dbuser = "bacula"; dbpassword = ""
}
Messages { #Messages邏輯段用來設定Director端如何保存日志,日志格式,可以將日志信息發送給管理員,要求開啟sendmail服務。
Name = Standard
mailcommand = "/usr/local/bacula/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/usr/local/bacula/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
mail = root@localhost = all, !skipped
operator = root@localhost = mount
console = all, !skipped, !saved
append = "/usr/local/bacula/var/bacula/working/log" = all, !skipped
catalog = all
}
Messages {
Name = Daemon
mailcommand = "/usr/local/bacula/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
mail = root@localhost = all, !skipped
console = all, !skipped, !saved
append = "/usr/local/bacula/var/bacula/working/log" = all, !skipped
}
#Pool {
# Name = Default
# Pool Type = Backup
# Recycle = yes # Bacula can automatically recycle Volumes
# AutoPrune = yes # Prune expired volumes
# Volume Retention = 365 days # one year
#}
Pool { #6.定義job任務使用的池屬性信息,如:設定文件過期時間,是否覆蓋過去備份數據,是否自動清除過去備份等。
}
FileSet { #2.定義名為dbfs要備份的客戶端數據,即指定需要備份哪些數據,需要排除哪些數據,可指定多個FileSet
Name = "dbfs"
Include {
Options {
# Compression=GZIP #對備份文件進行gzip的壓縮
signature = MD5 #驗證方式為MD5碼的方式
}
File = /var/www #指定客戶端需要備份的文件或目錄
}
Exclude { #排除不需要備份的文件或目錄
File = /var/www/cgi-bin
File = /var/www/error
File = /var/www/icons
}
}
Schedule { #3.備份任務的執行時間策略,定義名為dbscd的備份任務調度策略
Name = dbscd
Run = Level=Full mon at 7:00 #在周一7點作一次全備份
Run = Level=Full fri at 7:00 #在周五7點作一次全備份
Run = Level=Differential sat at 7:00 #在周六7點作一次差異備份
Run = Level=Differential sun at 7:00 #在周日7點作一次差異備份
Run = Level=Differential tue-thu at 7:00 #在周二到周四7點作差異備份
}
#Schedule {
# Name = "WeeklyCycle"
# Run = Full 1st sun at 23:05
# Run = Differential 2nd-5th sun at 23:05
# Run = Incremental mon-sat at 23:05
#}
#Schedule {
# Name = "WeeklyCycleAfterBackup"
# Run = Full sun-sat at 23:10
#}
FileSet {
Name = "Catalog"
Include {
Options {
signature = MD5
}
File = "/usr/local/bacula/var/bacula/working/bacula.sql"
}
}
Client { #1.要備份的客戶端
Name = 2012-02-15-fd
Address = 192.168.32.31
FDPort = 9102
Catalog = MyCatalog #記錄客戶機備份情況的日志名,后面Catalog邏輯段定義
Password = "d1+RTcYIpa7YYB2/SrhRp/BAB7lBSF/Rl7wgrkSb52A2" # Director與FD的驗證密碼,必須與bacula-fd.conf中密碼相同
File Retention = 30 days # 指定保存在數據庫中的記錄多久循環一次,這里30天,只影響數據庫中的記錄,不影響備份的文件
Job Retention = 6 months # job的保持周期,應大于File Retention的值
AutoPrune = yes # 當達到指定的保存周期時,是否自動刪除數據庫中記錄,yes表自動清除過期的job
}
Storage { #4.備份數據的存儲介質和路徑;Storage用來指定將客戶端數據備份到哪個存儲設備上。
Name = dbsd
Address = 192.168.32.30 #存儲端SD的IP地址
SDPort = 9103
Password = "w6YqAfWkU7NMxRJ8s/8y5kUffGpysot4vt9HVQjE9bQy" #Director端與SD的通訊密碼,必須與bacula-sd.conf中Director段密碼相同
Device = dbdev #指定數據備份介質,必須與存儲SD端的bacula-sd.conf中Device邏輯端的Name相同
Media Type = File #指定數據備份介質類別,必須與存儲SD端的bacula-sd.conf中Device邏輯端的Media Type相同
}
Catalog { #Catalog邏輯段用來定義關于日志和數據庫的設定
Name = MyCatalog
dbname = "bacula"; dbuser = "bacula"; dbpassword = ""
}
Messages { #Messages邏輯段用來設定Director端如何保存日志,日志格式,可以將日志信息發送給管理員,要求開啟sendmail服務。
Name = Standard
mailcommand = "/usr/local/bacula/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/usr/local/bacula/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
mail = root@localhost = all, !skipped
operator = root@localhost = mount
console = all, !skipped, !saved
append = "/usr/local/bacula/var/bacula/working/log" = all, !skipped
catalog = all
}
Messages {
Name = Daemon
mailcommand = "/usr/local/bacula/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
mail = root@localhost = all, !skipped
console = all, !skipped, !saved
append = "/usr/local/bacula/var/bacula/working/log" = all, !skipped
}
#Pool {
# Name = Default
# Pool Type = Backup
# Recycle = yes # Bacula can automatically recycle Volumes
# AutoPrune = yes # Prune expired volumes
# Volume Retention = 365 days # one year
#}
Pool { #6.定義job任務使用的池屬性信息,如:設定文件過期時間,是否覆蓋過去備份數據,是否自動清除過去備份等。
Tags:
備份恢復上一篇:vps/lnmp,debian下安裝sendmail組件 下一篇:
[收藏此文章]