Quote:
Originally Posted by neocontrol
Okay, so what it looks like is I need to setup either more volumes, or more pools. As I only have one right now.
So to recap, if I have my files being stored locally on the hard drives. Do I need to create more volumes or pools to back up to?
I'm pretty sure this is what I need to get some rotation working for my backups to keep the file sizes manageable.
Thanks,
CHarlie
|
Yes, you need to create and configure pools since you're using disk based backups. I'd imagine right now all you're doing is continuing to add to the same pool and volume, so the volume just continues to grow as it can't delete data at the beginning of the backup file bacula creates.
Start by reading at this chapter about volume management:
http://www.bacula.org/en/dev-manual/...00000000000000
Here's what my own Pools are configured as:
Code:
# Pool Definitions
Pool {
Name = Default
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 90 days
}
Pool {
Name = Full
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 90 days
Maximum Volume Jobs = 3
Label Format = Full-
Maximum Volumes = 32
}
Pool {
Name = Inc
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 90 days
Maximum Volume Jobs = 3
Label Format = Inc-
Maximum Volumes = 180
}
Pool {
Name = Diff
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 90 days
Maximum Volume Jobs = 3
Label Format = Diff-
Maximum Volumes = 64
}
Pool {
Name = Catalog
Pool Type = Backup
Recycle = yes # automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 90 days
Maximum Volume Jobs = 1
Label Format = Catalog-
Maximum Volumes = 100
}
And with the above info, you set the Pools within each Job you want to apply them to with something like this (in bold):
Code:
Job {
Name = "server"
Client = server-fd
Type = Backup
FileSet = "Fileset"
Level = Incremental
Schedule = "WeeklyCycle"
Storage = File
Messages = Standard
Pool = Default
Priority = 10
Full Backup Pool = Full
Incremental Backup Pool = Inc
Differential Backup Pool = Diff
Write Bootstrap = "/var/bacula/working/backup.bsr"
}
I basically have 3 different pools configured for Full's, Diff's and Incrementals. That way, once the backups are done, they'll create a new file for the next backup and it also allows Bacula to reuse and recycle ones that have gone past their retention (expired/purge) period.