[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bacula-users
Subject:    Re: [Bacula-users] Execute command on client
From:       Wanderlei Huttel <wanderleihuttel () gmail ! com>
Date:       2020-04-01 10:37:22
Message-ID: CADOApSATPO0ZE=nrYzVuYwR9HxzxM3J8vZEktHNKvQxxg7M6OA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello Pierre

Yes, it possible.
For run scripts in bacula there are basically 5 options:
RunBeforeJob - Run In server before backup (single line config)
RunAfterJob - Run In server after backup (single line config)
ClientRunBeforeJob - Run In client before backup  (single line config)
ClientRunAfterJob - Run In client after backup  (single line config)
RunScript -  (multiples line config)

You can take a look in the Job Resource in manual and look for "RunScript
{body-of-runscript}" parameter
https://www.bacula.org/9.6.x-manuals/en/main/Configuring_Director.html#SECT=
ION002130000000000000000



Best regards

*Wanderlei H=C3=BCttel*



Em qua., 1 de abr. de 2020 =C3=A0s 07:19, Pierre Bernhardt <
pierre@starcumulus.owl.de> escreveu:

> Hello,
>
> is it possible to execute scripts or commands on a client to e.g. create
> snapshots before
> backup them? I did not found a description about this feature.
> I need to execute a script/command before and after a backup has to been
> produced to
> create and remove the lvm snapshot.
>
> Cheers,
> Pierre
>
>
>
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>

[Attachment #5 (text/html)]

<div dir="ltr">Hello Pierre<br><br>Yes, it possible.<br>For run scripts in bacula \
there are basically 5 options:<br>RunBeforeJob - Run In server before backup (single \
line config)<div>RunAfterJob

 - Run In server after backup


(single line config)


<br>ClientRunBeforeJob - Run In client before backup  

(single line config)

<div>ClientRunAfterJob

 - Run In client after backup  

(single line config)

<br>RunScript -  

(multiples line config)

<br><br>You can take a look in the Job Resource in manual and look for \
&quot;RunScript {body-of-runscript}&quot; parameter<br><a \
href="https://www.bacula.org/9.6.x-manuals/en/main/Configuring_Director.html#SECTION00 \
2130000000000000000">https://www.bacula.org/9.6.x-manuals/en/main/Configuring_Director.html#SECTION002130000000000000000</a> \
<br><br><br></div><div><div dir="ltr" class="gmail_signature" \
data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div \
dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Best \
regards</div><div><br></div><div><span style="font-size:12.8px"><b><font \
color="#0b5394">Wanderlei \
Hüttel</font></b></span></div><div><br></div></div></div></div></div></div></div></div></div></div></div><br></div></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">Em qua., 1 de abr. de 2020 Ã s \
07:19, Pierre Bernhardt &lt;<a \
href="mailto:pierre@starcumulus.owl.de">pierre@starcumulus.owl.de</a>&gt; \
escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br> <br>
is it possible to execute scripts or commands on a client to e.g. create snapshots \
before<br> backup them? I did not found a description about this feature.<br>
I need to execute a script/command before and after a backup has to been produced \
to<br> create and remove the lvm snapshot.<br>
<br>
Cheers,<br>
Pierre<br>
<br>
<br>
<br>
_______________________________________________<br>
Bacula-users mailing list<br>
<a href="mailto:Bacula-users@lists.sourceforge.net" \
target="_blank">Bacula-users@lists.sourceforge.net</a><br> <a \
href="https://lists.sourceforge.net/lists/listinfo/bacula-users" rel="noreferrer" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/bacula-users</a><br> \
</blockquote></div>





_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic