Re: Probelmas respaldando equipos remotos en Bacula

2020-01-08 Por tema Fran Torres
Buenas,

el problema entonces... Podría ser el que te comentaba antes de los
dispositivos? o

Fran.

2020-01-08 23:33 GMT+01:00, Julián Daich :
>
>
> El 8/1/20 a las 23:16, Fran Torres escribió:
>> Buenas,
>
>>   Otra cosa que se me ocurre... dices que en local funciona. Los
>> clientes, están dentro de la misma red LAN entiendo; no?
>>
>
> Hola,
>
> Sí están todos dentro de una VPN de la que el director es también el
> servidor. Los clientes se conectan con el director, eso ya lo verifiqué,
> pero se quedan colgados esperando conectarse con las unidades del
> almacenamiento. Son dos procesos distintos a uno lo gestiona bacula-sd y
> al otro bacula-fd.
>
> Saludos,
>
> Julián
>
>> Fran.
>>
>> 2020-01-08 22:50 GMT+01:00, Julián Daich :
>>>
>>>
>>> El 8/1/20 a las 20:52, Fran Torres escribió:
 Buenas,

 a riesgo de meter la pata, pregunto:
 en /dev/, tienes los dispositivos que especificas en el fichero conf
 del director?
>>>
>>> Hola Fran,
>>>
>>> En principio sí
 ejemplo: /dev/lto4.
>>>
>>> Esa unidad está comentada. Viene por defecto en la configuración, pero
>>> no la uso.
>>>
 lo que tienes en /mnt, está montado?
>>>
>>> Sí, Está montado en el director y funciona para los respaldos locales.
>>>
 También veo que faltan algunas cosas por configurar,
>>>
>>> ¿ Por ejemplo que?
>>>
 tiene pinta de
 que muchas cosas tienen la configuración; bien de ejemplo, o bien por
 defecto.

>>>
>>> Configuré solo lo que uso y entiendo. El resto dejé lo que aparece por
>>> defecto¿ recomiendas preparar a partir de un archivo en limpio?
>>>
>>> Saludos,
>>>
>>> Juliań
>>>
 Fran.

 2020-01-08 20:10 GMT+01:00, Julian Daich :
> Hola
>
> Tengo porblemas para hacer que Bacula respalde cleintes remotos. Los
> clientes remotos se conectan al director, pero se quedan colgando
> esperando el almacenamiento. Con el cleinte local no ocurre, solo con
> los remotos. Creo que el problema está en bacula-sd.conf. Pego abajo
> los archivos de configuración.
>
> Saludos,
>
> Julián
>
> En servdidor local
>
> bacula-dir.conf
>
> #
> # Default Bacula Director Configuration file
> #
> #  The only thing that MUST be changed is to add one or more
> #   file or directory names in the Include directive of the
> #   FileSet resource.
> #
> #  For Bacula release 9.4.2 (04 February 2019) -- debian buster/sid
> #
> #  You might also want to change the default email address
> #   from root to your address.  See the "mail" and "operator"
> #   directives in the Messages resource.
> #
> # Copyright (C) 2000-2017 Kern Sibbald
> # License: BSD 2-Clause; see file LICENSE-FOSS
> #
>
> Director {# define myself
>   Name = local-1-dir
> #  Name = local-1.us-central1-a.c.lindswp.internal-dir
>   DIRport = 9101# where we listen for UA connections
>   QueryFile = "/etc/bacula/scripts/query.sql"
>   WorkingDirectory = "/var/lib/bacula"
>   PidDirectory = "/run/bacula"
>   Maximum Concurrent Jobs = 20
>   Password = "AAOV_D" # Console password
>   Messages = Daemon
>   DirAddress = 10.8.0.1
> }
>
> JobDefs {
>   Name = "DefaultJob"
>   Type = Backup
>   Level = Incremental
>   Client = local-1-fd
> #  Client = local-1.us-central1-a.c.lindswp.internal-fd
>   FileSet = "Full Set"
>   Schedule = "WeeklyCycle"
>   Storage = File1
>   Messages = Standard
>   Pool = File
>   SpoolAttributes = yes
>   Priority = 10
>   Write Bootstrap = "/var/lib/bacula/%c.bsr"
> }
>
>
> #
> # 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 = "BackupLocalFiles"
>   Client = local-1-fd
> #  Client = local-1.us-central1-a.c.lindswp.internal2-fd
>   JobDefs = "DefaultJob"
> }
>
> Job {
>   Name = "BackupKalipso"
>   Client = kalipso-fd
>   JobDefs = "DefaultJob"
> }
>
> Job {
>   Name = "BackupCertBack-1"
>   Client = certback-1-fd
>   JobDefs = "DefaultJob"
> }
>
>
> #Job {
> #  Name = "BackupClient1-to-Tape"
> #  JobDefs = "DefaultJob"
> #  Storage = LTO-4
> #  Spool Data = yes# Avoid shoe-shine
> #  Pool = Default
> #}
>
> #}
>
> # 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 
>   RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup.pl
> MyCatalog"
>   # This deletes 

