Maybe Job Retention and File Retention, could help, like in this example:
Pool {
Name = Differential
Pool Type = Backup
Recycle = yes # Bareos can automatically
recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 60 days # How long should the
Differential Backups be kept? (#09)
Job Retention = 59 days
File Retention = 58 days
Maximum Volume Bytes = 300G # Limit Volume size to something
reasonable
Maximum Volumes = 200 # Limit number of Volumes in Pool
Label Format = "Differential-" # Volumes will be labeled
"Differential-"
}
Pool {
Name = Full
Pool Type = Backup
Recycle = yes # Bareos can automatically
recycle Volumes
Maximum Volume Bytes = 500 G# Limit Volume size to something
reasonable
Maximum Volumes = 300 # Limit number of Volumes in Pool
Label Format = "Full-" # Volumes will be labeled
"Full-"
AutoPrune = yes # Prune expired volumes
Volume Retention = 180 days # How long should the Full
Backups be kept? (#06)
Job Retention = 179 days
File Retention = 178 days
}
Pool {
Name = Incremental
Pool Type = Backup
Recycle = yes # Bareos can automatically
recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 28 days # How long should the Incremental
Backups be kept? (#12)
Job Retention = 27 days
File Retention = 26 days
Maximum Volume Bytes = 100G # Limit Volume size to
something reasonable
Maximum Volumes = 400 # Limit number of Volumes in Pool
Label Format = "Incremental-" # Volumes will be labeled
"Incremental-"
}
Regards,
Birgit
On 08/04/20 19:45, Brock Palen wrote:
Bareos will keep provisioning volumes trying to avoid blowing away data until
it absolutely have to. The retentions are much more about when they become a
candidate for purge.
I personally have a script I run after some jobs so they actually get pruned
when ready and truncated/recycled:
#!/bin/bash
for x in `echo "list volumes pool=AI-Consolidated" | bconsole | grep -v "list
volumes" | grep AI-Consolid | awk -F\| '{print $3}'`
do
echo "prune volume=$x yes"
done | bconsole
# actaully free up disk space
echo "truncate volstatus=Purged pool=AI-Consolidated yes" \
| bconsole
This gets ran once a day and wipes out all the volumes that are past retention
but not being marked used/purged.
This works well for me, and I also have a tape drive (copy jobs) and in the
tape world it makes a lot more sense.
Brock Palen
1 (989) 277-6075
bro...@mlds-networks.com
www.mlds-networks.com
Websites, Linux, Hosting, Joomla, Consulting
On Apr 8, 2020, at 1:18 PM, Andy Bird wrote:
HI all
no matter how many times I read the page on volume management I cant get my
head around it.
I have 3 servers with 4tb of storage each. I cant seem to figure out how to
stop baroes simply eating all the space up. Here are my pools..
Pool {
Name = Differential
Pool Type = Backup
Recycle = yes # Bareos can automatically recycle
Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 15 days # How long should the Differential
Backups be kept? (#09)
Maximum Volume Bytes = 10G # Limit Volume size to something
reasonable
Maximum Volumes = =100 # Limit number of Volumes in Pool
Label Format = "Differential-" # Volumes will be labeled
"Differential-"
}
Pool {
Name = Full
Pool Type = Backup
Recycle = yes # Bareos can automatically recycle
Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 30 days # How long should the Full Backups be
kept? (#06)
Maximum Volume Bytes = 50G # Limit Volume size to something
reasonable
Maximum Volumes = 50 # Limit number of Volumes in Pool
Label Format = "Full-" # Volumes will be labeled
"Full-"
}
Pool {
Name = Incremental
Pool Type = Backup
Recycle = yes # Bareos can automatically recycle
Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 15 days # How long should the Incremental
Backups be kept? (#12)
Maximum Volume Bytes = 1G # Limit Volume size to something
reasonable
Maximum Volumes = 200 # Limit number of Volumes in Pool
Label Format = "Incremental-" # Volumes will be labeled
"Incremental-"
}
why does it just keep eating space?
There are files in there that date back to Dec
-rw-r- 1 bareos bareos 1073737943 Dec 7 21:15 Incremental-0081
-rw-r- 1 bareos bareos 1073727886 Dec 7 21:12 Incremental-0073
-rw-r- 1 bareos bareos 175545854 Dec 6 21:21 Incremental-0067