Bacula-users

Re: [Bacula-users] One Volume per Backup Job

2012-05-11 01:51:50
Subject: Re: [Bacula-users] One Volume per Backup Job
From: Alex Lucas <alexander.lucas AT tlscontact DOT com>
To: John Drescher <drescherjm AT gmail DOT com>
Date: Fri, 11 May 2012 13:48:54 +0800
On 10/05/12 19:53, John Drescher wrote:
> On Thu, May 10, 2012 at 3:50 AM, Alex Lucas
> <alexander.lucas AT tlscontact DOT com> wrote:
>> Dears,
>>
>> I was trying to get one volume per job with this pool configuration:
>>
>> Pool {
>>  Name = File
>>  Pool Type = Backup
>>  Recycle = no                   # Bacula can automatically recycle Volumes
>>  AutoPrune = yes                # Prune expired volumes
>>  Volume Retention = 90 days     # how long to keep volumes
>>  Maximum Volume Bytes = 4G      # Limit Volume size to something reasonable
>>  Maximum Volume Jobs = 1        # One job per volume
>>  LabelFormat =
>> "${Client}_${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}_${Hour:p/2/0/r}h${Minute:p/2/0/r}m_${Level:o0-4:l}"
>>  Next Pool = VirtualFull
>> }
>>
>> It works well for jobs that complete successfully - volumes get created
>> properly and get marked as "Used" open backup completion. However there
>> are 2 problems when jobs fail:
>>
>> Example: I run job for JKT-nvr but the fd on it is not running - I get
>> job timeout but the following entry in 'list volumes':
>> | 1050    | JKT-nvr-fd_2012-05-10_15h35m_full     | Append    | 1
>> | 0          | 0        | 7776000      | 0       | 0    | 0         |
>> File      | 0                   |
>>
>> Next time I run a job (does not matter with which client) director will
>> try to use the volume above instead of creating a brand new one. Even if
>> I re-run the previous job for the same client I would like it to create
>> a new volume (since date/time are also in the LabelFormat).
>>
> It will do that because there is an available volume in the pool so it
> need not create a new one. Also remember changing the pool definition
> in bacula-dir.conf will only effect new volumes not existing volumes.
> The pool resource is a template on how to create new volumes.
Yes, this is clear.

>> How to archive one of the following for failed backup jobs:
>> a) mark auto-created volume as "Used", OR
>> b) delete the auto-created volume
>>
> Just mark the existing volume Used or Full.
How to do this? I tried RunAfterFailedJob just but %v variable is empty
on failed jobs even though the volume does get created and left in the
"Append" state. This is not a bug?

>
> John
Thanks,
Alex


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>