Configuracion bacula

Maykel Franco Hernández maykel en maykel.es
Jue Mar 4 09:10:55 GMT 2010


> On 3/3/2010 7:09 AM, Maykel Franco Hernández wrote:
>
>> root en bacula:/etc/bacula# /etc/init.d/bacula-director restart
>>   * Stopping Bacula Director...
>>
>>              [ OK ]
>>   * Starting Bacula Director...
>>
>>                     03-mar 13:06 bacula-dir: ERROR TERMINATION at
>> parse_conf.c:483
>> Config error: Could not find config Resource Daemon referenced on line 8
>> :
>>    Messages = Daemon
>>
>>
>>              : line 8, col 20 of file /etc/bacula/bacula-dir.conf
>>    Messages = Daemon
>>
>
> Messages = Daemon está mal. Debería ser algo como lo siguiente:
>
> Messages {
>    Name = Daemon
>    mailcommand = ""
>    mail = direccion en correo.cu = all, !skipped
>    console = all, !skipped, !saved
>    append = "/var/bacula/working/log" = all, !skipped
> }
>
>> He seguido este manual:
>
> He estado escribiendo algunos artículos al respecto en una revista de
> SWL Argentina en la cual colaboro. Los enlaces:
>   - http://infosertec.loquefaltaba.com/tuxinfo21.pdf
>   - http://infosertec.loquefaltaba.com/tuxinfo24.pdf
> --
> Saludos
> ReynierPM
>
> --
> ubuntu-es mailing list
> ubuntu-es en lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-es
>



Hola muy buenas, he conseguido configurar todos los ficheros de
coniguración y ahora parece que entiendo todo un poco más despues de ver
los ficheros mil veces jejeje. El caso que el error que me reporta ahora
al intentar hacer un backup o al comprobar todo entrando con "bconsole"
luego le meto "status" y le doi a la opcion "2" que es el Storage y me
reporta el error:

Please use the "label"  command to create a new Volume for:
    Storage:      "FileStorage" (/home/bacula)
    Pool:         Default
    Media type:   File

No entiendo que puede estar fallando pero ese directorio existe y el pool
está definido abajo. Dejo abajo el bacula-dir.conf:

Director {                            # define myself
  Name = director_admitido1
  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
  Messages = Daemon
  Password = "password_chorrotronica_para_el_director_admitido1"         #
Console password
  DirAddress = 127.0.0.1
}



Client {
  Name = nombre_del_file-daemon
  Address = 127.0.0.1
  FDPort = 9102
  Catalog = MyCatalog
  Password = "password_chorrotronica_para_el_director_admitido1" # pwd for FD
  File Retention = 30 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}

Storage {
  Name = nombre_del_storage-daemon
  Address = 127.0.0.1
  SDPort = 9103
  Password = "password_chorrotronica_para_el_director_admitido1"
  Device = FileStorage
  Media Type = File
}



Catalog {
  Name = MyCatalog
  dbname = bacula; DB Address = "" ; user = bacula; password = "XXXXX"


FileSet {
  Name = "configuracion sistema"
  Include {
    File = /etc
    File = /var
    Options {
      signature = MD5
    }
  }
  Exclude {
    File = /var/log
    File = /var/cache
    File = /var/tmp
  }
}

Schedule {
  Name = "CicloSemanal"
  Run = Incremental mon-sat at 01:05
  Run = Full sun at 01:05
}
Schedule {
  Name = "Diario"
  Run = Full thu at 10:06
}

JobDefs {
  Name = "estado del sistema"
  Enabled = yes
  Type = Backup
  Level = Incremental
  Client = nombre_del_file-daemon
  FileSet = "configuracion sistema"
  Schedule = "CicloSemanal"
  Storage = nombre_del_storage-daemon
  Messages = Standard
  Pool = Default
  Priority = 10
}

Job {
  Name = "Backup Usuarios"
  JobDefs = "estado del sistema"
  Write Bootstrap = "/var/lib/bacula/importante_homes.bsr"
}

JobDefs {
  Name = "copia del sistema"
  Enabled = yes
  Type = Backup
  Level = Full
  Client = nombre_del_file-daemon
  FileSet = "configuracion sistema"
  Schedule = "Diario"
  Storage = nombre_del_storage-daemon
  Messages = Standard
  Pool = Default
  Priority = 1
}

Job {
  Name = "Backup etc"
  JobDefs = "copia del sistema"
  Pool = Default
  Write Bootstrap = "/var/lib/bacula/importante_etc.bsr"
}

Messages {
  Name = Standard

  mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\)
\<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
  operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\)
\<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
  mail = root en localhost = all, !skipped
  operator = root en 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/lib/bacula/log" = all, !skipped
}



# 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 en localhost = all, !skipped
  console = all, !skipped, !saved
  append = "/var/lib/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
}

Console {
  Name = bacula-mon
  Password = "password_chorrotronica_para_el_director_admitido1"
  CommandACL = status, .status
}


Un saludo y gracias de antemano.





-- 
Maykel Administrador de Sistemas




Más información sobre la lista de distribución ubuntu-es