Boa Tarde Ana,
Estou enviando o meu bacula-dir para que dê uma olhada e se possível
ver se as configurações estão certas ?
Nos moldes de manter os backups por 1 mês sendo que os full apenas 1
vez por semana.
################### 1.0 Director
####################################
Director {
Name = gontijo-dir
Description = "Sistema de Backup Gontijo"
DirPort = 9101
Password = "superuser"
QueryFile = "/etc/bacula/query.sql"
WorkingDirectory = "/var/bacula/working"
PidDirectory = "/var/run"
Messages = daemon-messages
MaximumConcurrentJobs = 20
Heartbeat Interval = 120
}
############### Jobs ###############################################
Job {
Name = lxbackup-job
JobDefs = jobdefs-File
Client = lxbackup-fd
FileSet = fileset-baculaserver
WriteBootstrap =
"/var/lib/bacula/bootstraps/lxbackup-fd.bsr"
Enabled = Yes
}
Job {
Name = samba-job
JobDefs = jobdefs-File
Client = samba-fd
FileSet = fileset-client-linux
WriteBootstrap = "/var/lib/bacula/bootstraps/samba-fd.bsr"
Enabled = Yes
}
Job {
Name = bdprod-job
JobDefs = jobdefs-File
Client = bdprod-fd
FileSet = fileset-client-sql
WriteBootstrap = "/var/lib/bacula/bootstraps/bdprod-fd.bsr"
Enabled = yes
Pool = File-Daily
}
####################################################################
# Importante! Backup do Catálogo #
####################################################################
Job {
Name = CATALOG
JobDefs = jobdefs-File
Client = lxbackup-fd
Level = Full
Priority = 99
FileSet = fileset-catalog
Pool = File-Daily
Schedule = schedule-file
WriteBootstrap = "/var/lib/bacula/bootstraps/catalog.bsr"
RunBeforeJob = "/etc/bacula/make_catalog_backup bacula
bacula superuser"
RunAfterJob = "/etc/bacula/delete_catalog_backup"
}
Job {
Name = "RESTORE"
Client = samba-fd
where = "/tmp/restores"
Enabled = Yes
Type = Restore
Priority = 10
FileSet = fileset-client-linux
Replace = always
Storage = File-Storage
Pool = File-Daily
Messages = job-messages
}
Job {
Name = "VERIFY"
Client = samba-fd
Type = Verify
Level = VolumeToCatalog
Priority = 10
FileSet = fileset-client-linux
Storage = File-Storage
Pool = File-Daily
Messages = job-messages
}
######################## 6.0 fileSets
#########################################
FileSet {
Name = fileset-client-linux
Include {
Options {
Signature = SHA1
onefs = no
Exclude = Yes
Compression=GZIP6
wild = "/tmp"
wild = "/proc"
wild = "/cache"
wild = "/mnt"
wild = "/sys"
wild = "/dados/aplicativos"
wild = "/dados/tmp"
wild = "/net"
wild = "/misc"
wild = "/dados/lixeira"
wild = "/dados/trash"
wild = "/var"
wild = "/media"
wild = "/usr"
wild = "/opt"
wildfile = "*.iso"
wildfile = "*.mp3"
wildfile = "*.avi"
wildfile = "*.mpg"
wildfile = "*.gho"
wildfile = "*.pst"
}
File = /
}
}
FileSet {
Name = fileset-client-windows
Include {
Options {
WildFile = "*.obj"
WildFile = "*.exe"
WildFile = "[A-Z]:/Documents and Settings/*/Cookies"
WildFile = "[A-Z]:/Documents and Settings/*/Recents"
WildFile = "[A-Z]:/Documents and Settings/*/Local
Settings/History"
WildFile = "[A-Z]:/Documents and Settings/*/Local
Settings/Temp"
WildFile = "[A-Z]:/Documents and Settings/*/Local
Settings/Temporary" exclude = yes
}
File = "C:\My Documents"
}
}
FileSet {
Name = fileset-client-sql
Enable VSS = no
Include {
Options {
WildFile = "*.obj"
WildFile = "*.exe"
WildFile = "[A-Z]:/Documents and Settings/*/Cookies"
WildFile = "[A-Z]:/Documents and Settings/*/Recents"
WildFile = "[A-Z]:/Documents and Settings/*/Local
Settings/History"
WildFile = "[A-Z]:/Documents and Settings/*/Local
Settings/Temp"
WildFile = "[A-Z]:/Documents and Settings/*/Local
Settings/Temporary" exclude = yes
}
File = "D:/Bkp"
}
}
FileSet {
Name = fileset-baculaserver
Include {
Options {
Signature = SHA1
onefs = no
Exclude = Yes
wild = "/tmp"
wild = "/proc"
wild = "/bacula-sql"
wild = "/net"
wild = "/dados"
wild = "/backup"
wild = "/misc"
wild = "/sys"
wild = "/var/bacula/working"
wild = "/var/lib/mysql"
wildfile = "*.iso"
}
File = /
}
}
FileSet {
Name = fileset-catalog
Include {
Options {
Signature = SHA1
}
File = "/opt/bacula/working/bacula.sql"
}
}
############### Storages ###################################
Storage {
Name = File-Storage
Address = 172.16.2.3
Password = "superuser"
Device = File
MaximumconcurrentJobs = 10
MediaType = File
}
############# 3.0 Pools ####################################
Pool {
Name = File-Daily
PoolType = "backup"
VolumeRetention = 13 Days
Recycle = Yes
Purge Oldest Volume = Yes
MaximumVolumeBytes = 400G
}
Pool {
Name = File-Weekly
PoolType = backup
VolumeRetention = 28 Days
Purge Oldest Volume = Yes
Recycle = Yes
MaximumVolumeBytes = 600G
}
Pool {
Name = File-Monthly
PoolType = backup
VolumeRetention = 346 days
Purge Oldest Volume = Yes
Recycle = Yes
MaximumVolumeBytes = 200G
}
####################### JOBDEFS ############################
JobDefs {
Name = jobdefs-File
Enabled = yes
Type = backup
Level = Differential
Priority = 10
FileSet = fileset-client-linux
Schedule = schedule-file
Storage = File-Storage
RunScript {
Runs On Failure = No
Runs On Client = No
Runs When = After
Fail Job On Error = Yes
# Command = "/etc/bacula/scripts/postBaculaJob.pl -c
\"%c\" -d \"%d\" -i \"%i\" -l \"%l\" -n \"%n\" -o
/etc/bacula/status/%c_%n-status.log"
}
Pool = File-Daily
Messages = job-messages
}
################## 5.0 Clients ################################
Client {
Name = lxbackup-fd
Address = 172.16.2.3
FDPort = 9102
Password = "superuser"
FileRetention = 30 Days
JobRetention = 1 year
Catalog = catalog
Autoprune = Yes
}
Client {
Name = samba-fd
Address = 172.16.2.4
FDPort = 9102
Password = "superuser"
FileRetention = 30 Days
JobRetention = 1 year
Catalog = catalog
Autoprune = Yes
}
Client {
Name = bdprod-fd
Address = 172.16.2.5
FDPort = 9102
Password = "superuser"
FileRetention = 10 Days
JobRetention = 1 year
Catalog = catalog
Autoprune = Yes
}
################### 7.0 Catalog #################################
Catalog {
Name = catalog
DBName = bacula
user = bacula
Password = "superuser"
DB Address = localhost
DB Port = 3306
}
Console {
name = backup-monitor
Password = "superuser"
CommandACL = status, .status
}
Messages {
Name = daemon-messages
##Mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(backup
cmc\) %r\" -s \"Mensagem do sistema de backup\" %r"
mailcommand = "/usr/sbin/sendmail -f
gabriel...@gmail.com -t %r -u \"REMETENTE Bacula: %t %e of %c
%l\" -s
smtp.gmail.com -o tls=yes -xu
gabriel...@gmail.com -xp
junkfood2009"
Mail =
gab...@cmcsolucoes.com.br = all, !skipped
Console = all, !skipped, !saved
Append = "/var/lib/bacula/log" = all, !skipped
}
Messages {
Name = job-messages
## Mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Intech\)
%r\" -s \"Sistema de backup Intech: %t %e of %c %l\" %r"
mailcommand = "/usr/sbin/sendmail -f
gabriel...@gmail.com -t %r -u \"REMETENTE Bacula: %t %e of %c
%l\" -s
smtp.gmail.com -o tls=yes -xu
gabriel...@gmail.com -xp
junkfood2009"
OperatorCommand = "/usr/sbin/bsmtp -h localhost -f
\"\(Intech\) %r\" -s \"Sistema de backup Intech: Intervenção
Necessaria para %j\" %r"
Mail =
gab...@cmcsolucoes.com.br = all, !skipped
Mail on error =
gab...@cmcsolucoes.com.br = all, !skipped
Operator =
gab...@cmcsolucoes.com.br = mount
Console = all, !skipped, !saved
Append = "/var/lib/bacula/log" = all, !skipped
Catalog = all, !skipped, !saved
}
#################### Agendamento
#########################################
Schedule {
Name = schedule-file
Run = Level=Differential Pool=File-Daily Monday-Friday at
00:20
Run = Level=Full Pool=File-Weekly Saturday at 13:00
## Run = Level=Full Pool=File-Weekly 2nd 3rd 4th 5th Friday at
00:20
## Run = Level=Full Pool=File-Monthly 1st Friday at 00:20
}
att
Gabriel