On the director side, you could use bconsole. You can do that from a
script, too.
On the fd side, you could write a ClientRunBeforeJob that creates a
"flag" file somewhere (say, create a file called
/var/run/baculaJobRunning), and a ClientRunAfterJob that removes it.
You can do the same thing on the director side, too, if the bconsole
approach is too complex.
le dahut wrote:
> My question was more "is there any check other programs can do to know
> if a bacula jobs is running ?"
> On the bacula-dir side ?
> On the bacula-fd side ?
>
> Thanks for your answer.
>
>
> Kevin Keane wrote :
>
>> No, that would be difficult to do because you can't simply say "ALL
>> other programs" need to be locked out. Some would have to stay running
>> just to keep the system going. If you are backing up things such as
>> databases or email systems, and are using snapshots, such a lockout
>> would defeat the purpose of the snapshot.
>>
>> If you do have such a conflict, you will need to resolve it on a
>> case-by-case basis. Usually, the ClientRunBeforeJob and
>> ClientRunAfterJob scripts can be used for that purpose.
>>
>> Restore doesn't need locks anyway because by default you are not
>> restoring to the same location where the file came from. Bacula expects
>> you to manually move it back in place - and shut down whatever program
>> may need to be shut down.
>>
>> le dahut wrote:
>>
>>> Hello,
>>>
>>> Does bacula manage locks Before/After Backup/Restore ?
>>>
>>> The idea is :
>>> * prevent other programs to run if a backup/restore is in process
>>> * prevent bacula to run backup/restore if another program is running
>>>
>>> the second point could also be :
>>> * make bacula backup/restore wait until another program has released its
>>> lock
>>>
>>>
>>> K.T.
>>>
>>>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
--
Kevin Keane
Owner
The NetTech
Find the Uncommon: Expert Solutions for a Network You Never Have to Think About
Office: 866-642-7116
http://www.4nettech.com
This e-mail and attachments, if any, may contain confidential and/or
proprietary information. Please be advised that the unauthorized use or
disclosure of the information is strictly prohibited. The information herein is
intended only for use by the intended recipient(s) named above. If you have
received this transmission in error, please notify the sender immediately and
permanently delete the e-mail and any copies, printouts or attachments thereof.
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|