[Bacula-users] Problem with schedule/pool

2010-01-14 Thread Ariel Wainer
I'm resending this mail as it seems it didn't get accepted by mailman.

Hello people, please excuse my bad english.
I'm having some issues with my schedules/pool configuration, my idea is
to run a full backup every 3 days, doing incremental in the middle.
At some point, I keep no full backup, as it seems like the volume that
contains the full backup is being recycled to do the Incremental,  so I
can't restore certain files, which is very serious.

What am I missing?

Thanks in advange, here is my config (passwords removed):

Director {# define myself
  Name = beastman-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 = 3
  Messages = Daemon
  DirAddress = beastman.contenta
}

JobDefs {
  Name = "DefaultJob"
  Type = Backup
  Level = Differential
  Client = beastman-fd
  FileSet = "appl"
  Schedule = "WeeklyCycle"
  Storage = File
  Messages = Standard
  Pool = Default
  Priority = 10
  Write Bootstrap = "/backups/bootstrap.bsr"
}



## JOBS
Job {
  Name = "Manatarms-diario"
  Client = manatarms-fd
  JobDefs = "DefaultJob"
  FileSet = "appl"
  Schedule = "Diarios"
  Storage = "beastman-storage"
  Pool = Manatarms-diario
}

Job {
  Name = "Battlecat-diario"
  Client = battlecat-fd
  JobDefs = "DefaultJob"
  FileSet = "appl"
  Schedule = "Diarios"
  Storage = "beastman-storage"
  Pool = Battlecat-diario
}


Job {
  Name = "Randor-diario"
  Client = randor-fd
  JobDefs = "DefaultJob"
  FileSet = "appl"
  Schedule = "Diarios"
  Storage = "beastman-storage"
  Pool = Randor-diario
}

#Job {
#  Name = "Heman-diario"
#  Client = heman-fd
#  JobDefs = "DefaultJob"
#  FileSet = "appl"
#  Schedule = "Diarios"
#  Storage = "beastman-storage"
#  Pool = "Heman-diario"
#}

Job {
  Name = "Teela-diario"
  Client = teela-fd
  JobDefs = "DefaultJob"
  FileSet = "appl"
  Schedule = "Diarios"
  Storage = "beastman-storage"
  Pool = Teela-diario
}

Job {
  Name = "Sorceress-diario"
  Client = sorceress-fd
  JobDefs = "DefaultJob"
  FileSet = "appl"
  Schedule = "Diarios"
  Storage = "beastman-storage"
  Pool = Sorceress-diario
}

Job {
  Name = "Orco-diario"
  Client = orco-fd
  JobDefs = "DefaultJob"
  FileSet = "appl"
  Schedule = "Diarios"
  Storage = "beastman-storage"
  Pool = Orco-diario
}


Job {
  Name = "Panthor-diario"
  Client = panthor-fd
  JobDefs = "DefaultJob"
  FileSet = "appl"
  Schedule = "Diarios"
  Storage = "beastman-storage"
  Pool = Panthor-diario
}

Job {
  Name = "Marlena-diario"
  Client = marlena-fd
  JobDefs = "DefaultJob"
  FileSet = "appl"
  Schedule = "Diarios"
  Storage = "beastman-storage"
  Pool = Marlena-diario
}

Job {
  Name = "BackupCatalog"
  JobDefs = "DefaultJob"
  Level = Full
  FileSet="Catalog"
  Schedule = "WeeklyCycleAfterBackup"
  # This creates an ASCII copy of the catalog
  # WARNING!!! Passing the password via the command line is insecure.
  # see comments in make_catalog_backup for details.
  # Arguments to make_catalog_backup are:
  #  make_catalog_backup
  RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup bacula baculin
bacapdetodo localhost"
  # This deletes the copy of the catalog
  RunAfterJob  = "/etc/bacula/scripts/delete_catalog_backup"
  Write Bootstrap = "/backups/BackupCatalog.bsr"
  Storage = "beastman-storage"
  Pool = Catalog-diario
  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=beastman-fd
  FileSet="appl"
  Storage = File
  Pool = Default
  Messages = Standard
  Where = /tmp/
}


