Bacula-users

Re: [Bacula-users] Status of Python api?

2015-02-27 07:21:46
Subject: Re: [Bacula-users] Status of Python api?
From: Heitor Faria <heitor AT bacula.com DOT br>
To: S McGraw <smcg2297 AT frii DOT com>,bacula-users AT lists.sourceforge DOT net
Date: Fri, 27 Feb 2015 09:19:36 -0300
--
Heitor Medrado de Faria
+55 61 82684220
Precisa de treinamento Bacula presencial, telepresencial ou online? Acesse: 
http://www.bacula.com.br


>> Just an idea: you could use a RunBeforeJob Shell Script to create the
>number of volumes needed to complete a job. Something like that:
>>
>> echo "estimate job=BackupClient1 level=${Level}" |bconsole |grep -o
>-P 'bytes.{0,16}'
>>
>> Then clear the bytes= from the result, divide per 4.4Gb (?) and than
>create the needed volumes:
>>
>> echo "label pool=${Pool} storage=${Storage}
>volume=xxxx-shell-variable" |bconsole
>>
>> The full solution requires shell script knowledge that I don't have,
>but I think it's the closest thing to the Python script you had.
>> Good luck.
>
>That's an interesting suggestion.  I was worried the "estimate"
>command might be very slow but it seemed quick enough.  Perhaps a
>potential problem might be a difference between the estimate and
>actual bytes, perhaps because a large file was created in the
>interim.
>
>Another possibility occurred to me prompted by your idea... again
>in a RunBeforeJob script, label a fixed number of volumes (I can
>put a fairly accurate upper bound on the backup data size for each
>client) and after the job delete the volumes that were not used.
>I'm not immediately sure the best way to determine which weren't
>used but I think that won't be too hard.  I guess the risk here
>is that if the after job failed for some reason, the unused volumes
>would be left in the pool and would be used the next night.

You can run an AfterJob script even if job fails. I think it's the RunOnError 
option.

Best regards.


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users