Kern Sibbald wrote:
> Bacula probably refuses to prune the very last Full backup.  So, if you only 
> have one, perhaps it won't touch it.  Purge will override this and prune 
> anything you give it.

It seems not, I have tested again this time with more than one full job:

*list jobs
...
|    20 | jobBackupOddball      | 2006-09-01 14:46:43 | B    | F     | 
       2 |         14 | T         |
|    22 | jobBackupOddball      | 2006-09-01 14:50:21 | B    | F     | 
       2 |         14 | T         |
|    27 | jobBackupOddball      | 2006-09-01 23:05:08 | B    | I     | 
       0 |          0 | T         |

A recent prune at 1:18am only removed the incremental, leaving these:

|    20 | jobBackupOddball      | 2006-09-01 14:46:43 | B    | F     | 
       2 |         14 | T         |
|    22 | jobBackupOddball      | 2006-09-01 14:50:21 | B    | F     | 
       2 |         14 | T         |

which seems to go against what the comments for function prune_jobs() in 
ua_prune.c describe:

" * Purging Jobs is a bit more complicated than purging Files
  * because we delete Job records only if there is a more current
  * backup of the FileSet. Otherwise, we keep the Job record.
  * In other words, we never delete the only Job record that
  * contains a current backup of a FileSet. This prevents the
  * Volume from being recycled and destroying a current backup."

it suggests jobid 20 should have been pruned.

> 
>> Regards,
>> Phil
>>
>> Phil Gleghorn wrote:
>>> Hi all,
>>>
>>> (Apologies if this is a duplicate, my first post
>>> didn't come through.)
>>>
>>> I am testing a short job retention period (minutes) on
>>> a client, but only incremental jobs are being removed
>>> when I prune, the full jobs remain. This is the same
>>> whether the prune is done manually in the console or
>>> automatically at the end of a job. I get this in my
>>> production setup which is 1,36.3-1 and the 1.39.20
>>> beta. Does anyone have a workaround to this?
>>>
>>> My client config is:
>>>
>>> Client {
>>>   Name = oddball-fd
>>>   Address = oddball.nl.fatwire.com
>>>   FDPort = 9102
>>>   Catalog = MyCatalog
>>>   Password = "bacula"          # password for
>>> FileDaemon
>>>   File Retention = 30 days            # 30 days
>>>   Job Retention = 10 minutes
>>>   AutoPrune = yes                     # Prune expired
>>> Jobs/Files
>>> }
>>>
>>> *list clients
>>> +----------+-----------------+---------------+--------------+
>>> | clientid | name            | fileretention |
>>> jobretention |
>>> +----------+-----------------+---------------+--------------+
>>> ...
>>> |        2 | oddball-fd      |     2,592,000 |        
>>>  600 |
>>>
>>> Client: name=oddball-fd address=oddball.nl.fatwire.com
>>> FDport=9102 MaxJobs=1
>>>       JobRetention=10 mins  FileRetention=1 month 
>>> AutoPrune=1
>>>   --> Catalog: name=MyCatalog address=*None* DBport=0
>>> db_name=bacula
>>>       db_user=bacula MutliDBConn=0
>>>
>>> *list jobs
>>> ...
>>> |     3 | jobBackupOddball      | 2006-08-29 00:20:58
>>> | B    | F     |        
>>> |    15 | jobBackupOddball      | 2006-08-31 14:47:31
>>> | B    | I     |        
>>>
>>> *time
>>> 31-Aug-2006 14:57:32
>>> *prune
>>> You have the following choices:
>>>      1: Files
>>>      2: Jobs
>>>      3: Volume
>>> Choose item to prune (1-3): 2
>>> The defined Client resources are:
>>>      1: mercury-fd
>>>      2: oddball-fd
>>> Select Client (File daemon) resource (1-2): 2
>>> The current Job retention period is: 10 mins
>>> Continue? (yes/mod/no): yes
>>> Pruned 1 Job for client oddball-fd from catalog.
>>> *list jobs
>>> |     3 | jobBackupOddball      | 2006-08-29 00:20:58
>>> | B    | F     |        
>>>
>>> Most other config is default (pool, etc) from the beta
>>> kit.
>>>
>>> Regards,
>>> Phil 


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to