[Bacula-users] Baculum, LDAP and disable the 'server basic auth'...

2023-01-31 Thread Marco Gaiarin


I've installed baculum using debian packages, all works as expected and
flawlessy.

Now i've tried to add LDAP auth support, also successfuly: auth wprks, user
imported.

But if i try to login, the HTTP 'basic auth' popup of the default user
'admin' created in setup phase still want the 'admin' password.

I've understood that (from docs):

 LDAP
 The Baculum Web can connect to the LDAP server to authenticate LDAP users. 
This method is realized by a HTML form in the Baculum Web.
 Once this method is enabled, the web server basic authentication can be 
disabled.


And i've on the apache virtualhost an entry like:

# Apache 2.4


SetEnvIf Request_URI "^/web/redirect$" noauth=1



Require env noauth
Require env REDIRECT_noauth

Require all granted


AuthType Basic
AuthName "Baculum Auth"
AuthUserFile 
/usr/share/baculum/htdocs/protected/Web/Config/baculum.users
Require not env noauth
Require not env REDIRECT_noauth
Require valid-user





I have to comment all the entry? Modify how?


Thanks.

-- 
  STOP. I wanna go home
  take off this uniform and leave the show  (Pink Floyd)




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


Re: [Bacula-users] Retention period calculation

2023-01-31 Thread Justin Case
Thanks for clarifying this, Ana,

so if I wanted my tier 1 storage to keep backups for 60 days, and my tier 2 
storage to keep backups for 120 days, would it be the best to set the retention 
periods as follows in the different resources:?
• client resources:
• file retention: 60
• job retention: 60
• tier1 pool resources:
• volume retention 70
• tier 2 pool resources:
• file retention 120
• job retention 120
• volume retention 130

Or what else would you propose?

Thank you for your time and effort!
 j/c

> On 31. Jan 2023, at 10:56, Ana Emília M. Arruda  
> wrote:
> 
> Hello Justin,
> 
> Sorry for the confusion!
> You are right, we recommend that *VolumeRetention is greater than or equal to 
> JobRetention".
> 
> So, the Volume will never get pruned before the Job Retention has expired.
> 
> Hope it is clear now.
> 
> Best,
> Ana
> 
> On Tue, Jan 31, 2023 at 10:43 AM Justin Case  wrote:
> Hi Ana, see below
> 
>> On 31. Jan 2023, at 10:16, Ana Emília M. Arruda  
>> wrote:
>> 
>> Hello Justin,
>> 
>> The problem is that you expect the Job doesn't get pruned from the Catalog 
>> (Job and File records deleted from the Bacula database) *before* the 
>> JobRetention value expires.
>> If you have a lower VolumeRetention and the volume gets pruned by using 
>> "prune volume expired yes", your jobs will be pruned before the JobRetention 
>> value.
>> 
>> And when the volume gets pruned, volstatus=Purged, it can be potentially 
>> reused by Bacula or truncated and the job data in the volume gets deleted.
>> 
>> This is why we usually recommend:
>> 
>> JobRetention greater than or equal to VolumeRetention
> 
> In your earlier mail you recommended the opposite:
> 
> 
>> On 30. Jan 2023, at 19:02, Ana Emília M. Arruda  
>> wrote:
>> 
>>  I strongly recommend you to set JobRetention less than or equal to 
>> VolumeRetention to avoid the volume to be pruned before the Job Retention 
>> has expired.
> 
> 
> Which is preferred?
> 
> 



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


Re: [Bacula-users] Retention period calculation

2023-01-31 Thread Ana Emília M . Arruda
Hello Justin,

Sorry for the confusion!
You are right, we recommend that *VolumeRetention is greater than or equal
to JobRetention".

So, the Volume will never get pruned before the Job Retention has expired.

Hope it is clear now.

Best,
Ana

On Tue, Jan 31, 2023 at 10:43 AM Justin Case  wrote:

