Não consigo deixar meu diretor funcionando :(

200 views
Skip to first unread message

Lucas A. Antonio

unread,
Feb 1, 2016, 12:29:42 PM2/1/16
to Bacula Backup-Pt-Br
Dae Baculenses kkk 

Por gentileza, o que eu estou fazendo de errado que não consigo deixar o bacula aqui funcionando.

Help me pleases!!!!

Veja aí m Diretor...

#  For Bacula release 5.2.5 (26 January 2012) -- ubuntu 12.04

Director {                      # define myself
  Name = servidor-dir
  DIRport = 9101                # where we listen for UA connections
  QueryFile = "/etc/bacula/scripts/query.sql"
  WorkingDirectory = "/var/lib/bacula"
  PidDirectory = "/var/run/bacula"
  Maximum Concurrent Jobs = 1
  Password = "pzWhQ1tfdFA48JrTgrfd8ZOjbywK4siVBZfSqagMq/AV"         # Console password
  Messages = Daemon
  DirAddress = 10.0.0.254
}


###### SECAO JobDefs ######################################
JobDefs {
  Name = "DefaultJob"
  Type = Backup
  Level = Differential
  Client = servidor-fd 
  FileSet = "Full Set"
  Schedule = "WeeklyCycle"
  Storage = File
  Messages = padrao
  Pool = File
  Priority = 10
  Write Bootstrap = "/var/lib/bacula/%c.bsr"
}

JobDefs {
  Name = "JobWin"
  Type = Backup
  Level = Differential
  Client = mexbras-fd 
  FileSet = "bkp-inventi"
  Schedule = "ag-mensal"
  Storage = File
  Messages = Standard
  Pool = File
  Priority = 10
  Write Bootstrap = "/var/lib/bacula/%c.bsr"
}


###### SECAO Jobs  ######################################
##
# Define the main nightly save backup job
#   By default, this job will back up to disk in /nonexistant/path/to/file/archive/dir
Job {
  Name = "BackupSamba"
  JobDefs = "DefaultJob"
}

Job {
  Name = "BackupInventi"
  JobDefs = "JobWin"
}

# Backup the catalog database (after the nightly save)
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/scripts/make_catalog_backup.pl MyCatalog"
  # This deletes the copy of the catalog
  RunAfterJob  = "/etc/bacula/scripts/delete_catalog_backup"
  Write Bootstrap = "/var/lib/bacula/%n.bsr"
  Priority = 11                   # run after main backup
}

#
# Standard Restore template, to be changed by Console program
#  Only one such job is needed for all Jobs/Clients/Storage ...
#
Job {
  Name = "RestoreFiles"
  Type = Restore
  Client=servidor-fd                 
  FileSet="Full Set"                  
  Storage = File                      
  Pool = Default
  Messages = Standard
  Where = /home/bacula-restores
}



###### SECAO FileSet  ######################################

# List of files to be backed up
FileSet {
  Name = "Full Set"
  Include {
    Options {
      signature = MD5
      compression=GZIP
    }

    File = /etc
    File = /root
    File = /home
    File = /usr/local/bin
    File = /opt 
    File = /var
  }

# If you backup the root directory, the following two excluded
#   files can be useful
  Exclude {
    File = /var/lib/bacula
    File = /nonexistant/path/to/file/archive/dir
    File = /proc
    File = /tmp
    File = /.journal
    File = /.fsck
    File = /home/lixeira
  }
}

FileSet {
  Name = "bkp-inventi"
  Include {
    Options {
      signature = MD5
      compression = GZIP
    }
    File = "C:/" 
  }
}

# This is the backup of the catalog
FileSet {
  Name = "Catalog"
  Include {
    Options {
      signature = MD5
    }
    File = "/var/lib/bacula/bacula.sql"
  }
}


###### SECAO Schedule  ######################################
# 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 mon-sat at 21:00
#  Run = Incremental mon-sat at 23:05
}

