GustavoDavila
(usa Fedora)
Enviado em 21/06/2013 - 15:25h
Bacula-Dir
Director { # define myself
Name = flanders-dir
DIRport = 9101
QueryFile = "/etc/bacula/query.sql"
WorkingDirectory = /var/bacula/working
PidDirectory = "/var/run"
Maximum Concurrent Jobs = 20
Password = "master" # Console password
Messages = Daemon
}
JobDefs {
Name = "DefaultJob"
Type = Backup
Level = Incremental
Client = flanders-fd
FileSet = "Full Set"
Schedule = "WeeklyCycle"
Storage = File
Messages = Standard
Pool = File
Priority = 10
Write Bootstrap = "/var/bacula/working/%c.bsr"
}
Job {
Name = "BackupClient1"
JobDefs = "DefaultJob"
}
Job {
Name = "BackupCatalog"
JobDefs = "DefaultJob"
Level = Full
FileSet="Catalog"
Schedule = "WeeklyCycleAfterBackup"
# This creates an ASCII copy of the catalog
# Arguments to make_catalog_backup.pl are:
# make_catalog_backup.pl <catalog-name>
RunBeforeJob = "/etc/bacula/make_catalog_backup.pl MyCatalog"
# This deletes the copy of the catalog
RunAfterJob = "/etc/bacula/delete_catalog_backup"
Write Bootstrap = "/var/bacula/working/%n.bsr"
Priority = 11 # run after main backup
}
#
Job {
Name = "RestoreFiles"
Type = Restore
Client=flanders-fd
FileSet="Full Set"
Storage = File
Pool = Default
Messages = Standard
Where = /tmp/bacula-restores
}
# List of files to be backed up
FileSet {
Name = "Full Set"
Include {
Options {
signature = MD5
}
#
#
File = /sbin
}
#
# 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
}
}
#
# When to do the backups, full backup on first sunday of the month,
# differential (i.e. incremental since full) every other sunday,
# and incremental backups other days
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
}
# This schedule does the catalog. It starts after the WeeklyCycle
Schedule {
Name = "WeeklyCycleAfterBackup"
Run = Full sun-sat at 23: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 = flanders-fd
Address = localhost
FDPort = 9102
Catalog = MyCatalog
Password = master
File Retention = 30 days
Job Retention = 1 years
AutoPrune = yes
}
#
# Definition of file storage device
Storage {
Name = File
# Do not use "localhost" here
Address = localhost # N.B. Use a fully qualified name here
SDPort = 9103
Password = "master"
Device = FileStorage
Media Type = File
}
# Generic catalog service
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 = "root"; dbpassword = "master"
}
# Reasonable message delivery -- send most everything to email address
# and to the console
Messages {
Name = Standard
#
catalog = all, !skipped, !saved
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
#
# WARNING! the following will create a file that you must cycle from
# time to time as it will grow indefinitely. However, it will
# also keep all your messages if they scroll off the console.
#
append = "/var/bacula/working/bacula.log" = all, !skipped
catalog = all
}
#
# Message delivery for daemon messages (no job).
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/bacula.log" = all, !skipped
}
# Default pool definition
Pool {
Name = Default
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365 days # one year
}
# File Pool definition
Pool {
Name = File
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365 days # one year
Maximum Volume Bytes = 50G # Limit Volume size to something reasonable
Maximum Volumes = 100 # Limit number of Volumes in Pool
}
# Scratch pool definition
Pool {
Name = Scratch
Pool Type = Backup
}
#
# Restricted console used by tray-monitor to get the status of the director
#
Console {
Name = flanders-mon
Password = "master"
CommandACL = status, .status
}
Pool {
Name = Teste_Pool
Pool Type = Backup
Volume Retention = 365 days
Recycle = yes
}
Schedule {
Name = Teste_Schedule
Run = Level=Incremental Pool=Teste_Pool at 07:50
}
FileSet {
Name = Teste_FileSet
Include {
File = /etc/
Options {
}
}
Exclude {
File = /backup/teste
}
}
Storage {
Name = Teste_Storage
Password = master
Address = localhost
Password = master
Address = localhost
SDPort = 9103
Device = teste
Media Type = File_Teste
Maximum Concurrent Jobs = 20
}
FileSet {
Name = Teste_Conjunto
Include {
File = /etc
Options {
}
}
Exclude {
File = /backup/teste
}
}
Pool {
Name = Novo_POOL
Pool Type = Backup
Volume Retention = 365 days
Recycle = yes
AutoPrune = yes
Maximum Volume Bytes = 5G
}
Schedule {
Name = Teste_Agendamento
Run = Level=Full Pool=Novo_POOL at 00:00
}
Storage {
Name = funcionando_armazenamento
Password = master
Address = localhost
SDPort = 9103
Device = FileStorage
Media Type = File
Maximum Concurrent Jobs = 20
}
JobDefs {
Name = trabalho_func
Type = Backup
Level = Incremental
Client = flanders-fd
FileSet = Teste_Conjunto
Schedule = Teste_Agendamento
Storage = funcionando_armazenamento
Pool = Novo_POOL
Messages = Standard
__________________________________________________
Bacula-FD
#
Director {
Name = flanders-dir
Password = "master"
}
#
# Restricted Director, used by tray-monitor to get the
# status of the file daemon
#
Director {
Name = flanders-mon
Password = "master"
Monitor = yes
}
#
# "Global" File daemon configuration specifications
#
FileDaemon { # this is me
Name = flanders-fd
FDport = 9103
WorkingDirectory = /var/bacula/working
Pid Directory = /var/run
Maximum Concurrent Jobs = 200
}
# Send all messages except skipped files back to Director
Messages {
Name = Standard
director = flanders-dir = all, !skipped, !restored
__________________________________________________
Bacula-SD
#
Storage { # definition of myself
Name = flanders-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 = flanders-dir
Password = "DKrbZ1gBJtO8/onHZ89S0o8QVL8Mwj4DI36MYrsCF2R0"
}
Director {
Name = flanders-mon
Password = "7YXBzOwaunAFabFWckeQ8DEkhDVjVDlHaqcwRRTgn1F3"
Monitor = yes
}
#
Device {
Name = FileStorage
Media Type = File
Archive Device = /tmp
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
}
#
#
Messages {
Name = Standard
director = flanders-dir = all
Amigo segue as informações corretas. obrigado pela ajuda