> Hi Ana, see below
>
> On 31. Jan 2023, at 10:16, Ana Emília M. Arruda 
> wrote:
>
> Hello Justin,
>
> The problem is that you expect the Job doesn't get pruned from the Catalog
> (Job and File records deleted from the Bacula database) *before* the
> JobRetention value expires.
> If you have a lower VolumeRetention and the volume gets pruned by using
> "prune volume expired yes", your jobs will be pruned before the
> JobRetention value.
>
> And when the volume gets pruned, volstatus=Purged, it can be potentially
> reused by Bacula or truncated and the job data in the volume gets deleted.
>
> This is why we usually recommend:
>
> JobRetention greater than or equal to VolumeRetention
>
>
> In your earlier mail you recommended the opposite:
>
>
> On 30. Jan 2023, at 19:02, Ana Emília M. Arruda 
> wrote:
>
>  I strongly recommend you to set JobRetention less than or equal to
> VolumeRetention to avoid the volume to be pruned before the Job Retention
> has expired.
>
>
>
> Which is preferred?
>
>
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Retention period calculation

2023-01-31 Thread Justin Case
Hi Ana, see below

> On 31. Jan 2023, at 10:16, Ana Emília M. Arruda  
> wrote:
> 
> Hello Justin,
> 
> The problem is that you expect the Job doesn't get pruned from the Catalog 
> (Job and File records deleted from the Bacula database) *before* the 
> JobRetention value expires.
> If you have a lower VolumeRetention and the volume gets pruned by using 
> "prune volume expired yes", your jobs will be pruned before the JobRetention 
> value.
> 
> And when the volume gets pruned, volstatus=Purged, it can be potentially 
> reused by Bacula or truncated and the job data in the volume gets deleted.
> 
> This is why we usually recommend:
> 
> JobRetention greater than or equal to VolumeRetention

In your earlier mail you recommended the opposite:


> On 30. Jan 2023, at 19:02, Ana Emília M. Arruda  
> wrote:
> 
>  I strongly recommend you to set JobRetention less than or equal to 
> VolumeRetention to avoid the volume to be pruned before the Job Retention has 
> expired.


Which is preferred?


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


Re: [Bacula-users] Retention period calculation

2023-01-31 Thread Ana Emília M . Arruda
Hello Justin,

The problem is that you expect the Job doesn't get pruned from the Catalog
(Job and File records deleted from the Bacula database) *before* the
JobRetention value expires.
If you have a lower VolumeRetention and the volume gets pruned by using
"prune volume expired yes", your jobs will be pruned before the
JobRetention value.

And when the volume gets pruned, volstatus=Purged, it can be potentially
reused by Bacula or truncated and the job data in the volume gets deleted.

This is why we usually recommend:

JobRetention greater than or equal to VolumeRetention

This guarantees that jobs get pruned only when JobRetention has expired.
And your data is safe in the volume at least until JobRetention is reached.

Best,
Ana

On Tue, Jan 31, 2023 at 12:23 AM Justin Case  wrote:

> Hello Ana,
>
> I though about what you wrote and I am still wondering what would be the
> problem if a volume gets purged before the contained jobs retentions
> expire? This would remove the jobs and the corresponding files also from
> the catalog, ok, but where is the problem?
> I am Just trying to get a better understanding.
>
> Best
>  j/c
>
> On 30. Jan 2023, at 19:02, Ana Emília M. Arruda 
> wrote:
>
> Hello Antonino,
>
> I'm not sure I've understood your question. What does you mean by
> "CATALOGRETENTION"?
>
> There are only three retention values in Bacula: File, Job and Volume. I
> strongly recommend you to set JobRetention less than or equal to
> VolumeRetention to avoid the volume to be pruned before the Job Retention
> has expired.
>
> Best,
> Ana
>
> On Sat, Jan 28, 2023 at 11:26 AM Antonino Balsamo <
> a.bals...@officinapixel.com> wrote:
>
>> Hello,
>>
>> I have a shell script generating my bacula configs.
>>
>> Is there any enhancements, error or whatever in calculating the retention
>> period as per below?
>>
>> (it is a no-recycle scenario)
>>
>> #days to keep records in months, min 
>> 1RETENTION=2FILERETENTION=$(($RETENTION*30+40))
>> VOLUMERETENTION=$(($RETENTION*30+40))
>> JOBRETENTION=$(($RETENTION*30+90))
>> CATALOGRETENTION=$(($RETENTION*30+90))
>>
>>
>> thanks
>>
>> Antonino
>>
>>
>> ___
>> 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
>
>
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula upgrade

2023-01-31 Thread Ana Emília M . Arruda
Hello Yateen,

You should use the "postgres" user to run the update_postgresql_tables
script.

As you have installed Bacula 13 from scratch in the new server, please
remember to drop the bacula database created in a fresh install before
importing the current DB using dump.

Then, you run the update_postgresql_tables script.