Schedule {
  Name = "ag-mensal"
  Run = Differential 1st sun at 00:10
}

# This schedule does the catalog. It starts after the WeeklyCycle
Schedule {
  Name = "WeeklyCycleAfterBackup"
  Run = Full sun-sat at 23:10
}


###### SECAO Clientes ###########################################
# Client (File Services) to backup
Client {
  Name = servidor-fd
  Address = 10.0.0.254
  FDPort = 9102
  Catalog = BACKUP REDE
  Password = "VA9GJFY2DVdFHg4TLSri-dSsPc5TKGWf8"          # password for FileDaemon
  File Retention = 30 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}

###### SECAO Storage  ###########################################
# Definition of file storage device
Storage {
  Name = BACKUP REDE
# Do not use "localhost" here    
  Address = 10.0.0.254                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "X9qgGBNF25-Aq7aAAwHxcNil8aW0tazni"
  Device = FileStorage
  Media Type = File
}


###### SECAO Catalogo  ###########################################
# Generic catalog service
Catalog {
  Name = BACKUP REDE
# Uncomment the following line if you want the dbi driver
# dbdriver = "dbi:sqlite3"; dbaddress = 10.0.0.254; dbport =  
  dbname = "bacula"; DB Address = ""; dbuser = "bacula"; dbpassword = "ky3I4OLofZpv"
}


###### SECAO Messages  ###########################################
# Reasonable message delivery -- send most everything to email address
#  and to the console
Messages {
  Name = padrao
  mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Mexbras-Bacula\) \<%r\>\" -s \"Mexbras - Bacula: %t %e of %c %l\" %r"
  operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Mexbras - Bacula: Intervention needed for %j\" %r"
  mail = meu email = all, !skipped            
  #mail = root@localhost = all, !skipped            
  operator = root@localhost = mount
  console = all, !skipped, !saved
  append = "/var/lib/bacula/log" = all, !skipped
}
Messages {
Name = Standard
catalog = all, !skipped, !saved
}
# Message delivery for daemon messages (no job).
Messages {
  Name = Daemon
  mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
  mail = root@localhost = all, !skipped            
  console = all, !skipped, !saved
  append = "/var/lib/bacula/log" = all, !skipped
}
###### SECAO POOL  ###########################################
# Default pool definition
Pool {
  Name = BACKUP REDE
  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 = BACKUP REDE
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 20 days          # one year
  Maximum Volume Bytes = 500G         # Limit Volume size to something reasonable
  Maximum Volumes = 6                 # 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 = servidor-mon
  Password = "u7W9_Fj020HcxDfXQ6fmnlPab3-sYx2gs"
  CommandACL = status, .status
}#  For Bacula release 5.2.5 (26 January 2012) -- ubuntu 12.04

Director {                      # define myself
  Name = servidor-dir
  DIRport = 9101                # where we listen for UA connections
  QueryFile = "/etc/bacula/scripts/query.sql"
  WorkingDirectory = "/var/lib/bacula"
  PidDirectory = "/var/run/bacula"
  Maximum Concurrent Jobs = 1
  Password = "pzWhQ1tfdFA48JrTgrfd8ZOjbywK4siVBZfSqagMq/AV"         # Console password
  Messages = Daemon
  DirAddress = 10.0.0.254
}


###### SECAO JobDefs ######################################
JobDefs {
  Name = "DefaultJob"
  Type = Backup
  Level = Differential
  Client = servidor-fd 
  FileSet = "Full Set"
  Schedule = "WeeklyCycle"
  Storage = File
  Messages = padrao
  Pool = File
  Priority = 10
  Write Bootstrap = "/var/lib/bacula/%c.bsr"
}

JobDefs {
  Name = "JobWin"
  Type = Backup
  Level = Differential
  Client = mexbras-fd 
  FileSet = "bkp-inventi"
  Schedule = "ag-mensal"
  Storage = File
  Messages = Standard
  Pool = File
  Priority = 10
  Write Bootstrap = "/var/lib/bacula/%c.bsr"
}