Re: Probelmas respaldando equipos remotos en Bacula

2020-01-08 Por tema Julián Daich



El 8/1/20 a las 23:16, Fran Torres escribió:
> Buenas,

>   Otra cosa que se me ocurre... dices que en local funciona. Los
> clientes, están dentro de la misma red LAN entiendo; no?
>

Hola,

Sí están todos dentro de una VPN de la que el director es también el
servidor. Los clientes se conectan con el director, eso ya lo verifiqué,
pero se quedan colgados esperando conectarse con las unidades del
almacenamiento. Son dos procesos distintos a uno lo gestiona bacula-sd y
al otro bacula-fd.

Saludos,

Julián

> Fran.
> 
> 2020-01-08 22:50 GMT+01:00, Julián Daich :
>>
>>
>> El 8/1/20 a las 20:52, Fran Torres escribió:
>>> Buenas,
>>>
>>> a riesgo de meter la pata, pregunto:
>>> en /dev/, tienes los dispositivos que especificas en el fichero conf
>>> del director?
>>
>> Hola Fran,
>>
>> En principio sí
>>> ejemplo: /dev/lto4.
>>
>> Esa unidad está comentada. Viene por defecto en la configuración, pero
>> no la uso.
>>
>>> lo que tienes en /mnt, está montado?
>>
>> Sí, Está montado en el director y funciona para los respaldos locales.
>>
>>> También veo que faltan algunas cosas por configurar,
>>
>> ¿ Por ejemplo que?
>>
>>> tiene pinta de
>>> que muchas cosas tienen la configuración; bien de ejemplo, o bien por
>>> defecto.
>>>
>>
>> Configuré solo lo que uso y entiendo. El resto dejé lo que aparece por
>> defecto¿ recomiendas preparar a partir de un archivo en limpio?
>>
>> Saludos,
>>
>> Juliań
>>
>>> Fran.
>>>
>>> 2020-01-08 20:10 GMT+01:00, Julian Daich :
 Hola

 Tengo porblemas para hacer que Bacula respalde cleintes remotos. Los
 clientes remotos se conectan al director, pero se quedan colgando
 esperando el almacenamiento. Con el cleinte local no ocurre, solo con
 los remotos. Creo que el problema está en bacula-sd.conf. Pego abajo
 los archivos de configuración.

 Saludos,

 Julián

 En servdidor local

 bacula-dir.conf

 #
 # Default Bacula Director Configuration file
 #
 #  The only thing that MUST be changed is to add one or more
 #   file or directory names in the Include directive of the
 #   FileSet resource.
 #
 #  For Bacula release 9.4.2 (04 February 2019) -- debian buster/sid
 #
 #  You might also want to change the default email address
 #   from root to your address.  See the "mail" and "operator"
 #   directives in the Messages resource.
 #
 # Copyright (C) 2000-2017 Kern Sibbald
 # License: BSD 2-Clause; see file LICENSE-FOSS
 #

 Director {# define myself
   Name = local-1-dir
 #  Name = local-1.us-central1-a.c.lindswp.internal-dir
   DIRport = 9101# where we listen for UA connections
   QueryFile = "/etc/bacula/scripts/query.sql"
   WorkingDirectory = "/var/lib/bacula"
   PidDirectory = "/run/bacula"
   Maximum Concurrent Jobs = 20
   Password = "AAOV_D" # Console password
   Messages = Daemon
   DirAddress = 10.8.0.1
 }

 JobDefs {
   Name = "DefaultJob"
   Type = Backup
   Level = Incremental
   Client = local-1-fd
 #  Client = local-1.us-central1-a.c.lindswp.internal-fd
   FileSet = "Full Set"
   Schedule = "WeeklyCycle"
   Storage = File1
   Messages = Standard
   Pool = File
   SpoolAttributes = yes
   Priority = 10
   Write Bootstrap = "/var/lib/bacula/%c.bsr"
 }


 #
 # 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 = "BackupLocalFiles"
   Client = local-1-fd
 #  Client = local-1.us-central1-a.c.lindswp.internal2-fd
   JobDefs = "DefaultJob"
 }

 Job {
   Name = "BackupKalipso"
   Client = kalipso-fd
   JobDefs = "DefaultJob"
 }

 Job {
   Name = "BackupCertBack-1"
   Client = certback-1-fd
   JobDefs = "DefaultJob"
 }


 #Job {
 #  Name = "BackupClient1-to-Tape"
 #  JobDefs = "DefaultJob"
 #  Storage = LTO-4
 #  Spool Data = yes# Avoid shoe-shine
 #  Pool = Default
 #}

 #}

 # 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 
   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 

