Subject: Auto-clean old backups
Hello,
I'm trying to configure bacula to fit special needs:
- I'm using FileStorage to store backups of multiple clients
- backups should only be kept on disk for a specified amount of time. The
amount has to be specified per client.
- older backups should be automatically removed from disk and catalog
- a new Volume should be created for each backup Job and it should be
labeled with the client's name, the date and type of backup.
- I prefer a convenient standard solution without having to write error
prone scripts by myself.
FileStorage, creating multiple files and labeling is no problem. But I do
not know how to remove old backups automatically. I've played around with
Volume Retention but this concept only gets used when you recycle Volumes.
But I do not want to recycle the Volumes because
- the date appears in the file name and the file name will not be changed
- a maximum amount of volumes needs to be specified so that bacula will
reuse Volumes and
- when specifying an amount of Volumes it is not guaranteed that I've got
backups of the last 31 days when someone makes more backups than usual.
Can anyone help me solving my problem? If there is no other way, I could use
a specified amount of Volumes and give them a more general label, but:
- each client needs to get his own Volumes
- Volumes must be kept for the specified amount of time and the disk space
of old backups needs to be freed
- the amount of time that the backups will be stored needs to be
configurable per client.
Here is part of my config:
Pool {
Name = Default
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle
Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365 days # one year
Use Volume Once = yes
Label Format =
"${Type}-${Level}-${Job}-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}-${Hour:p/2/0/r}:${Minute:p/2/0/r}"
}
Thank you for helping!
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users