###### SECAO Jobs  ######################################
##
# Define the main nightly save backup job
#   By default, this job will back up to disk in /nonexistant/path/to/file/archive/dir
Job {
  Name = "BackupSamba"
  JobDefs = "DefaultJob"
}

Job {
  Name = "BackupInventi"
  JobDefs = "JobWin"
}

# Backup the catalog database (after the nightly save)
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/scripts/make_catalog_backup.pl MyCatalog"
  # This deletes the copy of the catalog
  RunAfterJob  = "/etc/bacula/scripts/delete_catalog_backup"
  Write Bootstrap = "/var/lib/bacula/%n.bsr"
  Priority = 11                   # run after main backup
}

#
# Standard Restore template, to be changed by Console program
#  Only one such job is needed for all Jobs/Clients/Storage ...
#
Job {
  Name = "RestoreFiles"
  Type = Restore
  Client=servidor-fd                 
  FileSet="Full Set"                  
  Storage = File                      
  Pool = Default
  Messages = Standard
  Where = /home/bacula-restores
}



###### SECAO FileSet  ######################################

# List of files to be backed up
FileSet {
  Name = "Full Set"
  Include {
    Options {
      signature = MD5
      compression=GZIP
    }

    File = /etc
    File = /root
    File = /home
    File = /usr/local/bin
    File = /opt 
    File = /var
  }

# If you backup the root directory, the following two excluded
#   files can be useful
  Exclude {
    File = /var/lib/bacula
    File = /nonexistant/path/to/file/archive/dir
    File = /proc
    File = /tmp
    File = /.journal
    File = /.fsck
    File = /home/lixeira
  }
}

FileSet {
  Name = "bkp-inventi"
  Include {
    Options {
      signature = MD5
      compression = GZIP
    }
    File = "C:/" 
  }
}

# This is the backup of the catalog
FileSet {
  Name = "Catalog"
  Include {
    Options {
      signature = MD5
    }
    File = "/var/lib/bacula/bacula.sql"
  }
}


###### SECAO Schedule  ######################################
# 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 mon-sat at 21:00
#  Run = Incremental mon-sat at 23:05
}

Schedule {
  Name = "ag-mensal"
  Run = Differential 1st sun at 00:10
}

# This schedule does the catalog. It starts after the WeeklyCycle
Schedule {
  Name = "WeeklyCycleAfterBackup"
  Run = Full sun-sat at 23:10
}


###### SECAO Clientes ###########################################
# Client (File Services) to backup
Client {
  Name = servidor-fd
  Address = 10.0.0.254
  FDPort = 9102
  Catalog = BACKUP REDE
  Password = "VA9GJFY2DVdFHg4TLSri-dSsPc5TKGWf8"          # password for FileDaemon
  File Retention = 30 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}

###### SECAO Storage  ###########################################
# Definition of file storage device
Storage {
  Name = BACKUP REDE
# Do not use "localhost" here    
  Address = 10.0.0.254                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "X9qgGBNF25-Aq7aAAwHxcNil8aW0tazni"
  Device = FileStorage
  Media Type = File
}


###### SECAO Catalogo  ###########################################
# Generic catalog service
Catalog {
  Name = BACKUP REDE
# Uncomment the following line if you want the dbi driver
# dbdriver = "dbi:sqlite3"; dbaddress = 10.0.0.254; dbport =  
  dbname = "bacula"; DB Address = ""; dbuser = "bacula"; dbpassword = "ky3I4OLofZpv"
}