Re: Probelmas respaldando equipos remotos en Bacula

2020-01-08 Por tema Fran Torres
Buenas,

no puedo recomendar usar un fichero en limpio, puesto que no conozco
el programa... Pero sí jugar un poco con las opciones o las cosas que
trae...
  Otra cosa que se me ocurre... dices que en local funciona. Los
clientes, están dentro de la misma red LAN entiendo; no?

Fran.

2020-01-08 22:50 GMT+01:00, Julián Daich :
>
>
> El 8/1/20 a las 20:52, Fran Torres escribió:
>> Buenas,
>>
>> a riesgo de meter la pata, pregunto:
>> en /dev/, tienes los dispositivos que especificas en el fichero conf
>> del director?
>
> Hola Fran,
>
> En principio sí
>> ejemplo: /dev/lto4.
>
> Esa unidad está comentada. Viene por defecto en la configuración, pero
> no la uso.
>
>> lo que tienes en /mnt, está montado?
>
> Sí, Está montado en el director y funciona para los respaldos locales.
>
>> También veo que faltan algunas cosas por configurar,
>
> ¿ Por ejemplo que?
>
>> tiene pinta de
>> que muchas cosas tienen la configuración; bien de ejemplo, o bien por
>> defecto.
>>
>
> Configuré solo lo que uso y entiendo. El resto dejé lo que aparece por
> defecto¿ recomiendas preparar a partir de un archivo en limpio?
>
> Saludos,
>
> Juliań
>
>> Fran.
>>
>> 2020-01-08 20:10 GMT+01:00, Julian Daich :
>>> Hola
>>>
>>> Tengo porblemas para hacer que Bacula respalde cleintes remotos. Los
>>> clientes remotos se conectan al director, pero se quedan colgando
>>> esperando el almacenamiento. Con el cleinte local no ocurre, solo con
>>> los remotos. Creo que el problema está en bacula-sd.conf. Pego abajo
>>> los archivos de configuración.
>>>
>>> Saludos,
>>>
>>> Julián
>>>
>>> En servdidor local
>>>
>>> bacula-dir.conf
>>>
>>> #
>>> # Default Bacula Director Configuration file
>>> #
>>> #  The only thing that MUST be changed is to add one or more
>>> #   file or directory names in the Include directive of the
>>> #   FileSet resource.
>>> #
>>> #  For Bacula release 9.4.2 (04 February 2019) -- debian buster/sid
>>> #
>>> #  You might also want to change the default email address
>>> #   from root to your address.  See the "mail" and "operator"
>>> #   directives in the Messages resource.
>>> #
>>> # Copyright (C) 2000-2017 Kern Sibbald
>>> # License: BSD 2-Clause; see file LICENSE-FOSS
>>> #
>>>
>>> Director {# define myself
>>>   Name = local-1-dir
>>> #  Name = local-1.us-central1-a.c.lindswp.internal-dir
>>>   DIRport = 9101# where we listen for UA connections
>>>   QueryFile = "/etc/bacula/scripts/query.sql"
>>>   WorkingDirectory = "/var/lib/bacula"
>>>   PidDirectory = "/run/bacula"
>>>   Maximum Concurrent Jobs = 20
>>>   Password = "AAOV_D" # Console password
>>>   Messages = Daemon
>>>   DirAddress = 10.8.0.1
>>> }
>>>
>>> JobDefs {
>>>   Name = "DefaultJob"
>>>   Type = Backup
>>>   Level = Incremental
>>>   Client = local-1-fd
>>> #  Client = local-1.us-central1-a.c.lindswp.internal-fd
>>>   FileSet = "Full Set"
>>>   Schedule = "WeeklyCycle"
>>>   Storage = File1
>>>   Messages = Standard
>>>   Pool = File
>>>   SpoolAttributes = yes
>>>   Priority = 10
>>>   Write Bootstrap = "/var/lib/bacula/%c.bsr"
>>> }
>>>
>>>
>>> #
>>> # 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 = "BackupLocalFiles"
>>>   Client = local-1-fd
>>> #  Client = local-1.us-central1-a.c.lindswp.internal2-fd
>>>   JobDefs = "DefaultJob"
>>> }
>>>
>>> Job {
>>>   Name = "BackupKalipso"
>>>   Client = kalipso-fd
>>>   JobDefs = "DefaultJob"
>>> }
>>>
>>> Job {
>>>   Name = "BackupCertBack-1"
>>>   Client = certback-1-fd
>>>   JobDefs = "DefaultJob"
>>> }
>>>
>>>
>>> #Job {
>>> #  Name = "BackupClient1-to-Tape"
>>> #  JobDefs = "DefaultJob"
>>> #  Storage = LTO-4
>>> #  Spool Data = yes# Avoid shoe-shine
>>> #  Pool = Default
>>> #}
>>>
>>> #}
>>>
>>> # 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 
>>>   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 = "RestoreLocalFiles"
>>>   Type = Restore
>>>   Client=local-1-fd
>>> #  Client=local-1.us-central1-a.c.lindswp.internal-fd
>>>   Storage = File1
>>> # The FileSet and Pool directives are not used by Restore Jobs
>>> # but must not be removed
>>>   FileSet="Full Set"
>>>   Pool = File
>>>   Messages = Standard
>>>   Where = 

