Re: [Bacula-users] Catalog backups to disk problem
George, your mail went to me only, not to the list. On 07.10.2005 21:45, George R. Kasica wrote: 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... The setup isn't hard for tapes, but how would I do it for files, same way? I didn't know that I could make more than one disk volume...so I could make a Backup-Set-1 (2,3,4,5,6,7) volumes and then put them in a Pool with the retention times and recycling options shown below, correct? 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. Yes, missed the } sorry. :) Yes, there is only one volume in the Default Pool it's called BaculaBackup. I'm assuming making a set as above BaculaBackup-1 BaculaBackup-2 BaculaBackup-3 BaculaBackup-4 BaculaBackup-5 BaculaBackup-6 BaculaBackup-7 in that pool will solve the problem? I'm guessing given a 7 day tape lifetime I'd want about 7 volumes in the pool? Yes, that's one way to do this. It's easiest to set up automatic volume labeling and then limit the number of volmes in the pool. Additionally, you should either limit the number of jobs per volume (not generally recommended), the maximum volume size (good if you want to limit the overall disk usage) or the volume use duration (that's what you use when you want to use each volme during one day, and then cycle to the next one). Once this setup works, you should either delete or modify your existing volume - the information about volumes is not updated when you change the pool definition, so that volume will still grow and grow and grow... Arno -- 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
[Bacula-users] Catalog backups to disk problem
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?? 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 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
Re: [Bacula-users] Catalog backups to disk problem
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