Hi Everyone,

I'm attempting to configure a semi-permanent full monthly backup, in
addition to a weekly full backup with 4 daily incrementals.

When last month's backup completed, it seems to have immediately
pruned the files from the catalog:

| Termination:            Backup OK

| 03-May 22:37 ariel-dir JobId 156: Begin pruning Jobs.
| 03-May 22:37 ariel-dir JobId 156: No Jobs found to prune.
| 03-May 22:37 ariel-dir JobId 156: Begin pruning Files.
| 03-May 22:37 ariel-dir JobId 156: Pruned Files from 3 Jobs for client 
ariel-fd from catalog.
| 03-May 22:37 ariel-dir JobId 156: End auto prune.

I'm not sure why, since the month pool has "AutoPrune = no" (2 new
tapes were added to the pool), the job doesn't have "prune=yes", and
the client has "File Retention = 30 days".  The relevant pool has
"Volume Retention = 15y".

Any help is much appreciated.  A pruned director config is attached.

Thanks,
Justin
Director {
  Name = ariel-dir
  DIRport = 9101
  QueryFile = "/etc/bacula/scripts/query.sql"
  WorkingDirectory = "/var/lib/bacula"
  PidDirectory = "/var/run/bacula"
  Maximum Concurrent Jobs = 1
  Password = 
  Messages = Daemon
  DirAddress = 127.0.0.1
}

JobDefs {
  Name = "DefaultJob"
  Type = Backup
  Level = Incremental
  Client = ariel-fd 
  FileSet = "Main File Set"
  Storage = ariel-tape
  Messages = Standard
  Priority = 10
  Pool=DailyPool
  Max Start Delay = 56h
  Write Bootstrap = "/var/lib/bacula/Backup.bsr"
}

Job {
  Name = "MainBackup"
  JobDefs = "DefaultJob"
  Schedule = "WeeklyCycle"
  Level = Full
  RunBeforeJob = "sh -c 'ps h -fC rsync; true'"
}

Job {
  Name = "MonthData"
  JobDefs = "DefaultJob"
  Schedule = "Monthly"
  Level = Full
  Write Bootstrap = "/var/lib/bacula/MonthData.bsr"
  RunBeforeJob = "sh -c 'ps h -fC rsync; true'"
}

Job {
  Name = "BackupCatalog"
  JobDefs = "DefaultJob"
  Level = Full
  FileSet="Catalog"
  Schedule = "WeeklyCycleAfterBackup"
  RunBeforeJob = "/usr/bin/awk -f /etc/bacula/scripts/make_catalog_backup_awk 
-v cat1=Catalog /etc/bacula/bacula-dir.conf"
  RunAfterJob  = "/etc/bacula/scripts/after_backup"
  Write Bootstrap = "/var/lib/bacula/BackupCatalog.bsr"
  Priority = 11
}

Job {
  Name = "MonthMetadata"
  JobDefs = "DefaultJob"
  Level = Full
  FileSet="Catalog"
  Schedule = "MonthlyPostbackup"
  RunBeforeJob = "/usr/bin/awk -f /etc/bacula/scripts/make_catalog_backup_awk 
-v cat1=Catalog /etc/bacula/bacula-dir.conf"
  RunAfterJob  = "/etc/bacula/scripts/after_backup"
  Write Bootstrap = "/var/lib/bacula/MonthMetadata.bsr"
  Priority = 11
}

Job {
  Name = "RestoreFiles"
  JobDefs = "DefaultJob"
  Type = Restore
  Client=ariel-fd                 
  Storage = ariel-file
  Where = /backup/restore
  Write Bootstrap = "/var/lib/bacula/Restore.bsr"
}

Schedule {
  Name = "WeeklyCycle"
  Run = Level=Full        Pool=DailyPool Monday at 8:00
  Run = Level=Incremental Pool=DailyPool Wednesday      at 6:30
  Run = Level=Incremental Pool=DailyPool Thursday       at 6:30
  Run = Level=Incremental Pool=DailyPool Friday         at 6:30
  Run = Level=Incremental Pool=DailyPool Saturday       at 6:30
}

Schedule {
  Name = "WeeklyCycleAfterBackup"
  Run = Level=Full Pool=DailyPool Monday        at 12:00
  Run = Level=Full Pool=DailyPool Wednesday     at 7:00
  Run = Level=Full Pool=DailyPool Thursday      at 7:00
  Run = Level=Full Pool=DailyPool Friday        at 7:00
  Run = Level=Full Pool=DailyPool Saturday      at 7:00
}

Schedule {
        Name = "Monthly"
        Run = Level=Full        Pool=MonthEndPool               on 1 at 7:00
}

Schedule {
        Name = "MonthlyPostbackup"
        Run = Level=Full        Pool=MonthEndPool               on 1 at 7:30
}

Client {
  Name = ariel-fd
  Address = localhost
  FDPort = 9102
  Catalog = Catalog
  Password = 
  File Retention = 30 days
  Job Retention = 6 months
  AutoPrune = yes
}

Storage {
  Name = ariel-tape
  Address = ariel
  SDPort = 9103
  Password = 
  Device = Tape
  MediaType = LTO-1
}

Storage {
  Name = ariel-file
  Address = ariel
  SDPort = 9103
  Password = 
  Device = FileStorage
  MediaType = File
}

Pool {
  Name = MonthEndPool
  Pool Type = Backup
  Recycle = no
  AutoPrune = no
  Volume Retention = 15y
  Maximum Volume Jobs = 2
}

Pool {
  Name = DailyPool
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 12d
  Maximum Volume Jobs = 2
}

FileSet {
  Name = "Catalog"
  Include {
    File = /backup/bacula.sql
    File = /home
    [...]
  }
}

FileSet {
  Name = "Main File Set"
  Include {
    File = /backup/servers
    [...]
}

Catalog {
...

Messages {
...
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to