Hello,
On 06.10.2005 19:55, George R.Kasica wrote:
I'm running into an interesting problem here with the pre configured
backups of the catalog to disk file system.
It seem to continue to grow without ever getting smaller:
14008761445 Oct 6 00:37 BaculaBackup
How can I configure Bacula to reuse or purge some of this space??
You need to set up more than one volume, and then use retention times
and automatic pruning and recycling correctly. There are some detailed
examples in the manual...
In short: Bacula *never* shortens a volume that it still considers
valid. Internally, bacula handles all volumes similar to tapes, and
tapes are only appended to or they are completely overwritten (which
means truncated with file based volumes).
I've got a file in /tmp called BaculaBackup where the two backup to
disk jobs run to.
The expire times are as follows:
Pool {
Name = Default
Pool Type = Backup
Recycle = yes # Bacula can auto recycle
AutoPrune = yes # Prune expired volumes
Volume Retention = 7 days # 7 days
Accept Any Volume = yes # write on any volume in pool
I hope the missing } is only a cut-and-paste error :-)
I'd bet that you only have one volume in that pool.
Arno
Job {
Name = "Client1"
Maximum Concurrent Jobs = 4
JobDefs = "DefaultJob"
Write Bootstrap = "/root/bacula/bin/working/Client1.bsr"
}
# Backup the catalog database (after the nightly save)
Job {
Name = "BackupCatalog"
Maximum Concurrent Jobs = 4
JobDefs = "DefaultJob"
Level = Full
FileSet="Catalog"
Schedule = "WeeklyCycleAfterBackup"
# This creates an ASCII copy of the catalog
RunBeforeJob = "/root/bacula/bin/make_catalog_backup bacula bacula"
# This deletes the copy of the catalog
RunAfterJob = "/root/bacula/bin/delete_catalog_backup"
Write Bootstrap = "/root/bacula/bin/working/BackupCatalog.bsr"
Priority = 11 # run after main backup
}
JobDefs {
Name = "DefaultJob"
Maximum Concurrent Jobs = 4
Type = Backup
Level = Incremental
Client = eagle-fd
FileSet = "Full Set"
Schedule = "WeeklyCycle"
Storage = File
Messages = Standard
Pool = Default
Priority = 10
}
Device {
Name = FileStorage
Media Type = File
Archive Device = /tmp
LabelMedia = yes; # lets Bacula label unlabeled
media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
}
===[George R. Kasica]=== +1 262 677 0766
President +1 206 374 6482 FAX
Netwrx Consulting Inc. Jackson, WI USA
http://www.netwrx1.com
[EMAIL PROTECTED]
ICQ #12862186
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
--
IT-Service Lehmann [EMAIL PROTECTED]
Arno Lehmann http://www.its-lehmann.de
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users