Pool resource
A Pool resource groups volumes with the same rules: how long their data is kept, how big they get, how they are labeled and recycled.
Examples
Full backups kept for a year on disk
Pool {
Name = Full
Pool Type = Backup
Recycle = yes
Auto Prune = yes
Volume Retention = 365 days
Maximum Volume Bytes = 50G
Maximum Volumes = 100
Label Format = "Full-"
Action On Purge = Truncate
}
Incrementals: one volume per job
Pool {
Name = Incremental
Pool Type = Backup
Volume Retention = 30 days
Maximum Volume Jobs = 1
Label Format = "Incremental-"
}
With one job per volume a volume can be recycled as soon as its single job has expired.
Directives
| Directive | Type | Default | Summary | |
|---|---|---|---|---|
| Name | name | required | Name of the pool. | |
| Description | string | Free text describing the pool. | ||
| Pool Type | enum | Backup | Kind of pool: Backup (the normal case), Copy, Cloned, Archive, Migration or Scratch. | |
| Label Format | string | Template for the names of volumes the Director labels automatically. | ||
| Label Type | enum | deprecated | Deprecated: ANSI or IBM tape labels. | |
| Cleaning Prefix | string | CLN | Volumes whose name starts with this prefix are cleaning tapes and are never used for data. | |
| Use Catalog | yes|no | yes | Keep the volumes of this pool in the catalog; should stay yes. | |
| Purge Oldest Volume | yes|no | no | When the pool needs a volume and none is free, purge the oldest volume regardless of its retention. | |
| Action On Purge | enum | What happens to a volume when it is purged: Truncate shrinks a disk volume to zero to free the space (done by truncate or purge … action=truncate); None keeps it. | ||
| Recycle Oldest Volume | yes|no | no | When a volume is needed, prune the oldest volume and reuse it if its retention allows. | |
| Recycle Current Volume | yes|no | no | When a volume is needed, prune the current volume and reuse it if its retention allows. | |
| Maximum Volumes | positive integer | Upper limit of volumes in the pool; automatic labeling stops there. | ||
| Maximum Volume Jobs | positive integer | Number of jobs after which a volume is marked Used. | ||
| Maximum Volume Files | positive integer | Number of files after which a volume is marked Used. | ||
| Maximum Volume Bytes | size | Size after which a volume is marked Full. | ||
| Catalog Files | yes|no | yes | Store the file records of the jobs in this pool. | |
| Volume Retention | time | 31536000 (1 year) | How long the jobs on a volume are kept after the volume was last written. | |
| Volume Use Duration | time | How long a volume is written to after its first write; then it is marked Used. | ||
| Migration Time | time | For Migrate jobs with Selection Type PoolTime: jobs older than this are migrated. | ||
| Migration High Bytes | size | For Selection Type PoolOccupancy: migration starts when the pool holds more than this. | ||
| Migration Low Bytes | size | For Selection Type PoolOccupancy: migration stops when the pool is below this. | ||
| Next Pool | resource | Pool that Copy, Migrate and VirtualFull jobs write to when they read from this pool. | ||
| Storage | resource list | Storage the jobs writing to this pool use; it takes precedence over the Storage of the job. | ||
| Auto Prune | yes|no | yes | Prune the volumes of this pool automatically when a volume is needed, according to Volume Retention. | |
| Recycle | yes|no | yes | Allow volumes of this pool to be reused once they are purged. | |
| Recycle Pool | resource | Pool a volume moves to when it is recycled, for example back to the Scratch pool. | ||
| Scratch Pool | resource | Pool this pool takes new volumes from when it has none; default is the pool named Scratch. | ||
| Catalog | resource | Catalog of the pool, for installations with several catalogs. | ||
| File Retention | time | deprecated | Deprecated: file retention of the pool. | |
| Job Retention | time | deprecated | Deprecated: job retention of the pool. | |
| Minimum Block Size | size | Minimum block size for volumes of this pool, for tape drives with special needs. | ||
| Maximum Block Size | size | Maximum block size for volumes of this pool; larger blocks speed up modern tape drives. |
Name
Key: name · Type: name · Required
Name of the pool.
Pool {
Name = "Full"
}
In the console:
configure add pool name=Full
Description
Key: description · Type: string
Free text describing the pool.
Pool {
Name = Full
Description = "Full backups, kept one year"
}
In the console:
configure add pool name=Full description="Full backups, kept one year"
Pool Type
Key: pooltype · Type: enum · Default: Backup · Values: Backup, Copy, Cloned, Archive, Migration, Scratch
Kind of pool: Backup (the normal case), Copy, Cloned, Archive, Migration or Scratch. Only Backup pools are used for backups; a pool named Scratch serves as the default scratch pool.
Pool {
Name = Full
Pool Type = Backup
}
In the console:
configure add pool name=Full pooltype=Backup
Label Format
Key: labelformat · Type: string
Template for the names of volumes the Director labels automatically. Without it, volumes must be labeled by hand (label). The Director appends a 4-digit number unless the format uses variables such as ${NumVols}. For disk storage the Storage Daemon’s device also needs Label Media = yes.
Pool {
Name = Full
Label Format = "Full-"
}
In the console:
configure add pool name=Full labelformat=Full-
Label Type
Key: labeltype · Type: enum · Deprecated
Deprecated: ANSI or IBM tape labels.
Pool {
Name = Full
Label Type = Bareos
}
Cleaning Prefix
Key: cleaningprefix · Type: string · Default: CLN
Volumes whose name starts with this prefix are cleaning tapes and are never used for data.
Pool {
Name = Full
Cleaning Prefix = "CLN"
}
In the console:
configure add pool name=Full cleaningprefix=CLN
Use Catalog
Key: usecatalog · Type: yes|no · Default: yes · Values: yes, no
Keep the volumes of this pool in the catalog; should stay yes.
Pool {
Name = Full
Use Catalog = yes
}
In the console:
configure add pool name=Full usecatalog=yes
Purge Oldest Volume
Key: purgeoldestvolume · Type: yes|no · Default: no · Values: yes, no
When the pool needs a volume and none is free, purge the oldest volume regardless of its retention. Dangerous: data that should still be kept is lost.
Pool {
Name = Full
Purge Oldest Volume = no
}
In the console:
configure add pool name=Full purgeoldestvolume=no
Action On Purge
Key: actiononpurge · Type: enum · Values: None, Truncate
What happens to a volume when it is purged: Truncate shrinks a disk volume to zero to free the space (done by truncate or purge … action=truncate); None keeps it.
Pool {
Name = Full
Action On Purge = Truncate
}
In the console:
configure add pool name=Full actiononpurge=Truncate
Recycle Oldest Volume
Key: recycleoldestvolume · Type: yes|no · Default: no · Values: yes, no
When a volume is needed, prune the oldest volume and reuse it if its retention allows.
Pool {
Name = Full
Recycle Oldest Volume = no
}
In the console:
configure add pool name=Full recycleoldestvolume=no
Recycle Current Volume
Key: recyclecurrentvolume · Type: yes|no · Default: no · Values: yes, no
When a volume is needed, prune the current volume and reuse it if its retention allows.
Pool {
Name = Full
Recycle Current Volume = no
}
In the console:
configure add pool name=Full recyclecurrentvolume=no
Maximum Volumes
Key: maximumvolumes · Type: positive integer
Upper limit of volumes in the pool; automatic labeling stops there. Together with Maximum Volume Bytes it caps the disk space of the pool.
Pool {
Name = Full
Maximum Volumes = 30
}
In the console:
configure add pool name=Full maximumvolumes=30
Maximum Volume Jobs
Key: maximumvolumejobs · Type: positive integer
Number of jobs after which a volume is marked Used. With 1, each job gets its own volume, which makes recycling of disk volumes precise.
Pool {
Name = Full
Maximum Volume Jobs = 1
}
In the console:
configure add pool name=Full maximumvolumejobs=1
Maximum Volume Files
Key: maximumvolumefiles · Type: positive integer
Number of files after which a volume is marked Used.
Pool {
Name = Full
Maximum Volume Files = 100000
}
In the console:
configure add pool name=Full maximumvolumefiles=100000
Maximum Volume Bytes
Key: maximumvolumebytes · Type: size
Size after which a volume is marked Full. On disk storage this keeps volumes small enough to be recycled one by one. Sizes take the suffixes k, m, g, t (powers of 1024) or kb, mb, gb, tb (powers of 1000).
Pool {
Name = Full
Maximum Volume Bytes = 50 g
}
In the console:
configure add pool name=Full maximumvolumebytes="50 g"
Catalog Files
Key: catalogfiles · Type: yes|no · Default: yes · Values: yes, no
Store the file records of the jobs in this pool. Without them no single files can be selected for restore, only whole jobs.
Pool {
Name = Full
Catalog Files = yes
}
In the console:
configure add pool name=Full catalogfiles=yes
Volume Retention
Key: volumeretention · Type: time · Default: 31536000 (1 year)
How long the jobs on a volume are kept after the volume was last written. When it has run out, the jobs and files on it can be pruned and the volume recycled. It is the main retention setting in Bareos 25. Times are written as a number with a unit: seconds, minutes, hours, days, weeks, months, quarters or years (abbreviations such as 30d, 12h or 1y work too); several parts add up (“1 month 15 days”), and a plain number means seconds.
Pool {
Name = Full
Volume Retention = 1 year
}
In the console:
configure add pool name=Full volumeretention="1 year"
Volume Use Duration
Key: volumeuseduration · Type: time
How long a volume is written to after its first write; then it is marked Used. Without it, a volume stays Append until it is full. Useful to get one volume per day or week. Times are written as a number with a unit: seconds, minutes, hours, days, weeks, months, quarters or years (abbreviations such as 30d, 12h or 1y work too); several parts add up (“1 month 15 days”), and a plain number means seconds.
Pool {
Name = Full
Volume Use Duration = 23 hours
}
In the console:
configure add pool name=Full volumeuseduration="23 hours"
Migration Time
Key: migrationtime · Type: time
For Migrate jobs with Selection Type PoolTime: jobs older than this are migrated. Times are written as a number with a unit: seconds, minutes, hours, days, weeks, months, quarters or years (abbreviations such as 30d, 12h or 1y work too); several parts add up (“1 month 15 days”), and a plain number means seconds.
Pool {
Name = Full
Migration Time = 30 days
}
In the console:
configure add pool name=Full migrationtime="30 days"
Migration High Bytes
Key: migrationhighbytes · Type: size
For Selection Type PoolOccupancy: migration starts when the pool holds more than this. Sizes take the suffixes k, m, g, t (powers of 1024) or kb, mb, gb, tb (powers of 1000).
Pool {
Name = Full
Migration High Bytes = 800 g
}
In the console:
configure add pool name=Full migrationhighbytes="800 g"
Migration Low Bytes
Key: migrationlowbytes · Type: size
For Selection Type PoolOccupancy: migration stops when the pool is below this. Sizes take the suffixes k, m, g, t (powers of 1024) or kb, mb, gb, tb (powers of 1000).
Pool {
Name = Full
Migration Low Bytes = 600 g
}
In the console:
configure add pool name=Full migrationlowbytes="600 g"
Next Pool
Key: nextpool · Type: resource
Pool that Copy, Migrate and VirtualFull jobs write to when they read from this pool.
Pool {
Name = Full
Next Pool = "Offsite"
}
In the console:
configure add pool name=Full nextpool=Offsite
Storage
Key: storage · Type: resource list
Storage the jobs writing to this pool use; it takes precedence over the Storage of the job.
Pool {
Name = Full
Storage = "File"
}
In the console:
configure add pool name=Full storage=File
Auto Prune
Key: autoprune · Type: yes|no · Default: yes · Values: yes, no
Prune the volumes of this pool automatically when a volume is needed, according to Volume Retention.
Pool {
Name = Full
Auto Prune = yes
}
In the console:
configure add pool name=Full autoprune=yes
Recycle
Key: recycle · Type: yes|no · Default: yes · Values: yes, no
Allow volumes of this pool to be reused once they are purged. With no, a full volume keeps its data until it is relabeled or deleted.
Pool {
Name = Full
Recycle = yes
}
In the console:
configure add pool name=Full recycle=yes
Recycle Pool
Key: recyclepool · Type: resource
Pool a volume moves to when it is recycled, for example back to the Scratch pool.
Pool {
Name = Full
Recycle Pool = "Scratch"
}
In the console:
configure add pool name=Full recyclepool=Scratch
Scratch Pool
Key: scratchpool · Type: resource
Pool this pool takes new volumes from when it has none; default is the pool named Scratch.
Pool {
Name = Full
Scratch Pool = "Scratch"
}
In the console:
configure add pool name=Full scratchpool=Scratch
Catalog
Key: catalog · Type: resource
Catalog of the pool, for installations with several catalogs.
Pool {
Name = Full
Catalog = "MyCatalog"
}
In the console:
configure add pool name=Full catalog=MyCatalog
File Retention
Key: fileretention · Type: time · Deprecated
Deprecated: file retention of the pool. Times are written as a number with a unit: seconds, minutes, hours, days, weeks, months, quarters or years (abbreviations such as 30d, 12h or 1y work too); several parts add up (“1 month 15 days”), and a plain number means seconds.
Pool {
Name = Full
File Retention = 60 days
}
Job Retention
Key: jobretention · Type: time · Deprecated
Deprecated: job retention of the pool. Times are written as a number with a unit: seconds, minutes, hours, days, weeks, months, quarters or years (abbreviations such as 30d, 12h or 1y work too); several parts add up (“1 month 15 days”), and a plain number means seconds.
Pool {
Name = Full
Job Retention = 6 months
}
Minimum Block Size
Key: minimumblocksize · Type: size
Minimum block size for volumes of this pool, for tape drives with special needs. Sizes take the suffixes k, m, g, t (powers of 1024) or kb, mb, gb, tb (powers of 1000).
Pool {
Name = Full
Minimum Block Size = 64 k
}
In the console:
configure add pool name=Full minimumblocksize="64 k"
Maximum Block Size
Key: maximumblocksize · Type: size
Maximum block size for volumes of this pool; larger blocks speed up modern tape drives. Volumes written with one size must be read with it. Sizes take the suffixes k, m, g, t (powers of 1024) or kb, mb, gb, tb (powers of 1000).
Pool {
Name = Full
Maximum Block Size = 1 m
}
In the console:
configure add pool name=Full maximumblocksize="1 m"
See also: configuration reference, configure, show