# Filesets
FileSet {
  Name = "appl"
  Include {
Options { signature = SHA1
  compression = GZIP9
}

#  File = "/backups/"
  File = "/etc"
  File = "/appl"
  File = "/home"
  File = "/root"
  File = "/var/www"
  File = "/usr/local"
  File = "/var/spool/cron"
  File = "/usr/lib/nagios/plugins"
  File = "/backups"
  }

   Exclude {
File = "/appl/logs/*"
#File = "/appl/backup"
File = "/appl/backups/*.1.gz"
File = "/appl/produccion/*/logs/"
File = "/appl/pgsql/data/base"
File = "/appl/pgsql/data/pg_xlog/*"
File = "/appl/pgsql/data/pg_clog/*"
File = "/appl/restores/*"

   }
}


#
# 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 = Differential mon-sat at 23:05
}

Schedule {
  Name = "Diarios"
  Run = Level=Fullon sunday at 3:05
  Run = Level=Incremental on mon-sat at 3:05
}
# This schedule does the catalog. It starts after the WeeklyCycl

Re: [Bacula-users] Problem with schedule/pool

2010-01-13 Thread Dan Langille
Ariel Wainer wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Dan Langille wrote:
> |
> | For starters, I would set all your retention values to be the same 
> value (30 days).  Issue a reload command within bconsole.  Then run 
> update (pool, and volumes from pool) to update the Pool and Volumes from 
> that new Pool resource value.
> |
> | Then run with that for a while and see how things go.
> |
> | My theory as to the problem: your Full Job is being dropped from the 
> Catalog.  Bacula goes to run an incremental, can't find a Full, so it 
> promotes that Job to a Full.
> |
> Thanks for your answer. I will try this, but setting the retention to 30 
> days  and max volumes to 3 will not cause the sd to be unable to find 
> usable volumes?

Always CC the mailing list.

Your configuration details are no longer attached to this message so I 
cannot review them.

I don't have time to help just now. Perhaps someone else on the list can.

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem with schedule/pool

2010-01-12 Thread Dan Langille
Ariel Wainer wrote:
> Hello people, please excuse my bad english.
> I'm having some issues with my schedules/pool configuration, my idea is
> to run a full backup every 3 days, doing incremental in the middle.
> At some point, I keep no full backup, as it seems like the volume that
> contains the full backup is being recycled to do the Incremental,  so I
> can't restore certain files, which is very serious.
> 
> What am I missing?
> 
> Thanks in advange, here is my config (passwords removed):

For starters, I would set all your retention values to be the same value 
(30 days).  Issue a reload command within bconsole.  Then run update 
(pool, and volumes from pool) to update the Pool and Volumes from that 
new Pool resource value.

Then run with that for a while and see how things go.

My theory as to the problem: your Full Job is being dropped from the 
Catalog.  Bacula goes to run an incremental, can't find a Full, so it 
promotes that Job to a Full.