###### SECAO Messages  ###########################################
# Reasonable message delivery -- send most everything to email address
#  and to the console
Messages {
  Name = padrao
  mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Mexbras-Bacula\) \<%r\>\" -s \"Mexbras - Bacula: %t %e of %c %l\" %r"
  operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Mexbras - Bacula: Intervention needed for %j\" %r"
  mail = MEU EMAIL = all, !skipped            
  #mail = root@localhost = all, !skipped            
  operator = root@localhost = mount
  console = all, !skipped, !saved
  append = "/var/lib/bacula/log" = all, !skipped
}
Messages {
Name = Standard
catalog = all, !skipped, !saved
}
# Message delivery for daemon messages (no job).
Messages {
  Name = Daemon
  mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
  mail = root@localhost = all, !skipped            
  console = all, !skipped, !saved
  append = "/var/lib/bacula/log" = all, !skipped
}
###### SECAO POOL  ###########################################
# Default pool definition
Pool {
  Name = BACKUP REDE
  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 = Backup
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 20 days          # one year
  Maximum Volume Bytes = 500G         # Limit Volume size to something reasonable
  Maximum Volumes = 6                 # 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 = servidor-mon
  Password = "u7W9_Fj020HcxDfXQ6fmnlPab3-sYx2gs"
  CommandACL = status, .status
}

O Erro que dá qndo reinicio ele, acontecesse isso:

 ERROR TERMINATION at dird_conf.c:1614
Attempt to define second pool resource named "BACKUPREDE" is not permitted.

HELP ME PLEASE!!!!!!

Glauber Vieira

unread,
Feb 1, 2016, 12:59:54 PM2/1/16
to bacula-backup-pt-br
Lucas,

Boa Tarde!

Primeiramente, seria interessante você mudar a nomenclatura dos parâmetros do Bacula, verifiquei que você está utilizando o termo "BACKUP REDE" para tudo, Storage, catalogo, Pool.

Seria ideal colar uma nomenclatura que diferencia o tipo de recurso, ex.:


Storage {
  Name = Storage01
# Do not use "localhost" here    
  Address = 10.0.0.254                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "X9qgGBNF25-Aq7aAAwHxcNil8aW0tazni"
  Device = FileStorage
  Media Type = File
}


###### SECAO Catalogo  ###########################################
# Generic catalog service
Catalog {
  Name = BACKUP REDE
# Uncomment the following line if you want the dbi driver
# dbdriver = "dbi:sqlite3"; dbaddress = 10.0.0.254; dbport =  
  dbname = "bacula"; DB Address = ""; dbuser = "bacula"; dbpassword = "ky3I4OLofZpv"
}

Pool {
  Name = PoolDiario   # Você pode utilizar também. ex.: PoolSemanal ou PoolMensal
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 365 days         # one year
}


Não acho interessante mudar o nome do catalogo, porque provavelmente daria problema.

Tenta organizar essa nomenclatura e depois manda o resultado pra gente.

Com a mudança de nome fica mais fácil de identificar onde está o problema.


O erro que está aparecendo é que tem 2 pools com o mesmo nome, isso eu pude identificar.

# Default pool definition
Pool {
  Name = BACKUP REDE
  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 = BACKUP REDE
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 20 days          # one year
  Maximum Volume Bytes = 500G         # Limit Volume size to something reasonable
  Maximum Volumes = 6                 # Limit number of Volumes in Pool
}



Espero ter ajudado.

Atenciosamente,

Glauber Vieira


--
Você recebeu essa mensagem porque está inscrito no grupo "Bacula Backup-Pt-Br" dos Grupos do Google.
Para cancelar inscrição nesse grupo e parar de receber e-mails dele, envie um e-mail para bacula-backup-p...@googlegroups.com.
Para postar nesse grupo, envie um e-mail para bacula-ba...@googlegroups.com.
Acesse esse grupo em https://groups.google.com/group/bacula-backup-pt-br.
Para ver essa discussão na Web, acesse https://groups.google.com/d/msgid/bacula-backup-pt-br/4b4e85a9-2a7e-4e85-8f30-797c73433bb4%40googlegroups.com.
Para mais opções, acesse https://groups.google.com/d/optout.