Re: Probelmas respaldando equipos remotos en Bacula

2020-01-08 Por tema Julián Daich



El 8/1/20 a las 20:52, Fran Torres escribió:
> Buenas,
> 
> a riesgo de meter la pata, pregunto:
> en /dev/, tienes los dispositivos que especificas en el fichero conf
> del director?

Hola Fran,

En principio sí
> ejemplo: /dev/lto4.

Esa unidad está comentada. Viene por defecto en la configuración, pero
no la uso.

> lo que tienes en /mnt, está montado?

Sí, Está montado en el director y funciona para los respaldos locales.

> También veo que faltan algunas cosas por configurar, 

¿ Por ejemplo que?

> tiene pinta de
> que muchas cosas tienen la configuración; bien de ejemplo, o bien por
> defecto.
> 

Configuré solo lo que uso y entiendo. El resto dejé lo que aparece por
defecto¿ recomiendas preparar a partir de un archivo en limpio?

Saludos,

Juliań

> Fran.
> 
> 2020-01-08 20:10 GMT+01:00, Julian Daich :
>> Hola
>>
>> Tengo porblemas para hacer que Bacula respalde cleintes remotos. Los
>> clientes remotos se conectan al director, pero se quedan colgando
>> esperando el almacenamiento. Con el cleinte local no ocurre, solo con
>> los remotos. Creo que el problema está en bacula-sd.conf. Pego abajo
>> los archivos de configuración.
>>
>> Saludos,
>>
>> Julián
>>
>> En servdidor local
>>
>> bacula-dir.conf
>>
>> #
>> # Default Bacula Director Configuration file
>> #
>> #  The only thing that MUST be changed is to add one or more
>> #   file or directory names in the Include directive of the
>> #   FileSet resource.
>> #
>> #  For Bacula release 9.4.2 (04 February 2019) -- debian buster/sid
>> #
>> #  You might also want to change the default email address
>> #   from root to your address.  See the "mail" and "operator"
>> #   directives in the Messages resource.
>> #
>> # Copyright (C) 2000-2017 Kern Sibbald
>> # License: BSD 2-Clause; see file LICENSE-FOSS
>> #
>>
>> Director {# define myself
>>   Name = local-1-dir
>> #  Name = local-1.us-central1-a.c.lindswp.internal-dir
>>   DIRport = 9101# where we listen for UA connections
>>   QueryFile = "/etc/bacula/scripts/query.sql"
>>   WorkingDirectory = "/var/lib/bacula"
>>   PidDirectory = "/run/bacula"
>>   Maximum Concurrent Jobs = 20
>>   Password = "AAOV_D" # Console password
>>   Messages = Daemon
>>   DirAddress = 10.8.0.1
>> }
>>
>> JobDefs {
>>   Name = "DefaultJob"
>>   Type = Backup
>>   Level = Incremental
>>   Client = local-1-fd
>> #  Client = local-1.us-central1-a.c.lindswp.internal-fd
>>   FileSet = "Full Set"
>>   Schedule = "WeeklyCycle"
>>   Storage = File1
>>   Messages = Standard
>>   Pool = File
>>   SpoolAttributes = yes
>>   Priority = 10
>>   Write Bootstrap = "/var/lib/bacula/%c.bsr"
>> }
>>
>>
>> #
>> # 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 = "BackupLocalFiles"
>>   Client = local-1-fd
>> #  Client = local-1.us-central1-a.c.lindswp.internal2-fd
>>   JobDefs = "DefaultJob"
>> }
>>
>> Job {
>>   Name = "BackupKalipso"
>>   Client = kalipso-fd
>>   JobDefs = "DefaultJob"
>> }
>>
>> Job {
>>   Name = "BackupCertBack-1"
>>   Client = certback-1-fd
>>   JobDefs = "DefaultJob"
>> }
>>
>>
>> #Job {
>> #  Name = "BackupClient1-to-Tape"
>> #  JobDefs = "DefaultJob"
>> #  Storage = LTO-4
>> #  Spool Data = yes# Avoid shoe-shine
>> #  Pool = Default
>> #}
>>
>> #}
>>
>> # 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 
>>   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 = "RestoreLocalFiles"
>>   Type = Restore
>>   Client=local-1-fd
>> #  Client=local-1.us-central1-a.c.lindswp.internal-fd
>>   Storage = File1
>> # The FileSet and Pool directives are not used by Restore Jobs
>> # but must not be removed
>>   FileSet="Full Set"
>>   Pool = File
>>   Messages = Standard
>>   Where = /mnt/storage/bacula/restore
>> }
>>
>> Job {
>>   Name = "RestoreKalipso"
>>   Type = Restore
>>   Client=kalipso-fd
>>   Storage = File1
>>   FileSet="Full Set"
>>   Pool = File
>>   Messages = Standard
>>   Where = /mnt/storage/bacula/restore
>> }
>>
>> Job {
>>   Name = "RestoreCertBack-1"
>>   Type = Restore
>>   Client=certback-1-fd
>>   Storage = File1
>>   FileSet="Full Set"
>>   Pool = File
>>   Messages = Standard
>>   Where = /mnt/storage/bacula/restore
>> }
>>
>> # List of files to be backed up
>> FileSet {

Re: Probelmas respaldando equipos remotos en Bacula

2020-01-08 Por tema Fran Torres
Buenas,

a riesgo de meter la pata, pregunto:
en /dev/, tienes los dispositivos que especificas en el fichero conf
del director? ejemplo: /dev/lto4.
lo que tienes en /mnt, está montado?
También veo que faltan algunas cosas por configurar, tiene pinta de
que muchas cosas tienen la configuración; bien de ejemplo, o bien por
defecto.

Fran.

2020-01-08 20:10 GMT+01:00, Julian Daich :
> Hola
>
> Tengo porblemas para hacer que Bacula respalde cleintes remotos. Los
> clientes remotos se conectan al director, pero se quedan colgando
> esperando el almacenamiento. Con el cleinte local no ocurre, solo con
> los remotos. Creo que el problema está en bacula-sd.conf. Pego abajo
> los archivos de configuración.
>
> Saludos,
>
> Julián
>
> En servdidor local
>
> bacula-dir.conf
>
> #
> # Default Bacula Director Configuration file
> #
> #  The only thing that MUST be changed is to add one or more
> #   file or directory names in the Include directive of the
> #   FileSet resource.
> #
> #  For Bacula release 9.4.2 (04 February 2019) -- debian buster/sid
> #
> #  You might also want to change the default email address
> #   from root to your address.  See the "mail" and "operator"
> #   directives in the Messages resource.
> #
> # Copyright (C) 2000-2017 Kern Sibbald
> # License: BSD 2-Clause; see file LICENSE-FOSS
> #
>
> Director {# define myself
>   Name = local-1-dir
> #  Name = local-1.us-central1-a.c.lindswp.internal-dir
>   DIRport = 9101# where we listen for UA connections
>   QueryFile = "/etc/bacula/scripts/query.sql"
>   WorkingDirectory = "/var/lib/bacula"
>   PidDirectory = "/run/bacula"
>   Maximum Concurrent Jobs = 20
>   Password = "AAOV_D" # Console password
>   Messages = Daemon
>   DirAddress = 10.8.0.1
> }
>
> JobDefs {
>   Name = "DefaultJob"
>   Type = Backup
>   Level = Incremental
>   Client = local-1-fd
> #  Client = local-1.us-central1-a.c.lindswp.internal-fd
>   FileSet = "Full Set"
>   Schedule = "WeeklyCycle"
>   Storage = File1
>   Messages = Standard
>   Pool = File
>   SpoolAttributes = yes
>   Priority = 10
>   Write Bootstrap = "/var/lib/bacula/%c.bsr"
> }
>
>
> #
> # 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 = "BackupLocalFiles"
>   Client = local-1-fd
> #  Client = local-1.us-central1-a.c.lindswp.internal2-fd
>   JobDefs = "DefaultJob"
> }
>
> Job {
>   Name = "BackupKalipso"
>   Client = kalipso-fd
>   JobDefs = "DefaultJob"
> }
>
> Job {
>   Name = "BackupCertBack-1"
>   Client = certback-1-fd
>   JobDefs = "DefaultJob"
> }
>
>
> #Job {
> #  Name = "BackupClient1-to-Tape"
> #  JobDefs = "DefaultJob"
> #  Storage = LTO-4
> #  Spool Data = yes# Avoid shoe-shine
> #  Pool = Default
> #}
>
> #}
>
> # 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 
>   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 = "RestoreLocalFiles"
>   Type = Restore
>   Client=local-1-fd
> #  Client=local-1.us-central1-a.c.lindswp.internal-fd
>   Storage = File1
> # The FileSet and Pool directives are not used by Restore Jobs
> # but must not be removed
>   FileSet="Full Set"
>   Pool = File
>   Messages = Standard
>   Where = /mnt/storage/bacula/restore
> }
>
> Job {
>   Name = "RestoreKalipso"
>   Type = Restore
>   Client=kalipso-fd
>   Storage = File1
>   FileSet="Full Set"
>   Pool = File
>   Messages = Standard
>   Where = /mnt/storage/bacula/restore
> }
>
> Job {
>   Name = "RestoreCertBack-1"
>   Type = Restore
>   Client=certback-1-fd
>   Storage = File1
>   FileSet="Full Set"
>   Pool = File
>   Messages = Standard
>   Where = /mnt/storage/bacula/restore
> }
>
> # List of files to be backed up
> FileSet {
>   Name = "Full Set"
>   Include {
> Options {
>   signature = MD5
>   compression = GZIP
> }
> #
> #  Put your list of files here, preceded by 'File =', one per line
> #or include an external list with:
> #
> #File =  #
> #  Note: / backs up everything on the root partition.
> #if you have other partitions such as /usr or /home
> #you will probably want to add them too.
> #
> #  By default this is defined to point to the Bacula binary
> #directory to give a reasonable FileSet to backup to
> #disk storage during initial testing.
> #
> File = 

Probelmas respaldando equipos remotos en Bacula

2020-01-08 Por tema Julian Daich
Hola

Tengo porblemas para hacer que Bacula respalde cleintes remotos. Los
clientes remotos se conectan al director, pero se quedan colgando
esperando el almacenamiento. Con el cleinte local no ocurre, solo con
los remotos. Creo que el problema está en bacula-sd.conf. Pego abajo
los archivos de configuración.

Saludos,

Julián

En servdidor local

bacula-dir.conf

#
# Default Bacula Director Configuration file
#
#  The only thing that MUST be changed is to add one or more
#   file or directory names in the Include directive of the
#   FileSet resource.
#
#  For Bacula release 9.4.2 (04 February 2019) -- debian buster/sid
#
#  You might also want to change the default email address
#   from root to your address.  See the "mail" and "operator"
#   directives in the Messages resource.
#
# Copyright (C) 2000-2017 Kern Sibbald
# License: BSD 2-Clause; see file LICENSE-FOSS
#

Director {# define myself
  Name = local-1-dir
#  Name = local-1.us-central1-a.c.lindswp.internal-dir
  DIRport = 9101# where we listen for UA connections
  QueryFile = "/etc/bacula/scripts/query.sql"
  WorkingDirectory = "/var/lib/bacula"
  PidDirectory = "/run/bacula"
  Maximum Concurrent Jobs = 20
  Password = "AAOV_D" # Console password
  Messages = Daemon
  DirAddress = 10.8.0.1
}

JobDefs {
  Name = "DefaultJob"
  Type = Backup
  Level = Incremental
  Client = local-1-fd
#  Client = local-1.us-central1-a.c.lindswp.internal-fd
  FileSet = "Full Set"
  Schedule = "WeeklyCycle"
  Storage = File1
  Messages = Standard
  Pool = File
  SpoolAttributes = yes
  Priority = 10
  Write Bootstrap = "/var/lib/bacula/%c.bsr"
}


#
# 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 = "BackupLocalFiles"
  Client = local-1-fd
#  Client = local-1.us-central1-a.c.lindswp.internal2-fd
  JobDefs = "DefaultJob"
}

Job {
  Name = "BackupKalipso"
  Client = kalipso-fd
  JobDefs = "DefaultJob"
}

Job {
  Name = "BackupCertBack-1"
  Client = certback-1-fd
  JobDefs = "DefaultJob"
}


#Job {
#  Name = "BackupClient1-to-Tape"
#  JobDefs = "DefaultJob"
#  Storage = LTO-4
#  Spool Data = yes# Avoid shoe-shine
#  Pool = Default
#}

#}

# 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 
  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 = "RestoreLocalFiles"
  Type = Restore
  Client=local-1-fd
#  Client=local-1.us-central1-a.c.lindswp.internal-fd
  Storage = File1
# The FileSet and Pool directives are not used by Restore Jobs
# but must not be removed
  FileSet="Full Set"
  Pool = File
  Messages = Standard
  Where = /mnt/storage/bacula/restore
}

