Re: [Bacula-users] dynamic fileset and /usr/global

2021-11-03 Thread Shaligram Bhagat, Yateen (Nokia - IN/Bangalore)
Thanks Uwe,

Well, I have done it the other way round.
I am now calling  the ClientRunBeforeJob script in the Fileset's File  
directive first, and then calling the actual dynamic file set creation script.

This has worked !

Regards,
Yateen
 

-Original Message-
From: Uwe Schuerkamp  
Sent: Wednesday, November 3, 2021 2:44 PM
To: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] dynamic fileset and /usr/global

On Tue, Nov 02, 2021 at 02:07:26PM +, Bill Arlofski via Bacula-users wrote:
> On 11/1/21 21:57, Shaligram Bhagat, Yateen (Nokia - IN/Bangalore) wrote:
> > Hi,
> >
> > We are using Bacula 9.4.4 on Centos.
> >
> > We use dynamic fileset using a script executed on the client.  Also there 
> > is a clientRunBeforeJob script.
> >
> > But we found that the dynamic fileset script is executed first and then the 
> >  clientRunBeforeJob script.
> >
> > We need to have it the other way round.
> >
> > How to accomplish it ?

A workaround would be to create the fileset in your "RunBeforeJob"
script, this way you could order the tasks around as you need them.

We use a few "dynamic" filesets in our setup too, but they're only dynamic in 
as far as they point to static files on the client containing the files and 
directories to back up.

These files get created dynamically and are then included in the client's 
fileset using the "< /var/tmp/fileset.txt" mechanism.

All the best,

Uwe

--
Uwe Schürkamp | email: 



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


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


Re: [Bacula-users] dynamic fileset and /usr/global

2021-11-03 Thread Uwe Schuerkamp
On Tue, Nov 02, 2021 at 02:07:26PM +, Bill Arlofski via Bacula-users wrote:
> On 11/1/21 21:57, Shaligram Bhagat, Yateen (Nokia - IN/Bangalore) wrote:
> > Hi,
> >
> > We are using Bacula 9.4.4 on Centos.
> >
> > We use dynamic fileset using a script executed on the client.  Also there 
> > is a clientRunBeforeJob script.
> >
> > But we found that the dynamic fileset script is executed first and then the 
> >  clientRunBeforeJob script.
> >
> > We need to have it the other way round.
> >
> > How to accomplish it ?

A workaround would be to create the fileset in your "RunBeforeJob"
script, this way you could order the tasks around as you need them.

We use a few "dynamic" filesets in our setup too, but they're only
dynamic in as far as they point to static files on the client
containing the files and directories to back up.

These files get created dynamically and are then included in the
client's fileset using the "< /var/tmp/fileset.txt" mechanism.

All the best,

Uwe

-- 
Uwe Schürkamp | email: 



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


Re: [Bacula-users] dynamic fileset and /usr/global

2021-11-02 Thread Heitor Faria
Hello Bill,

"Currently, it is "working as designed, but not as I expect it to"™  :)"

IMHO the FileSet script hack should not work after the BeforeJob RubScript. I 
don't think it isnt even possible to make such a Bacula code change without a 
lot of effort.
It is specifically that characteristic that allows (e.g.) dynamic FileSet's 
contents generation.

Regards,
--
MSc Heitor Faria (Miami/USA)
CEO Bacula LatAm
mobile1: + 1 909 655-8971
mobile2: + 55 61 98268-4220

América Latina
[ http://bacula.lat/]

 Original Message 
From: Bill Arlofski via Bacula-users 
Sent: Tuesday, November 2, 2021 12:41 PM
To: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] dynamic fileset and /usr/global

>On 11/1/21 21:57, Shaligram Bhagat, Yateen (Nokia - IN/Bangalore) wrote:
>> Hi,
>>
>> We are using Bacula 9.4.4 on Centos.
>>
>> We use dynamic fileset using a script executed on the client.  Also there is 
>> a clientRunBeforeJob script.
>>
>> But we found that the dynamic fileset script is executed first and then the  
>> clientRunBeforeJob script.
>>
>> We need to have it the other way round.
>>
>> How to accomplish it ?
>>
>> -Yateen
>>
>
>Hello Yateen,
>
>This is something I have noticed and have raised an internal ticket with the 
>Bacula Systems developers to ask this very same
>question a few weeks back.
>
>Currently, it is "working as designed, but not as I expect it to"™  :)
>
>
>Best regards,
>Bill
>
>--
>Bill Arlofski
>w...@protonmail.com
>
>
>
>___
>Bacula-users mailing list
>Bacula-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/bacula-users
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] dynamic fileset and /usr/global

2021-11-02 Thread Shaligram Bhagat, Yateen (Nokia - IN/Bangalore)
Thanks Heitor,

If I can call two fileset scripts on client one after another, that should 
solve the problem.

Good suggestion...

-Yateen

Get Outlook for Android<https://aka.ms/AAb9ysg>


From: Heitor Faria 
Sent: Tuesday, 2 November, 2021, 16:40
To: Shaligram Bhagat, Yateen (Nokia - IN/Bangalore); 
bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] dynamic fileset and /usr/global


Hello,

Maybe your FileSet script can call a second script at the end?
Or you can have a second FileSet script?

Regards,
--
MSc Heitor Faria (Miami/USA)
CEO Bacula LatAm
mobile1: + 1 909 655-8971
mobile2: + 55 61 98268-4220

América Latina
[ http://bacula.lat/]

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


Re: [Bacula-users] dynamic fileset and /usr/global

2021-11-02 Thread Bill Arlofski via Bacula-users
On 11/1/21 21:57, Shaligram Bhagat, Yateen (Nokia - IN/Bangalore) wrote:
> Hi,
>
> We are using Bacula 9.4.4 on Centos.
>
> We use dynamic fileset using a script executed on the client.  Also there is 
> a clientRunBeforeJob script.
>
> But we found that the dynamic fileset script is executed first and then the  
> clientRunBeforeJob script.
>
> We need to have it the other way round.
>
> How to accomplish it ?
>
> -Yateen
>

Hello Yateen,

This is something I have noticed and have raised an internal ticket with the 
Bacula Systems developers to ask this very same
question a few weeks back.

Currently, it is "working as designed, but not as I expect it to"™  :)


Best regards,
Bill

--
Bill Arlofski
w...@protonmail.com



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


Re: [Bacula-users] dynamic fileset and /usr/global

2021-11-02 Thread Heitor Faria
Hello,

Maybe your FileSet script can call a second script at the end?
Or you can have a second FileSet script?

Regards,
--
MSc Heitor Faria (Miami/USA)
CEO Bacula LatAm
mobile1: + 1 909 655-8971
mobile2: + 55 61 98268-4220

América Latina
[ http://bacula.lat/]___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] dynamic fileset and /usr/global

2021-11-01 Thread Shaligram Bhagat, Yateen (Nokia - IN/Bangalore)
Hi,

We are using Bacula 9.4.4 on Centos.

We use dynamic fileset using a script executed on the client.  Also there is a 
clientRunBeforeJob script.

But we found that the dynamic fileset script is executed first and then the  
clientRunBeforeJob script.
We need to have it the other way round.

How to accomplish it ?

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