> 
> Director {# define myself
>   Name = beastman-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 = 3
>   Messages = Daemon
>   DirAddress = beastman.contenta
> }
> 
> JobDefs {
>   Name = "DefaultJob"
>   Type = Backup
>   Level = Differential
>   Client = beastman-fd
>   FileSet = "appl"
>   Schedule = "WeeklyCycle"
>   Storage = File
>   Messages = Standard
>   Pool = Default
>   Priority = 10
>   Write Bootstrap = "/backups/bootstrap.bsr"
> }
> 
> 
> 
> ## JOBS
> Job {
>   Name = "Manatarms-diario"
>   Client = manatarms-fd
>   JobDefs = "DefaultJob"
>   FileSet = "appl"
>   Schedule = "Diarios"
>   Storage = "beastman-storage"
>   Pool = Manatarms-diario
> }
> 
> Job {
>   Name = "Battlecat-diario"
>   Client = battlecat-fd
>   JobDefs = "DefaultJob"
>   FileSet = "appl"
>   Schedule = "Diarios"
>   Storage = "beastman-storage"
>   Pool = Battlecat-diario
> }
> 
> 
> Job {
>   Name = "Randor-diario"
>   Client = randor-fd
>   JobDefs = "DefaultJob"
>   FileSet = "appl"
>   Schedule = "Diarios"
>   Storage = "beastman-storage"
>   Pool = Randor-diario
> }
> 
> #Job {
> #  Name = "Heman-diario"
> #  Client = heman-fd
> #  JobDefs = "DefaultJob"
> #  FileSet = "appl"
> #  Schedule = "Diarios"
> #  Storage = "beastman-storage"
> #  Pool = "Heman-diario"
> #}
> 
> Job {
>   Name = "Teela-diario"
>   Client = teela-fd
>   JobDefs = "DefaultJob"
>   FileSet = "appl"
>   Schedule = "Diarios"
>   Storage = "beastman-storage"
>   Pool = Teela-diario
> }
> 
> Job {
>   Name = "Sorceress-diario"
>   Client = sorceress-fd
>   JobDefs = "DefaultJob"
>   FileSet = "appl"
>   Schedule = "Diarios"
>   Storage = "beastman-storage"
>   Pool = Sorceress-diario
> }
> 
> Job {
>   Name = "Orco-diario"
>   Client = orco-fd
>   JobDefs = "DefaultJob"
>   FileSet = "appl"
>   Schedule = "Diarios"
>   Storage = "beastman-storage"
>   Pool = Orco-diario
> }
> 
> 
> Job {
>   Name = "Panthor-diario"
>   Client = panthor-fd
>   JobDefs = "DefaultJob"
>   FileSet = "appl"
>   Schedule = "Diarios"
>   Storage = "beastman-storage"
>   Pool = Panthor-diario
> }
> 
> Job {
>   Name = "Marlena-diario"
>   Client = marlena-fd
>   JobDefs = "DefaultJob"
>   FileSet = "appl"
>   Schedule = "Diarios"
>   Storage = "beastman-storage"
>   Pool = Marlena-diario
> }
> 
> Job {
>   Name = "BackupCatalog"
>   JobDefs = "DefaultJob"
>   Level = Full
>   FileSet="Catalog"
>   Schedule = "WeeklyCycleAfterBackup"
>   # This creates an ASCII copy of the catalog
>   # WARNING!!! Passing the password via the command line is insecure.
>   # see comments in make_catalog_backup for details.
>   # Arguments to make_catalog_backup are:
>   #  make_catalog_backup
>   RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup bacula baculin
> bacapdetodo localhost"
>   # This deletes the copy of the catalog
>   RunAfterJob  = "/etc/bacula/scripts/delete_catalog_backup"
>   Write Bootstrap = "/backups/BackupCatalog.bsr"
>   Storage = "beastman-storage"
>   Pool = Catalog-diario
>   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=beastman-fd
>   FileSet="appl"
>   Storage = File
>   Pool = Default
>   Messages = Standard
>   Where = /tmp/
> }
> 
> 
> # Filesets
> FileSet {
>   Name = "appl"
>   Include {
> Options { signature = SHA1
>   compression = GZIP9
> }
> 
> #  File = "/backups/"
>   File = "/etc"
>   File = "/appl"
>   File = "/home"
>   File = "/root"
>   File = "/var/www"
>   File = "/usr/local"
>   File = "/var/spool/cron"
>   File = "/usr/lib/nagios/plugins"
>   File = "/backups"
>   }
> 
>E

[Bacula-users] Problem with schedule/pool

2010-01-12 Thread Ariel Wainer
Hello people, please excuse my bad english.
I'm having some issues with my schedules/pool configuration, my idea is
to run a full backup every 3 days, doing incremental in the middle.
At some point, I keep no full backup, as it seems like the volume that
contains the full backup is being recycled to do the Incremental,  so I
can't restore certain files, which is very serious.

What am I missing?

Thanks in advange, here is my config (passwords removed):

Director {# define myself
  Name = beastman-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 = 3
  Messages = Daemon
  DirAddress = beastman.contenta
}

JobDefs {
  Name = "DefaultJob"
  Type = Backup
  Level = Differential
  Client = beastman-fd
  FileSet = "appl"
  Schedule = "WeeklyCycle"
  Storage = File
  Messages = Standard
  Pool = Default
  Priority = 10
  Write Bootstrap = "/backups/bootstrap.bsr"
}



## JOBS
Job {
  Name = "Manatarms-diario"
  Client = manatarms-fd
  JobDefs = "DefaultJob"
  FileSet = "appl"
  Schedule = "Diarios"
  Storage = "beastman-storage"
  Pool = Manatarms-diario
}

Job {
  Name = "Battlecat-diario"
  Client = battlecat-fd
  JobDefs = "DefaultJob"
  FileSet = "appl"
  Schedule = "Diarios"
  Storage = "beastman-storage"
  Pool = Battlecat-diario
}


Job {
  Name = "Randor-diario"
  Client = randor-fd
  JobDefs = "DefaultJob"
  FileSet = "appl"
  Schedule = "Diarios"
  Storage = "beastman-storage"
  Pool = Randor-diario
}

#Job {
#  Name = "Heman-diario"
#  Client = heman-fd
#  JobDefs = "DefaultJob"
#  FileSet = "appl"
#  Schedule = "Diarios"
#  Storage = "beastman-storage"
#  Pool = "Heman-diario"
#}

Job {
  Name = "Teela-diario"
  Client = teela-fd
  JobDefs = "DefaultJob"
  FileSet = "appl"
  Schedule = "Diarios"
  Storage = "beastman-storage"
  Pool = Teela-diario
}

Job {
  Name = "Sorceress-diario"
  Client = sorceress-fd
  JobDefs = "DefaultJob"
  FileSet = "appl"
  Schedule = "Diarios"
  Storage = "beastman-storage"
  Pool = Sorceress-diario
}

Job {
  Name = "Orco-diario"
  Client = orco-fd
  JobDefs = "DefaultJob"
  FileSet = "appl"
  Schedule = "Diarios"
  Storage = "beastman-storage"
  Pool = Orco-diario
}


Job {
  Name = "Panthor-diario"
  Client = panthor-fd
  JobDefs = "DefaultJob"
  FileSet = "appl"
  Schedule = "Diarios"
  Storage = "beastman-storage"
  Pool = Panthor-diario
}

Job {
  Name = "Marlena-diario"
  Client = marlena-fd
  JobDefs = "DefaultJob"
  FileSet = "appl"
  Schedule = "Diarios"
  Storage = "beastman-storage"
  Pool = Marlena-diario
}

Job {
  Name = "BackupCatalog"
  JobDefs = "DefaultJob"
  Level = Full
  FileSet="Catalog"
  Schedule = "WeeklyCycleAfterBackup"
  # This creates an ASCII copy of the catalog
  # WARNING!!! Passing the password via the command line is insecure.
  # see comments in make_catalog_backup for details.
  # Arguments to make_catalog_backup are:
  #  make_catalog_backup
  RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup bacula baculin
bacapdetodo localhost"
  # This deletes the copy of the catalog
  RunAfterJob  = "/etc/bacula/scripts/delete_catalog_backup"
  Write Bootstrap = "/backups/BackupCatalog.bsr"
  Storage = "beastman-storage"
  Pool = Catalog-diario
  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=beastman-fd
  FileSet="appl"
  Storage = File
  Pool = Default
  Messages = Standard
  Where = /tmp/
}


# Filesets
FileSet {
  Name = "appl"
  Include {
Options { signature = SHA1
  compression = GZIP9
}

#  File = "/backups/"
  File = "/etc"
  File = "/appl"
  File = "/home"
  File = "/root"
  File = "/var/www"
  File = "/usr/local"
  File = "/var/spool/cron"
  File = "/usr/lib/nagios/plugins"
  File = "/backups"
  }

   Exclude {
File = "/appl/logs/*"
#File = "/appl/backup"
File = "/appl/backups/*.1.gz"
File = "/appl/produccion/*/logs/"
File = "/appl/pgsql/data/base"
File = "/appl/pgsql/data/pg_xlog/*"
File = "/appl/pgsql/data/pg_clog/*"
File = "/appl/restores/*"

   }
}


#
# 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 = Differential mon-sat at 23:05
}

Schedule {
  Name = "Diarios"
  Run = Level=Fullon sunday at 3:05
  Run = Level=Incremental on mon-sat at 3:05
}
# This schedule does the catalog. It starts after the WeeklyCycle
Schedule {
  Name = "WeeklyCycleAfterBackup"
  Run = Full sun-sat at 2