Bacula-users

Re: [Bacula-users] Understanding purge

2010-11-17 05:52:07
Subject: Re: [Bacula-users] Understanding purge
From: Dermot Beirne <dermot.beirne AT dpd DOT ie>
To: bacula-users <bacula-users AT lists.sourceforge DOT net>
Date: Wed, 17 Nov 2010 10:48:36 +0000
Hi Phil,

Here is the pool definitions I'm using.

Is there some way I can get the entire "disk" pool volumes purged when
they expire, so they are all truncated and all that space is released.
 I don't need them once they are copied to tape.  Would a migrate job
instead of a copy job work better in this regard?

# Scratch pool definition
Pool {
  Name = Scratch
  Pool Type = Backup
  Cleaning Prefix = "CLNU"
}
## Tape Pool Definitions
# Daily Tape Pool Definition
Pool {
  Name = Daily-Tape-Pool
  Pool Type = Backup
  Storage = Tape
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 13 days
  Cleaning Prefix = "CLNU"
  RecyclePool = Scratch
  Volume Use Duration = 23h
  RecycleOldestVolume = yes
  File Retention = 12 days
  Job Retention = 12 days
}

# Weekly Tape Pool Definition
Pool {
  Name = Weekly-Tape-Pool
  Pool Type = Backup
  Storage = Tape
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 33 days
  Cleaning Prefix = "CLNU"
  RecyclePool = Scratch
  Volume Use Duration = 23h
  RecycleOldestVolume = yes
  File Retention = 32 days
  Job Retention = 32 days
}
# Monthly Tape Pool Definition
Pool {
  Name = Monthly-Tape-Pool
  Pool Type = backup
  Storage = Tape
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 12 months
  Cleaning Prefix = "CLNU"
  RecyclePool = Scratch
  Volume Use Duration = 23h
  RecycleOldestVolume = yes
  File Retention = 1 year
  Job Retention = 1 year
}
# Yearly Tape Pool Definition
Pool {
  Name = Yearly-Tape-Pool
  Pool Type = backup
  Storage = Tape
  Recycle = no
  AutoPrune = no
  Volume Retention =  10 years
  Cleaning Prefix = "CLNU"
  Volume Use Duration = 23h
  File Retention = 1 year
  Job Retention = 1 year
}

## Disk Pool Definitions
# Daily Disk Pool Definition
Pool {
  Name = Daily-Disk-Pool
  Pool Type = Backup
  Label Format ="Daily-Disk-Vol-"
  Maximum Volume Bytes = 5000000000
  Volume Retention = 1 days
  Volume Use Duration = 1 days
  Maximum Volume Jobs = 5
  Recycle = yes
  AutoPrune = yes
  Storage = DailyStorage
  Next Pool = Daily-Tape-Pool
  Recycle Oldest Volume = yes
  Maximum Volumes = 350
  Action on Purge = Truncate

}

# Weekly Disk Pool Definition
Pool {
  Name = Weekly-Disk-Pool
  Pool Type = Backup
  Storage = WeeklyStorage
  Recycle = yes
  AutoPrune = yes
  Volume Use Duration = 2 days
  Volume Retention = 2 days
  Maximum Volume Jobs = 5
  Label Format ="Weekly-Disk-Vol-"
  Maximum Volume Bytes = 5000000000
  Next Pool = Weekly-Tape-Pool
  Recycle Oldest Volume = yes
  Maximum Volumes = 300
  Action on Purge = Truncate
}

# Monthly Disk Pool Definition
Pool {
  Name = Monthly-Disk-Pool
  Pool Type = Backup
  Storage = MonthlyStorage
  Recycle = yes
  AutoPrune = yes
  Volume Use Duration = 4 days
  Volume Retention = 4 days
  Maximum Volume Jobs = 5
  Label Format ="Monthly-Disk-Vol-"
  Maximum Volume Bytes = 5000000000
  Next Pool = Monthly-Tape-Pool
  Recycle Oldest Volume = yes
  Maximum Volumes = 800
  Action on Purge = Truncate
}

# Yearly Disk Pool Definition
Pool {
  Name = Yearly-Disk-Pool
  Pool Type = Backup
  Storage = YearlyStorage
  Recycle = yes
  AutoPrune = yes
  Volume Use Duration = 3 days
  Volume Retention = 3 days
  Maximum Volume Jobs = 5
  Label Format ="Yearly-Disk-Vol-"
  Maximum Volume Bytes = 5000000000
  Next Pool = Yearly-Tape-Pool
  Recycle Oldest Volume = yes
  Maximum Volumes = 200
  Action on Purge = Truncate
}

Thanks,
Dermot.

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users