Lucas A. Antonio

unread,
Feb 2, 2016, 6:26:20 AM2/2/16
to Bacula Backup-Pt-Br
Glauber, Bom Dia.

Obrigado até aqui pela ajuda.

O erro que está aparecendo é esse agora:

root@servidor:~# /etc/init.d/bacula-director restart
 * Stopping Bacula Director...                                           [ OK ]
 * Starting Bacula Director...                                                  02-Fev 08:21 bacula-dir: ERROR TERMINATION at dird_conf.c:1614
Attempt to define second director resource named "servidor-dir" is not permitted.
                                                                         [fail]



Meu Diretor ficou assim após alteração solicitada:

#  For Bacula release 5.2.5 (26 January 2012) -- ubuntu 12.04

 

Director {                      # define myself

  Name = servidor-dir

  DIRport = 9101                # where we listen for UA connections

  QueryFile = "/etc/bacula/scripts/query.sql"

  WorkingDirectory = "/var/lib/bacula"

  PidDirectory = "/var/run/bacula"

  Maximum Concurrent Jobs = 1

  Password = "pzWhQ1tfdFA48JrTgrfd8ZOjbywK4siVBZfSqagMq/AV"         # Console password

  Messages = Daemon

  DirAddress = 10.0.0.254

}

 

 

###### SECAO JobDefs ######################################

JobDefs {

  Name = "DefaultJob"

  Type = Backup

  Level = Differential

  Client = mexbras-sd 

  Name = Storage01

# Do not use "localhost" here    

  Address = 10.0.0.254                # N.B. Use a fully qualified name here

  SDPort = 9103

  Password = "X9qgGBNF25-Aq7aAAwHxcNil8aW0tazni"

  Device = FileStorage

  Media Type = File

}

 

 

###### SECAO Catalogo  ###########################################

# Generic catalog service

Catalog {

  Name = BackupCatalog

  Name = PoolDiario

  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 = PoolSemanal

  Catalog = BackupCatalog

  Password = "VA9GJFY2DVdFHg4TLSri-dSsPc5TKGWf8"          # password for FileDaemon

  File Retention = 30 days            # 30 days

  Job Retention = 6 months            # six months

  AutoPrune = yes                     # Prune expired Jobs/Files

}

 

###### SECAO Storage  ###########################################

# Definition of file storage device

Storage {

  Name = Storage02

# Do not use "localhost" here    

  Address = 10.0.0.254                # N.B. Use a fully qualified name here

  SDPort = 9103

  Password = "X9qgGBNF25-Aq7aAAwHxcNil8aW0tazni"

  Device = FileStorage

  Media Type = File

}

 

 

###### SECAO Catalogo  ###########################################

# Generic catalog service

