快速业务通道

关于bacula配置与使用

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-04-28

#
# If you backup the root directory, the following two excluded
# files can be useful
#
Exclude {
File = /var/bacula/working
File = /tmp
File = /proc
File = /tmp
File = /.journal
File = /.fsck
}
}
Schedule {
Name = "WeeklyCycle"
Run = Full 1st sun at 14:05
Run = Differential 2nd-5th sun at 14:05
Run = Incremental mon-sat at 14:05
}

Schedule {
Name = "WeeklyCycleAfterBackup"
Run = Full sun-sat at 14:10
}
# This is the backup of the catalog
FileSet {
Name = "Catalog"
Include {
Options {
signature = MD5
}
File = /var/bacula/working/bacula.sql
}
}
# Client (File Services) to backup
Client {
Name = oracle.mt.com-fd
# Address = localhost
Address = 192.168.0.211
FDPort = 9102
Catalog = MyCatalog
Password = "pl9YHiabos0Cn2ixQzfYQ8BV/vrkUWe2A9oleyxeAfvr" # password for FileDaemon
File Retention = 30 days # 30 days
Job Retention = 6 months # six months
AutoPrune = yes # Prune expired Jobs/Files
}
Storage {
Name = File
# Do not use "localhost" here
Address = localhost # N.B. Use a fully qualified name here
SDPort = 9103
Password = "bVPfyrxzu4P1Vhs11DkF cAUjPyv7zOabBtqbj7N9GRt"
Device = FileStorage
Media Type = File
}


Catalog {
Name = MyCatalog
# Uncomment the following line if you want the dbi driver
# dbdriver = "dbi:mysql"; dbaddress = 127.0.0.1; dbport =
dbname = "bacula"; dbuser = "bacula"; dbpassword = ""
}


Messages {
Name = Standard
mailcommand = "/sbin/bsmtp -h localhost -f "(Bacula) <%r>" -s "Bacula: %t %e of %c %l" %r"
operatorcommand = "/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 = "/var/bacula/working/log" = all, !skipped
catalog = all
}
Messages {
Name = Daemon
mailcommand = "/sbin/bsmtp -h localhost -f "(Bacula) <%r>" -s "Bacula daemon message" %r"
mail = root@localhost = all, !skipped
console = all, !skipped, !saved
append = "/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
}

# Scratch pool definition
Pool {
Name = Scratch
Pool Type = Backup
}Console {
Name = oracle.mt.com-mon
Password = "vqYgXXWcLrQSYe66BWmaQAXqqVsTEcqCGXjuBwc3Agc8"
CommandACL = status, .status
}


vim /etc/bacula/bacula-sd.conf
Storage { # definition of myself
Name = oracle.mt.com-sd
SDPort = 9103 # Director''s port
WorkingDirectory = "/var/bacula/working"
Pid Directory = "/var/run"
Maximum Concurrent Jobs = 20
}

#
# List Directors who are permitted to contact Storage daemon
#
Director {
Name = oracle.mt.com-dir
Password = "bVPfyrxzu4P1Vhs11DkF cAUjPyv7zOabBtqbj7N9GRt"
}
Device {
Name = FileStorage
Media Type = File
Archive Devic

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号