Best,
Ana
On Tue, Jan 31, 2023 at 6:28 AM Yateen Shaligram Bhagat (Nokia) <
yateen.shaligram_bha...@nokia.com> wrote:

> Hello Ana,
>
> Thanks for your reply.
>
> Here is what I did...
>
> 1. Target for Bacula 13 upgrade is Ubuntu 22.4.
> 1. Installed postgresql 14 on Ubuntu 22.4
> 2. Installed  Bacula 13 using Deb package (dpkg command)
> 3. Dumped Bacula database from 9.4 installation (on CentOS 6)
> 4. Imported Bacula db dump into postgresql 14 on Ubuntu
> 5. Tried to start Bacula 13 director.
> 6. Got error message : Current Catalog version is 16, required version
> 1024.
>
> Plz let me know the username through which i should run the 
> upadate_postgresql_tables
> script, is it postgres user?
>
> Regards,
>
> Yateen
>
>
>
> Get Outlook for Android 
>
> --
> *From:* Ana Emília M. Arruda 
> *Sent:* Monday, 30 January, 2023, 23:27
> *To:* Yateen Shaligram Bhagat (Nokia) 
> *Cc:* bacula-users@lists.sourceforge.net <
> bacula-users@lists.sourceforge.net>
> *Subject:* Re: [Bacula-users] Bacula upgrade
>
> Hello Yateen,
>
> Have you already performed the upgrade? Have you checked if the Catalog
> version has been updated?
> Can you please let us know which platform you are using?
> I've checked the update_postgresql_tables script and it includes the
> upgrade from version 12-16 or 1014-1022 to 1024.
> Are you using packages or compiling from source code?
>
> Best,
> Ana
>
> On Mon, Jan 30, 2023 at 1:27 PM Yateen Shaligram Bhagat (Nokia) <
> yateen.shaligram_bha...@nokia.com> wrote:
>
>> Hi all,
>>
>>
>>
>> Is it possible to upgrade bacula version 9.4 (catalog database version
>> 16)  to version 13 (catalog database version 1024) directly as one step or
>> any intermediate step upgrades are required?
>>
>>
>>
>> I tried the direct upgrade, but there is no update_postgresql_tables
>> script for database version 16 to 1024.
>>
>>
>>
>> Please advise.
>>
>>
>>
>> Thanks
>>
>> Yateen S Bhagat
>> ___
>> 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] How to get the acces-key for bacula server installation

2023-01-31 Thread Fabio Scardaccio
Hello Ana,
Thanks for your answer, i already did It a few days ago.
Thanks

--
Fabio Scardaccio

Il mar 31 gen 2023, 10:03 Fabio Scardaccio  ha
scritto:

> Hello Ana,
> Thanks for your answer, i already did It a few days ago.
> Thanks
>
> --
> Fabio Scardaccio
>
> Il lun 30 gen 2023, 19:06 Ana Emília M. Arruda 
> ha scritto:
>
>> Hello Fabio,
>>
>> You just need to fill this form to get the download area code:
>>
>> https://www.bacula.org/bacula-binary-package-download/
>>
>> Best,
>> Ana
>>
>> On Thu, Jan 26, 2023 at 3:01 PM Fabio Scardaccio <
>> fabioscardac...@gmail.com> wrote:
>>
>>> Hello everyone,
>>>
>>> in the previous email I sent a request where the registration was missing 
>>> which I am now sending you hoping it is complete.
>>>
>>> Basically I need the code in question to install my bacula server on my 
>>> homelab.
>>>
>>> The installation will take place with:
>>>
>>> - *Rockylinux 8*-default_20210929_amd64.tar.xz on Proxmox containers
>>>
>>> - *Postgress* database
>>>
>>> - *Bacula version-13.0.1
>>> *
>>> - *Processor x86-64
>>> *
>>> My /etc/yum.repos.d/Bacula.repo file is:
>>>
>>> [Bacula-Community]
>>> name=CentOS - Bacula - Community
>>> baseurl=https://www.bacula.org/packages/@access-key@/rpms/@bacula-13.0.1/el7/x86_64/
>>> enabled=1
>>> protect=0
>>> gpgcheck=1
>>> gpgkey=https://www.bacula.org/downloads/Bacula-4096-Distribution-Verification-key.asc
>>>  
>>> 
>>>
>>> Thank you for your time
>>>
>>> --
>>> Fabio Scardaccio
>>> ___
>>> 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