Job {
  Name = "RestoreKalipso"
  Type = Restore
  Client=kalipso-fd
  Storage = File1
  FileSet="Full Set"
  Pool = File
  Messages = Standard
  Where = /mnt/storage/bacula/restore
}

Job {
  Name = "RestoreCertBack-1"
  Type = Restore
  Client=certback-1-fd
  Storage = File1
  FileSet="Full Set"
  Pool = File
  Messages = Standard
  Where = /mnt/storage/bacula/restore
}

# List of files to be backed up
FileSet {
  Name = "Full Set"
  Include {
Options {
  signature = MD5
  compression = GZIP
}
#
#  Put your list of files here, preceded by 'File =', one per line
#or include an external list with:
#
#File = \"
-s \"Bacula: %t %e of %c %l\" %r"
  operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\)
\<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
  mail = root = all, !skipped
  operator = root = 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/log/bacula/bacula.log" = all, !skipped
  catalog = all
}


#
# Message delivery for daemon messages (no job).
Messages {
  Name = Daemon
  mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\"
-s \"Bacula daemon message\" %r"
  mail = root = all, !skipped
  console = all, !skipped, !saved
  append = "/var/log/bacula/bacula.log" = all, !skipped
}

# Default pool definition
Pool {
  Name = Default
  Pool Type = Backup
  Label Format = Local-
  Recycle = yes   # Bacula can automatically recycle Volumes
  AutoPrune = yes