Catalog {

  Name = BackupCatalog

  Name = PoolMensal

  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 = PoolSemanal2

Glauber Vieira

unread,
Feb 2, 2016, 7:37:47 AM2/2/16
to bacula-backup-pt-br
Lucas,

Bom dia!

O recurso Director está repetido, por isso o erro. 

Comente ou remova a parte repetida.

Director {                      # define myself

  Name = servidor-dir

  DIRport = 9101                # where we listen for UA connections

  QueryFile = "/etc/bacula/scripts/query.sql"

  WorkingDirectory = "/var/lib/bacula"

  PidDirectory = "/var/run/bacula"

  Maximum Concurrent Jobs = 1

  Password = "pzWhQ1tfdFA48JrTgrfd8ZOjbywK4siVBZfSqagMq/AV"         # Console password

  Messages = Daemon

  DirAddress = 10.0.0.254

}


Atenciosamente,

Glauber Vieira


--
Você recebeu essa mensagem porque está inscrito no grupo "Bacula Backup-Pt-Br" dos Grupos do Google.
Para cancelar inscrição nesse grupo e parar de receber e-mails dele, envie um e-mail para bacula-backup-p...@googlegroups.com.
Para postar nesse grupo, envie um e-mail para bacula-ba...@googlegroups.com.
Acesse esse grupo em https://groups.google.com/group/bacula-backup-pt-br.

Lucas A. Antonio

unread,
Feb 2, 2016, 11:13:11 AM2/2/16
to Bacula Backup-Pt-Br
Certo Glauber,

Onde exatamente dentro do Diretor tenho que alterar, apagar e não repetir?

Desculpa, ñ entendi direito.
Pode detalhar?



Em segunda-feira, 1 de fevereiro de 2016 15:29:42 UTC-2, Lucas A. Antonio escreveu:

Glauber Vieira

unread,
Feb 2, 2016, 12:05:09 PM2/2/16
to bacula-backup-pt-br
Lucas, Deixe seu arquivo conforme abaixo. Lembro que não fiz nenhuma alteração, apenas organizei o arquivo.

Ajuste o e-mail que será utilizado no Recurso "Messagens", pois não está com um e-mail válido. Está destacado em vermelho.



#  For Bacula release 5.2.5 (26 January 2012) -- ubuntu 12.04

 

Director {                      

  Name = servidor-dir

  DIRport = 9101                

  QueryFile = "/etc/bacula/scripts/query.sql"

  WorkingDirectory = "/var/lib/bacula"

  PidDirectory = "/var/run/bacula"

  Maximum Concurrent Jobs = 1

  Password = "pzWhQ1tfdFA48JrTgrfd8ZOjbywK4siVBZfSqagMq/AV"         # Console password

  Messages = Daemon

  DirAddress = 10.0.0.254

}

 

 

###### SECAO JobDefs ######################################

JobDefs {

  Name = "DefaultJob"

  Type = Backup

  Level = Differential

  Client = mexbras-sd 

  Name = Storage01

# Do not use "localhost" here    

  Address = 10.0.0.254                # N.B. Use a fully qualified name here

  SDPort = 9103

  Password = "X9qgGBNF25-Aq7aAAwHxcNil8aW0tazni"

  Device = FileStorage

  Media Type = File

}

 

 

###### SECAO Catalogo  ###########################################

# Generic catalog service

Catalog {

  Name = BackupCatalog

# Uncomment the following line if you want the dbi driver

# dbdriver = "dbi:sqlite3"; dbaddress = 10.0.0.254; dbport =  

  dbname = "bacula"; DB Address = ""; dbuser = "bacula"; dbpassword = "ky3I4OLofZpv"

}

 

 

###### SECAO Messages  ###########################################

# Reasonable message delivery -- send most everything to email address and to the console

#

Messages {

  Name = padrao

  mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Mexbras-Bacula\) \<%r\>\" -s \"Mexbras - Bacula: %t %e of %c %l\" %r"

  operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Mexbras - Bacula: Intervention needed for %j\" %r"

  mail = meu_email = all, !skipped            

  #mail = root@localhost = all, !skipped            

  operator = root@localhost = mount

  console = all, !skipped, !saved

  append = "/var/lib/bacula/log" = all, !skipped

}

Messages {

Name = Standard

catalog = all, !skipped, !saved

}

# Message delivery for daemon messages (no job).

Messages {

  Name = Daemon

  mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"

  mail = root@localhost = all, !skipped            

  console = all, !skipped, !saved

  append = "/var/lib/bacula/log" = all, !skipped

}


###### SECAO POOL  ###########################################

# Default pool definition

Pool {

  Name = PoolDiario

  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 = PoolSemanal

  Pool Type = Backup

  Recycle = yes                                  # Bacula can automatically recycle Volumes

  AutoPrune = yes                               # Prune expired volumes

  Volume Retention = 20 days              # one year

  Maximum Volume Bytes = 500G        # Limit Volume size to something reasonable

  Maximum Volumes = 6                      # 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 = servidor-mon

  Password = "u7W9_Fj020HcxDfXQ6fmnlPab3-sYx2gs"

  CommandACL = status, .status

}



