- 1. 安卓批量安裝卸載備份恢復(fù)手機(jī)軟件 安卓軟件管家 v...
- 2. Sql數(shù)據(jù)庫自動(dòng)備份恢復(fù)助手(擁有友好的操作界面) ...
- 3. D8系統(tǒng)備份恢復(fù)專家(全面支持win xp,win 7和vista系...
- 4. 小哨兵一鍵恢復(fù)(新一代安全快速的系統(tǒng)備份恢復(fù)工具...
- 5. UC保險(xiǎn)箱S60V3(手機(jī)備份恢復(fù)工具) V1.0.0.1 簡(jiǎn)體中...
- 6. UC保險(xiǎn)箱塞班第五版(手機(jī)備份恢復(fù)工具) V1.0.0.1 簡(jiǎn)...
- 7. FBackup(簡(jiǎn)單好用的文件備份恢復(fù)工具) V4.6.253 多...
- 8. ERUNTgui(注冊(cè)表備份恢復(fù)工具)免費(fèi)下載 V1.2.6
- 9. 雨過天晴電腦保護(hù)系統(tǒng)(極速電腦備份恢復(fù)軟件) V1...
- 10. 磁盤分區(qū)備份恢復(fù)軟件(OneKey Ghost) V6.5 中文免...
利用bacula完成數(shù)據(jù)的備份恢復(fù)
作者: 來源: 發(fā)布時(shí)間:2012-2-16 8:52:38 點(diǎn)擊:
如不指定,默認(rèn)會(huì)還原的原數(shù)據(jù)所在地
}
FileSet { #2.定義名為dbfs要備份的客戶端數(shù)據(jù),即指定需要備份哪些數(shù)據(jù),需要排除哪些數(shù)據(jù),可指定多個(gè)FileSet
Name = "dbfs"
Include {
Options {
# Compression=GZIP #對(duì)備份文件進(jìn)行g(shù)zip的壓縮
signature = MD5 #驗(yàn)證方式為MD5碼的方式
}
File = /var/www #指定客戶端需要備份的文件或目錄
}
Exclude { #排除不需要備份的文件或目錄
File = /var/www/cgi-bin
File = /var/www/error
File = /var/www/icons
}
}
Schedule { #3.備份任務(wù)的執(zhí)行時(shí)間策略,定義名為dbscd的備份任務(wù)調(diào)度策略
Name = dbscd
Run = Level=Full mon at 7:00 #在周一7點(diǎn)作一次全備份
Run = Level=Full fri at 7:00 #在周五7點(diǎn)作一次全備份
Run = Level=Differential sat at 7:00 #在周六7點(diǎn)作一次差異備份
Run = Level=Differential sun at 7:00 #在周日7點(diǎn)作一次差異備份
Run = Level=Differential tue-thu at 7:00 #在周二到周四7點(diǎn)作差異備份
}
#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 #記錄客戶機(jī)備份情況的日志名,后面Catalog邏輯段定義
Password = "d1+RTcYIpa7YYB2/SrhRp/BAB7lBSF/Rl7wgrkSb52A2" # Director與FD的驗(yàn)證密碼,必須與bacula-fd.conf中密碼相同
File Retention = 30 days # 指定保存在數(shù)據(jù)庫中的記錄多久循環(huán)一次,這里30天,只影響數(shù)據(jù)庫中的記錄,不影響備份的文件
Job Retention = 6 months # job的保持周期,應(yīng)大于File Retention的值
AutoPrune = yes # 當(dāng)達(dá)到指定的保存周期時(shí),是否自動(dòng)刪除數(shù)據(jù)庫中記錄,yes表自動(dòng)清除過期的job
}
Storage { #4.備份數(shù)據(jù)的存儲(chǔ)介質(zhì)和路徑;Storage用來指定將客戶端數(shù)據(jù)備份到哪個(gè)存儲(chǔ)設(shè)備上。
Name = dbsd
Address = 192.168.32.30 #存儲(chǔ)端SD的IP地址
SDPort = 9103
Password = "w6YqAfWkU7NMxRJ8s/8y5kUffGpysot4vt9HVQjE9bQy" #Director端與SD的通訊密碼,必須與bacula-sd.conf中Director段密碼相同
Device = dbdev #指定數(shù)據(jù)備份介質(zhì),必須與存儲(chǔ)SD端的bacula-sd.conf中Device邏輯端的Name相同
Media Type = File #指定數(shù)據(jù)備份介質(zhì)類別,必須與存儲(chǔ)SD端的bacula-sd.conf中Device邏輯端的Media Type相同
}
Catalog { #Catalog邏輯段用來定義關(guān)于日志和數(shù)據(jù)庫的設(shè)定
Name = MyCatalog
dbname = "bacula"; dbuser = "bacula"; dbpassword = ""
}
Messages { #Messages邏輯段用來設(shè)定Director端如何保存日志,日志格式,可以將日志信息發(fā)送給管理員,要求開啟sendmail服務(wù)。
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任務(wù)使用的池屬性信息,如:設(shè)定文件過期時(shí)間,是否覆蓋過去備份數(shù)據(jù),是否自動(dòng)清除過去備份等。
}
FileSet { #2.定義名為dbfs要備份的客戶端數(shù)據(jù),即指定需要備份哪些數(shù)據(jù),需要排除哪些數(shù)據(jù),可指定多個(gè)FileSet
Name = "dbfs"
Include {
Options {
# Compression=GZIP #對(duì)備份文件進(jìn)行g(shù)zip的壓縮
signature = MD5 #驗(yàn)證方式為MD5碼的方式
}
File = /var/www #指定客戶端需要備份的文件或目錄
}
Exclude { #排除不需要備份的文件或目錄
File = /var/www/cgi-bin
File = /var/www/error
File = /var/www/icons
}
}
Schedule { #3.備份任務(wù)的執(zhí)行時(shí)間策略,定義名為dbscd的備份任務(wù)調(diào)度策略
Name = dbscd
Run = Level=Full mon at 7:00 #在周一7點(diǎn)作一次全備份
Run = Level=Full fri at 7:00 #在周五7點(diǎn)作一次全備份
Run = Level=Differential sat at 7:00 #在周六7點(diǎn)作一次差異備份
Run = Level=Differential sun at 7:00 #在周日7點(diǎn)作一次差異備份
Run = Level=Differential tue-thu at 7:00 #在周二到周四7點(diǎn)作差異備份
}
#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 #記錄客戶機(jī)備份情況的日志名,后面Catalog邏輯段定義
Password = "d1+RTcYIpa7YYB2/SrhRp/BAB7lBSF/Rl7wgrkSb52A2" # Director與FD的驗(yàn)證密碼,必須與bacula-fd.conf中密碼相同
File Retention = 30 days # 指定保存在數(shù)據(jù)庫中的記錄多久循環(huán)一次,這里30天,只影響數(shù)據(jù)庫中的記錄,不影響備份的文件
Job Retention = 6 months # job的保持周期,應(yīng)大于File Retention的值
AutoPrune = yes # 當(dāng)達(dá)到指定的保存周期時(shí),是否自動(dòng)刪除數(shù)據(jù)庫中記錄,yes表自動(dòng)清除過期的job
}
Storage { #4.備份數(shù)據(jù)的存儲(chǔ)介質(zhì)和路徑;Storage用來指定將客戶端數(shù)據(jù)備份到哪個(gè)存儲(chǔ)設(shè)備上。
Name = dbsd
Address = 192.168.32.30 #存儲(chǔ)端SD的IP地址
SDPort = 9103
Password = "w6YqAfWkU7NMxRJ8s/8y5kUffGpysot4vt9HVQjE9bQy" #Director端與SD的通訊密碼,必須與bacula-sd.conf中Director段密碼相同
Device = dbdev #指定數(shù)據(jù)備份介質(zhì),必須與存儲(chǔ)SD端的bacula-sd.conf中Device邏輯端的Name相同
Media Type = File #指定數(shù)據(jù)備份介質(zhì)類別,必須與存儲(chǔ)SD端的bacula-sd.conf中Device邏輯端的Media Type相同
}
Catalog { #Catalog邏輯段用來定義關(guān)于日志和數(shù)據(jù)庫的設(shè)定
Name = MyCatalog
dbname = "bacula"; dbuser = "bacula"; dbpassword = ""
}
Messages { #Messages邏輯段用來設(shè)定Director端如何保存日志,日志格式,可以將日志信息發(fā)送給管理員,要求開啟sendmail服務(wù)。
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任務(wù)使用的池屬性信息,如:設(shè)定文件過期時(shí)間,是否覆蓋過去備份數(shù)據(jù),是否自動(dòng)清除過去備份等。
Tags:
備份恢復(fù)上一篇:vps/lnmp,debian下安裝sendmail組件 下一篇:
[收藏此文章]