Atenciosamente,

Glauber Vieira



--
Você recebeu essa mensagem porque está inscrito no grupo "Bacula Backup-Pt-Br" dos Grupos do Google.
Para cancelar inscrição nesse grupo e parar de receber e-mails dele, envie um e-mail para bacula-backup-p...@googlegroups.com.
Para postar nesse grupo, envie um e-mail para bacula-ba...@googlegroups.com.
Acesse esse grupo em https://groups.google.com/group/bacula-backup-pt-br.

Lucas A. Antonio

unread,
Feb 2, 2016, 1:32:14 PM2/2/16
to Bacula Backup-Pt-Br
Boa Tarde.

Agora, fiz todas as mudanças e me aparece esse outro erro:

root@servidor:~# /etc/init.d/bacula-director restart
 * Stopping Bacula Director...                             [ OK ]
 * Starting Bacula Director...                                    02-Fev 15:21 bacula-dir: ERROR TERMINATION at parse_conf.c:479
Config error: Could not find config Resource mexbras-sd referenced on line 23 :   Client = mexbras-sd


            : line 23, col 21 of file /etc/bacula/bacula-dir.conf
  Client = mexbras-sd


Em segunda-feira, 1 de fevereiro de 2016 15:29:42 UTC-2, Lucas A. Antonio escreveu:

Glauber Vieira

unread,
Feb 2, 2016, 1:38:40 PM2/2/16
to bacula-backup-pt-br
O cliente "mexbras"  não existe. Você deve remover a linha em vermelho ou criar o cliente.


###### SECAO JobDefs ######################################

JobDefs {

  Name = "DefaultJob"

  Type = Backup

  Level = Differential

  Client = mexbras-sd 




Atenciosamente,

Glauber Vieira



--
Você recebeu essa mensagem porque está inscrito no grupo "Bacula Backup-Pt-Br" dos Grupos do Google.
Para cancelar inscrição nesse grupo e parar de receber e-mails dele, envie um e-mail para bacula-backup-p...@googlegroups.com.
Para postar nesse grupo, envie um e-mail para bacula-ba...@googlegroups.com.
Acesse esse grupo em https://groups.google.com/group/bacula-backup-pt-br.

Lucas A. Antonio

unread,
Feb 2, 2016, 1:48:25 PM2/2/16
to Bacula Backup-Pt-Br
Mano...
Vc deve estar nervoso já com meus erros..kkk

Agora deu isso:


root@servidor:~# /etc/init.d/bacula-director restart
 * Stopping Bacula Director...                                           [ OK ]
 * Starting Bacula Director...                                                  02-Fev 15:44 bacula-dir: ERROR TERMINATION at parse_conf.c:531
Config error: Could not find config Resource "storage" referenced on line 26 :   Storage = File


            : line 26, col 17 of file /etc/bacula/bacula-dir.conf
  Storage = File


Em segunda-feira, 1 de fevereiro de 2016 15:29:42 UTC-2, Lucas A. Antonio escreveu:

Glauber Vieira

unread,
Feb 2, 2016, 2:04:33 PM2/2/16
to bacula-backup-pt-br
O nome do seu Storage é 'Storage01' e não 'File'. Tem que mudar de  "Storage = File" para "Storage = Storage01".

Verifique a imagem abaixo que vai te ajudar.


​Atenciosamente,

Glauber Vieira



--
Você recebeu essa mensagem porque está inscrito no grupo "Bacula Backup-Pt-Br" dos Grupos do Google.
Para cancelar inscrição nesse grupo e parar de receber e-mails dele, envie um e-mail para bacula-backup-p...@googlegroups.com.
Para postar nesse grupo, envie um e-mail para bacula-ba...@googlegroups.com.
Acesse esse grupo em https://groups.google.com/group/bacula-backup-pt-br.
Reply all
Reply to author
Forward
0 new messages