[Bacula-users] New release Bacularis 4.1.0

2024-09-15 Thread Marcin Haba
Hello Everybody,

We are pleased to let you know about a new Bacularis release 4.1.0. We
continue the action "Bacula for Everybody!" for making first contact
with Bacula easier for new users and this time we prepared a new file
storage wizard. It enables to create both single storage devices and
multi-device autochangers as well.

Second significant change is support for plugins. This is a friendly
plugin interface to easily extend Bacularis for new functions. The
first step in this feature is support for the web interface plugins.
To prepare a plugin you will need a bit of knowledge about PHP
language and object-oriented programming. If you are not a strong PHP
programmer, don't worry, it is a really simple interface to create new
plugins. We also prepared two new plugins: for e-mail notifications
and for Mattermost notifications.

Finally, we would like to thank the entire Community for bug reports,
ideas and for being active. With your involvement we can much more.

Here you can find materials that present new functions:
 - [VIDEO] New file storage wizard: https://www.youtube.com/watch?v=OFOJ5P14jFI
 - [VIDEO] Plugin support:  https://www.youtube.com/watch?v=6Y-nQ8ysa10
 - [DOC] Plugin interface documentation:
https://bacularis.app/doc/plugins/basic.html

For more details, please look at the release announcement:
https://bacularis.app/news/91/36/New-release-Bacularis-4.1.0

Happy using Bacularis!

On behalf of the Bacularis Team
Marcin Haba (gani)


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


Re: [Bacula-users] restore jobs ignore where

2024-09-09 Thread Marcin Haba
On Mon, 9 Sept 2024 at 08:13, Mehrdad Ravanbod
 wrote:
>
> Hi marcin
>
> I got it to work thanx to your tip, there is just one detail which I
> thought u may like to know
> Unlike linux, or this to work in windows, one needs to use the strip
> prefix first and strip the windows driver letter designation
>
> so first Strip prefix 
>
> and then add prefix, not sure exactly if one can have a wild card in
> drive letter strip for cases where one is not sure about it, i have to
> do some tests

Hi Mehrdad,

For removing the drive letters during restore, you can try to set the
Strip prefix option like this:

Strip prefix = [A-Za-z]:

and add prefix option to your desired restore path:

Add prefix = /your/restore/path

Best regards,
Marcin Haba (gani)


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


Re: [Bacula-users] restore jobs ignore where

2024-09-06 Thread Marcin Haba
On Fri, 6 Sept 2024 at 14:44, Mehrdad Ravanbod
 wrote:
> Hi everyone
>
> I am testing Bacula and have encountered a strange problem. When i try
> to restore files from a backup and specify another directory with suffix
> added (using the "Relocate files with prefix and/or suffix" option in
> bacularis), bacula ignores the directory path i specify and restores to
> original path, it however does add the suffix  i specify
>
> Anyone knows/understands why?? is this a bug in bacularis or working as
> intended? should i use bconsole for this or is there something else(some
> other option) i have not seen so far

Hello Mehrdad,

The file relocation options for users using it for the first time
require some tries to see how it works.

The restore directory path does not work with them, because it is
overwritten by these options. To change the destination path with used
the file relocation options, there could be used "Add prefix" option
with a directory path, for example

Add prefix = /tmp/myrestore/

More details about the file relocation option you can find here:

https://www.bacula.org/15.0.x-manuals/en/main/Restore_Command.html#SECTION003060

Best regards,
Marcin Haba (gani)


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


Re: [Bacula-users] postgres load at restore

2024-08-30 Thread Marcin Haba
On Fri, 30 Aug 2024 at 19:17, Phil Stracchino  wrote:
> I tried running a restore of my workstation this morning, and it still
> took more than four minutes to build the directory tree.
>
>
> Does this seem as though the bvfs cache is being built correctly and
> used?  Is there a way I can test and verify that it is working correctly?

Hello Phil,

I don't know any dedicated tool to check Bvfs cache but there can be
used the .bvfs_* bconsole commands for that. It can be .bvfs_lsdirs
like below:

If cache for jobid 42328 is not created, the .bvfs_lsdirs lists only this:

# Check if cache exists for a jobid
.bvfs_lsdirs jobid=42328 path=
84773 0 0 0 A A A A A A A A A A A A A A .

Once the cache is created, we are able to go through the Bvfs
directory structure:

# Update Bvfs cache
.bvfs_update jobid=42328

# Check if cache exists for a jobid
.bvfs_lsdirs jobid=42328 path=
84773 0 0 0 A A A A A A A A A A A A A A .
84772 0 0 0 A A A A A A A A A A A A A A /
.bvfs_lsdirs jobid=42328 path=/
84772 0 0 0 A A A A A A A A A A A A A A .
84773 0 0 0 A A A A A A A A A A A A A A ..
86863 0 0 0 A A A A A A A A A A A A A A home/
.bvfs_lsdirs jobid=42328 path=/home/
86863 0 0 0 A A A A A A A A A A A A A A .
84772 0 0 0 A A A A A A A A A A A A A A ..
86862 0 0 0 A A A A A A A A A A A A A A gani/

Best regards,
Marcin Haba (gani)


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


Re: [Bacula-users] postgres load at restore

2024-08-30 Thread Marcin Haba
On Fri, 30 Aug 2024 at 09:46, Stefan G. Weichinger  wrote:

>
> Sounds great. May I ask why this isn't enabled by default?
>

Hello Stefan,

Yes, it is a good practice and a good idea. I think it isn't enabled by
default because not every Bacula user uses the Bvfs restore.


> 2nd: I add this to my JobDefs, OK? Did right now.
>

Great.


> I tried to run ".bvfs_update jobid=5252" in bconsole and assumed this
> would trigger a cache build for that job. No special activity to see now
> ... no postgresql load ... Do I misunderstand here?
>

It can depend on couple of things, such as:

1) if the .bvfs_update was already called for the jobid (Bacularis restore
wizard calls the .bvfs_update too). If yes, it can mean that this jobid is
already in cache, so nothing to do for .bvfs_update.

2) if for this job with a given jobid there are many new paths to process.
(incremental/differential jobs in most cases are smaller than full)


> I will run a job now with the enhanced JobDef, and check
>

Good luck!

Best regards,
Marcin Haba (gani)
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] postgres load at restore

2024-08-29 Thread Marcin Haba
On Fri, 30 Aug 2024 at 01:22, Phil Stracchino  wrote:

> > Yes, I see your idea. This full rebuild will cost creating all cache
> > from scratch. For many jobs and paths it will take lots of resources.
>
> Well, I just tested my revised dbcheck script with inline bvfs cache
> clear and rebuild, and it worked fine, runs for about two hours.  My
> bvfs update job to run after all backups needs a little work though.
> The job definition looks like this:
>

Hello Phil,

Great. Two hours isn't that bad.


> But when run manually from BAT, BAT won't let me specify a level, runs
> .bvfs_update with an empty level, then errors out because "" is not a
> valid level.
>

 It looks like a bug.

Best regards,
Marcin Haba (gani)
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] postgres load at restore

2024-08-29 Thread Marcin Haba
On Thu, 29 Aug 2024 at 20:14, Phil Stracchino  wrote:

> > In this meaning the dbcheck behavior and block removing orphaned paths
> > for me is understandable to avoid rebuilding everything.
>
> Oh yeah, the consistency problem is fully understandable, it just seems
> an oversight that dbcheck seems unable to fully handle the presence of a
> populated bvfs cache.  It seems like a part of dbcheck should be
> checking and updating the bvfs cache if present.
>
>
> > BTW: When the cache is manually cleared by '.bvfs_clear_cache yes' it
> > will be completely (re)built anyway.
>
>
> Gotcha.
>
> If I do a .bvfs_update WITHOUT specifying a jobid, will it do a full
> rebuild?  I'm thinking what I'd LIKE to do is the following:
>

Hello Phil,

The .bvfs_update without specifying a jobid does update for all jobs :-) I
mean all jobs for which the cache has not been created yet. It is still the
incremental process.


> NIGHTLY
> Run all scheduled client backup jobs
> Incremental rebuild bvfs cache
> Run catalog backup
>
> WEEKLY
> Clear bvfs cache
> Run dbcheck
> Full rebuild bvfs cache


Yes, I see your idea. This full rebuild will cost creating all cache from
scratch. For many jobs and paths it will take lots of resources.

I have to admit I don't see an easy solution to run dbcheck for paths and
keep Bvfs cache.

Best regards,
Marcin Haba (gani)
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] postgres load at restore

2024-08-29 Thread Marcin Haba
On Thu, 29 Aug 2024 at 18:42, Phil Stracchino  wrote:

> On 8/29/24 12:25, Marcin Haba wrote:
> > 1) This is an incremental process. It means that the cache is not
> > re-created for jobs and paths that already exist there. Added are only
> > new ones. Because of that for newly configured backup jobs this cache
> > can take longer than for others.
> >
> > 2) This process can be triggered asynchronously to the restore process.
> > There is possible to update this cache not in a moment when the files
> > from restore are urgently needed, but in a moment when the backup job
> > finishes work. This way when you go to the restore wizard, the cache is
> > ready. It can be done in the Job Runscript directives like these:
> >
> > Runscript {
> >  Runs When = After
> >  Runs On Client = no
> >  Console = ".bvfs_update jobid=%i"
> > }
> >
> > In older Director versions there was a bug in running the .bvfs_update
> > command in the Runscript Console directive:
> >
> >
> https://gitlab.bacula.org/bacula-community-edition/bacula-community/-/issues/2419
> <
> https://gitlab.bacula.org/bacula-community-edition/bacula-community/-/issues/2419
> >
> >
> > but I think in newer Bacula versions it should be fixed already. For
> > older Director versions it can be done by using script and putting the
> > .bvfs_update command inside it, like this:
> >
> > Runscript {
> >  Runs When = After
> >  Runs On Client = no
> >  Command = "/path/to/script/script.sh %i"
> > }
>
>
> The bvfs cache DOES greatly improve restore performance, but the one
> showstopper drawback I found (beyond the runscript bug) was that if you
> pre-populate the bvfs cache, dbcheck will refuse to clear orphaned Path
> entries unless you clear the bvfs cache first.
>
> Marcin, do you have any insights on this issue?
>

Hello Phil,

I think that it's due to the nature of the Bvfs cache. In the Bvfs
'pathhierarchy' table is stored the directory tree structure in form pathid
-> parent pathid (ppathid). If some paths are orphaned, it means that
theoretically they could to be removed from Bvfs cache as well. But it is
hard to remove any path from the 'pathhierarchy' without rebuilding the
cache because otherwise the cache will be incomplete.

For example, we have the following path hierarchy relation written in the
'pathhierarchy' table (I use pathids):

1 => 2 => 3 => 4 => 5

If the path with pathid 3 is orphaned and removed, then in the Bvfs cache
we have the path relation:

1 => 2 => ??? => 4 => 5

In this meaning the dbcheck behavior and block removing orphaned paths for
me is understandable to avoid rebuilding everything.

BTW: When the cache is manually cleared by '.bvfs_clear_cache yes' it will
be completely (re)built anyway.

Best regards,
Marcin Haba (gani)
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] postgres load at restore

2024-08-29 Thread Marcin Haba
On Thu, 29 Aug 2024 at 15:30, Stefan G. Weichinger  wrote:

>
> today I had to restore 2 files from a job with ~800GB and 785318 files in
> it
>
> this is bacula-15.0.2 and bacularis-3.2.1 on debian-12.6
>
> When I tried the restore in bacularis and chose the needed Job-ID for
> selection of the files, the postgresql-DB went to 100% (on one core) and
> the webserver timed out with 504 ...
>

Hello Stefan,

Bvfs cache is a great function in Bacula that has many advantages.
Unfortunately it also has some disadvantages. Before this cache is created
it takes some time and resources to create it. Once it is created, then
things in the restore process go quicker and better, but if it isn't
created, then it can happen that for many records and not tuned database it
can finish with a timeout.

There are two good news for this creating cache issue:

1) This is an incremental process. It means that the cache is not
re-created for jobs and paths that already exist there. Added are only new
ones. Because of that for newly configured backup jobs this cache can take
longer than for others.

2) This process can be triggered asynchronously to the restore process.
There is possible to update this cache not in a moment when the files from
restore are urgently needed, but in a moment when the backup job finishes
work. This way when you go to the restore wizard, the cache is ready. It
can be done in the Job Runscript directives like these:

Runscript {
Runs When = After
Runs On Client = no
Console = ".bvfs_update jobid=%i"
}

In older Director versions there was a bug in running the .bvfs_update
command in the Runscript Console directive:

https://gitlab.bacula.org/bacula-community-edition/bacula-community/-/issues/2419

but I think in newer Bacula versions it should be fixed already. For older
Director versions it can be done by using script and putting the
.bvfs_update command inside it, like this:

Runscript {
Runs When = After
Runs On Client = no
Command = "/path/to/script/script.sh %i"
}

For your question about increasing the web server timeout it can help that
the timeout will not occur but it is a bit more like a treating effect, not
treating the cause. In my opinion the runscript way can give more profits
here.

For database tuning, sure, it is always a good move. I know this tool for
that:

https://pgtune.leopard.in.ua/

For the working restore in Bconsole, the Bvfs restore and Bconsole restore
are two different topics. They share some code, but they are not comparable
in this aspect. The Bconsole restore does not create the Bvfs cache.

Good luck with your tries with Bvfs. Please note that in the Bvfs restore
process there is one more key moment in the last wizard step but for 2
files to restore and with PostgreSQL database I am sure that you will not
experience it :-)

Best regards,
Marcin Haba (gani)
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] New release Bacularis 4.0.0

2024-08-25 Thread Marcin Haba
Hello Everybody,

We are glad to announce a new Bacularis 4.0.0. This is a new major release.
It provides in the install wizard a new capability to install and configure
the complete Bacula environment to work with Bacularis. It means that to
install Bacularis first time having the Bacula environment is no longer
required. This function can be specially useful for new users who don't
know Bacula and who would like to try Bacula in an easy way. At start,
Bacularis wizard supports nineteen various Linux distributions and
versions. This move is a first step in organized by the Bacularis Project a
global action named "Bacula for Everybody!" which the main goal is to
popularize using Bacula. More information about it you can find here:

https://bacularis.app/news/88/36/Action-Bacula-for-Everybody

This new function is presented here:

https://www.youtube.com/watch?v=GnS9inZEvJQ

In addition, we have added some new functions and improvements such as bulk
run job action in the job list, the repository auth configuration on
deployment page or a new deployment function to deploy the catalog
database. We updated the SELinux module as well. At the end we fixed some
bugs reported by the Community.

The release announcement:
https://bacularis.app/news/89/36/New-release-Bacularis-4.0.0

Have good installations and upgrades.

On behalf of the Bacularis Team
Marcin Haba (gani)
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Defining file sets in bacularis

2024-08-22 Thread Marcin Haba
On Thu, 22 Aug 2024 at 16:24, Mehrdad Ravanbod 
wrote:

>
> Hi guys
>
> Is there an easy way to define File sets in bacularis, i know one can
> define file sets when creating jobs, but aside from that, i think this
> exists in Baculum, but can not find it in bacularis
>

Hi Mehrdad,

In Bacularis managing FileSets you can find in this path:

[Main menu] => [Page: Director] => [Tab: Configure director] => [SubTab:
FileSet]

Best regards,
Marcin Haba (gani)
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula 15.0.2 and Baculum 11.0

2024-08-19 Thread Marcin Haba
On Mon, 19 Aug 2024 at 14:16, Mehrdad Ravanbod 
wrote:

> Hi
>
> I have recently installed Bacula and Bacularis, i did not install v. 15
> simply because it is too new, but installing bacularis I have seen no
> mention of incompatibilities with verion 15, and I have not seen it
> mentioned anywhere, and I am pretty sure Marcin would have mentioned it,
> since he is pretty active
>
> So unless he has said it somewhere and i have missed it, i think it is
> pretty safe to assume that bacularis and even baculum should have no
> problem with Bacula 15
>

Hi Mehrdad,

Yes, I confirm that Bacularis is fully compatible with Bacula 15. To
support new Bacula versions we use the approach described in the last
section here:

https://bacularis.app/doc/brief/before-you-start.html#will-bacularis-work-with-my-bacula-version

For Baculum, it has implemented a basic support. It still requires more
work specially for new directives.

Best regards,
Marcin Haba (gani)
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula 15.0.2 and Baculum 11.0

2024-08-18 Thread Marcin Haba
On Mon, 19 Aug 2024 at 03:29, Rob Gerber  wrote:

>
> I hope someone else on this list can shed some light on this. Perhaps
> Marcin?
>

 Hello Everybody,

Thanks, Rob. Yes, I will try to explain it.

The latest Baculum release is 15.0.2 released as usual together with Bacula
15.0.2. It can be installed manually following on this install instruction:

https://baculum.app/doc/brief/installation.html#manual-installation

As you correctly noticed the Baculum repositories with Baculum 11.0 are old
and not updated for a long time. I can't provide any sure information about
it. It causes that Baculum users need to use manual installation or
alternative ways maintained by the Community users. I know that some
operating systems provide Baculum packages (Alpine, ALT Linux...) I have
also seen the Baculum projects on Docker Hub and some install scripts on
GitHub.

For the question about compatibility Baculum 11 with Bacula 15,
unfortunately they are not compatible.

Best regards,
Marcin Haba (gani)
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Updated 15.02

2024-08-15 Thread Marcin Haba
On Wed, 14 Aug 2024 at 20:13,  wrote:

> As you can see here the lsdirs picks up that theres a d:/ drive, but the
> lsfiles shows nothing.
>

Hi Dave,

I would not expect to see any files in case of this command:

.bvfs_lsfiles  jobid="419440,41925,91907,41874" path="" limit="2000"

because it is the main path on Windows host where there are listed the
drive letters. To see files you need specify the path like this:

.bvfs_lsfiles  jobid="419440,41925,91907,41874" path="d:/Company
Files/Private/Archive Files/All Departments/School Folders/RECIPES/"
limit="2000"

(the path can be different, of course)


> A standard list files for those jobids snippet shows as follows
>
>
>
> Here you can see after trying the lsfiles command it just moves back to
> the command prompt
>
>
>
> I thought it may have been to a database fault so I attempted an upgrade
> to 11, Silly mistake!!!
>
>
>
> Then realised I didn’t have a backup of the original as the backup command
> isn’t working either but I will leave that for a minute. As I was already
> at disaster point I deleted the database and created a new one using the
> create database and create tables command, then started full backups of all
> my clients.
>
>
>
> Im now faced with this error when selecting a job from the job list and
> the directory listing still does not work on the new jobs completed. Is
> this a baculum fault or bacula?
>

For this error it is known problem reported here:

https://gitlab.bacula.org/bacula-community-edition/bacula-community/-/issues/2722

Fortunately it is fixed now, however there isn't any Baculum version yet
that includes this fix.

Best regards,
Marcin Haba (gani)
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Updated 15.02

2024-08-04 Thread Marcin Haba
On Sun, 4 Aug 2024 at 21:10,  wrote:

> HI All
>
>
>
> Last night I updated my Bacula to version 15.02 along with the baculum api
> and baculum web.
>
>
>
> I have been playing today to check I’m all working however I have an issue
> with the restore wizard where it doesn’t list any files in baculum, If I
> use bconsole and the list files command I see the files listed correctly
> but when running the .bvfs_lsfiles jobid=”44092” path=”” I get nothing
> returned, ive checked the debug log and there is no error produced.
>
>
>
> Ive tried clearing the bvfs cache but still have the same error.
> Everything else in baculum is working fine
>

Hello Dave,

Does this bconsole command return something?

.bvfs_lsdirs jobid=”44092” path=””

I would propose to set debug on the Director side with this bconsole
command:

setdebug level=600 tags=bvfs,sql trace=1 dir

The debug file you will find in the Director working directory.

Best regards,
Marcin Haba (gani)
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Configuration problems with Baculum

2024-08-04 Thread Marcin Haba
On Sun, 4 Aug 2024 at 06:00, Geoff Baker  wrote:

> Good Afternoon,
>
> I am using Ubuntu Server 2024-04 LTA, Bacula-Community 15.0.2 focal,
> Baculum 11.0.6, and mysql 8.0.39-0
>
> As part of my install procedures or when any changes are made to Bacula
> config files, I run the following:
>
>- bacula-dir -t -c bacula-dir.conf no errors produced
>- bacula-sd -t -c bacula-sd.conf  no errors produced
>- bacula-fd -t -c bacula-fd.conf   no error produced
>- bconsole -t -c bconsole.confno errors produced
>
> But when I undertake various API commands on the Welcome Baculum API
> default page, I get the following errors:
>
>
>- clients:Internal error. Component property
>ClientRecord.plugins not defined
>- volumes:Internal error. Component property
>VolumeRecord.protected not defined
>- jobs:Internal error. Component property
>JobRecord.realstarttime no defined
>
> Hello Geoff,

Baculum 11.0.6 is too old for Bacula 15.0.2.

To make it working you need to use the latest Baculum 15.0.x from the
Bacula Git repository.

Best regards,
Marcin Haba (gani)
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacularis wants to connect to hardcoded port 9097

2024-07-31 Thread Marcin Haba
On Wed, 31 Jul 2024 at 15:20, Kees Bakker  wrote:

> That was already done. "Test configuration" marks all sections with OK.
>
> Something is working, because I can see the Storage configuration. Client
> configurations are visible too, except they all show the data from the one
> FD Client.
> However, the "Configure director" tab is missing.
>

Hello Kees,

OK, so you have the bdirjson configured. This information about configured
components is not taken every time but only once - when the API host is
activated on the web interface. So, if you have more API hosts than one you
can switch between them on the API host combobox at the top right side of
the web interface. Alternatively  you can just log out and log in. This way
the web interface will know the new bdirjson settings.


>
>
>
>>
>> 2. If I select one of the other clients (not the client where Apache is
>> running) and go to the details of the client, next click "Configure file
>> daemon" tab, I am getting the details of the client where Apache is running
>> (in other words the FD client where the Director is). There is no error
>> message, but this is clearly wrong. Is this a known issue?
>>
>
> On the Client details page you can see the main FD settings from Director
> host if on the FD side does not work Bacularis API. This is default
> behavior. It could be better, I know.
>
> I think it is a bug. Not "it could be better" :-)
>

:-)


>
> Another case when it can happen is if the Bacularis API is installed and
> configured on the FD host but the FD address used in Bacula and that
> Bacularis FD API host address are different. In this case you can switch
> the FD API host to the right one on the Client details page on the green
> menu bar on the right side. There is a combobox with the FD API hosts to
> select.
>
>
> Until now I have a hard time understanding where the API component lives.
> You make it sound as if I can have a separate API component installed
> somewhere. That's not the case. There is only a Bacularis package to be
> installed, which is a web interface to Bacula.
>

Yes, it is true. Thanks for your feedback.

Best regards,
Marcin Haba (gani)


-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacularis wants to connect to hardcoded port 9097

2024-07-31 Thread Marcin Haba
On Wed, 31 Jul 2024 at 14:08, Kees Bakker  wrote:

>
> I have now enabled Config. Two problems:
>
> 1. On the Director details page, it does not show the "Configure director"
> tab.
>

Hello Kees,

To have the configuration function enabled, this config capability needs to
be enabled in the API. It is this section in the initial wizard where
originally you answered 'no'. To enable it you don't need to go through all
the wizard once again, but you can go to the API panel

[Main menu] => [Page: API Panel]

then log in to the API panel and then please go to:

[Main menu] => [Page: Settings] => [Tab: Config]

Alternatively it is also available at this address:

https://YOUR_HOST/panel/settings/#settings_config

There you can configure which Bacula components you would like to use with
this API instance. In this case it will be Director, so you need to
configure the bdirjson tool settings in that form.


>
> 2. If I select one of the other clients (not the client where Apache is
> running) and go to the details of the client, next click "Configure file
> daemon" tab, I am getting the details of the client where Apache is running
> (in other words the FD client where the Director is). There is no error
> message, but this is clearly wrong. Is this a known issue?
>

On the Client details page you can see the main FD settings from Director
host if on the FD side does not work Bacularis API. This is default
behavior. It could be better, I know.

Another case when it can happen is if the Bacularis API is installed and
configured on the FD host but the FD address used in Bacula and that
Bacularis FD API host address are different. In this case you can switch
the FD API host to the right one on the Client details page on the green
menu bar on the right side. There is a combobox with the FD API hosts to
select.

Best regards,
Marcin Haba (gani)

-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacularis wants to connect to hardcoded port 9097

2024-07-31 Thread Marcin Haba
On Wed, 31 Jul 2024 at 11:36, Kees Bakker via Bacula-users <
bacula-users@lists.sourceforge.net> wrote:

> Hi,
>
> It seems that Bacularis has port 9097 hardcoded somewhere.
>
> I've setup Apache to do Bacularis. But not with the supplied example of
> using port 9097. I'm just using port 433 with a proper SSL certificate.
> Bacula Dir/SD/FD were already running on this system, installed with
> Ubuntu apt.
>
> The configuration went well, I think. (I don't want Bacularis to mess with
> editing the Dir/SD/FD configuration. Only that part was: no)
>
> As soon as the initial setup finished the Dashboard came up. However, it
> keeps popping up
>
> Error code: 100
> Message: Problem with connection to remote host. cURL error 7: Failed to
> connect to localhost port 9097 after 0 ms: Connection refused.
>
> Huh? Where is that 9097 coming from? Nowhere in the settings there is an
> item for this.
>

Hello Kees,

This port setting was in advanced options of the initial wizard. Once the
wizard is finished, this port is used on the web interface side in API host
config.

[Main menu] => [Page: Security] => [Tab: API hosts] => [Edit: 'Main' host].

You can update it there.

For the configuration part, Bacularis has an option to use Bacula configs
in read-only mode for all or for selected Bacula resources and Bacula
components. If you are interested in, you can see it on this video guide:

https://www.youtube.com/watch?v=ZuTsuGMEms8

Best regards,
Marcin Haba (gani)

-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Error Code 4

2024-07-23 Thread Marcin Haba
On Wed, 24 Jul 2024 at 06:41, Murugavel Rajendiran <
murugavel.rajendi...@chainsys.com> wrote:

> Hi Marcin,
>
> while adding client shows below error,
>

Hi Murugavel,

This error is because permissions to the Director configuration file are
not sufficient. In the Troubleshooting chapter of the Bacularis
documentation you can find a solution for that:

https://bacularis.app/doc/brief/troubleshooting.html#permission-denied-error-when-saving-bacula-configuration

Best regards,
Marcin Haba (gani)

-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Error Code 4

2024-07-23 Thread Marcin Haba
On Tue, 23 Jul 2024 at 20:53, Murugavel Rajendiran <
murugavel.rajendi...@chainsys.com> wrote:

> Thank you for your response,
>
> Deployment has been completed through the remote.
> I don't know what are details will submit while add client..
>

Hello Murugavel,

The details in the add client form are required to add the new Client to
the Director. The most important to complete are the following:

Name = SOME_CLIENT_NAME
Password = PASSWORD_THE_SAME_AS_IN_FD_CONFIG_bacula-fd.conf
Address = FD_ADDRESS
Catalog = CATALOG_RESOURCE_NAME_ON_THE_DIRECTOR_SIDE

For example:

Name = myclient-fd
Password = strong_secret_password
Address = 192.168.1.30
Catalog = MyCatalog

I would propose to read the Bacula Client documentation at Bacula.org.
Currently the Bacula.org service is unavailable (Error 503) but I am sure
that it will be fixed quickly.

Best regards,
Marcin Haba (gani)


-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Error Code 4

2024-07-23 Thread Marcin Haba
On Tue, 23 Jul 2024 at 17:23, Murugavel Rajendiran <
murugavel.rajendi...@chainsys.com> wrote:

> Hi Marcin,
>
> Thanks for the information,
>
> Deployment has completed but can't able to add client to run job,
> Kindly give me the instructions method from start to finish in front end.
> Also need to take client backup from server.
> Kindly give me the differentiation between backuppc and our bacukaris.
>

Hello Murugavel,

You can have a problem with adding any client to Bacula via Bacularis
because the bconsole is not able to connect to the Director. Without
solving this problem it can be hard to go futher with adding clients.

>From your message I understood that you did a deployment and it has been
completed. Could I ask you about providing more details about it? I mean:
what you deployed and how? This could help us to understand what is already
installed and what could be missing.

For the instruction of adding a new Bacula Client there are a couple of
ways of doing it:

1) if you have the Bacula Client installed, you can add it to the Director
using in Bacularis:

[Main menu] => [Page: Clients] => [Button: Add client]

2) if you don't have the Bacula Client installed, you can install it and
then follow on instruction in point 1)

3) if you don't have the Bacula Client installed, you can use the
deployment function in Bacularis that will install remotely Bacularis and
Bacula components. All of them will be ready to use with Bacularis without
additional actions.

For the question about differences between BackupPC and Bacula, I don't
know any this type of comparison.

Best regards,
Marcin Haba (gani)

-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Error Code 4

2024-07-23 Thread Marcin Haba
Hello Murugavel,

This error means that the bconsole used by Bacularis is not able to connect
to the Director. It is a problem between communication Bconsole <=>
Director and bconsole exits with the exit code 1.

I would propose to check it manually in the command line by running
bconsole. The best is to run it with the same user used by the web server
running Bacularis. Maybe the Director is not working or it is not
accessible?

Please let us know about this test result.

Best regards,
Marcin Haba (gani)

On Tue, 23 Jul 2024 at 15:58, Murugavel Rajendiran via Bacula-users <
bacula-users@lists.sourceforge.net> wrote:

> Hi,
>
> Received alert given below
> [image: image.png]
> Also cant able to add clients,
>
>
> Thanks & Regards,
> *Murugavel R*
> *Linux Administrator - Infra Support.*
> murugavel.rajendi...@chainsys.com
> www.chainsys.com
>
>
>   A Trusted innovator in the API Economy, Data Management space, and ERP
> Implementations
> *850+ Improvers* | *5+ Locations* | *500+ Customer Partners.*
> [image: LinkedIn] <https://www.linkedin.com/company/chain-sys> [image:
> Facebook] <https://www.facebook.com/chainsyscorp> [image: Twitter]
> <https://twitter.com/chainsys> [image: Youtube]
> <https://www.youtube.com/chainsys>
> [image: Oracle partner]
> [image: Salesforce registere ISV partner]
> [image: SAP partner]
>
>
>
> 
> Disclaimer:
> This email and any attachments to it may be confidential and are intended
> solely for the use of the individual to whom it is addressed.
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] What is a API instance for Bacularis

2024-07-23 Thread Marcin Haba
On Tue, 23 Jul 2024 at 09:47, Kees Bakker  wrote:

> Hi Marcin,
>
>
> Thanks for your feedback about trying to use Bacularis docker images.
>
> Each of these docker image types has in the description a chapter named
> "About this image". There is information about what it contains and for
> what purposes it could be used. For this "bacularis-web" we can see the
> information:
>
> "It contains a pure the Bacularis web interface without API layer. It can
> be used to connect external Bacularis API server(s) in containers or
> outside them. If you would like to connect Bacularis API ran in containers,
> you can use dedicated for this purpose images:
>  - for File Daemons bacularis-api-fd
>  - for Storage Daemons bacularis-api-sd
>  - for Directors bacularis-api-dir"
>
>
> I didn't want to use those because I already have a working DIR+SD and
> FDs. I just want the API, ha ha.
>

Hello Kees,

Yes, if you want to use this image, having the API(s) is necessary. It is
the purpose of this 'bacularis-web' container image - to have a web
interface in the container and connect the API instances. The communication
between the web interface and API goes through http(s), so for the web
interface it does not matter if the API instance is local, remote, in a
container or somewhere else.


> From the before-you-start:
>
> "... If you would like to use Bacularis instance in container with Bacula
> components located outside the container, you need to prepare it yourself.
> Exception of that is the bacularis-web container image that provides a pure
> web interface without any API part and it can be connected to any Bacularis
> API instance available in the network. See chapter: Install using Docker."
>
> I believe that this is not going to work with my existing Bacula daemons.
> So my conclusion is that I must forget the dockers.
>

For your Bacula environment, I would propose to start simple and install
one Bacularis on this DIR+SD host. This setup provides 90% of the Bacularis
functions including DIR and SD configuration. Having Bacularis API on the
FDs is useful only for two purposes:

 - to be able to change the Bacula FD configuration on the web interface
 - to be able to start/stop/restart the FD component

If you don't want any of the listed functions, installation of Bacularis on
FD hosts is optional. Even without an API installed there, these FDs will
be possible to use on the web interface for backup, restore, statistics,
graphs, running jobs...etc.


> I have also setup a test system with Bacula DIR+SD and Bacularis Apache.
> As far as understand its workings, the API is implemented in PHP, it wants
> access to the Postgres database, it wants to run bconsole, it wants to be
> able to read/write the configuration files. (The latter is optional and it
> is definitely something I don't want.)
>

Yes, the API is configurable. It enables to provide through the API only
these capabilities that are needed (bconsole, catalog, config,
actions...etc.). You can read about it here:

https://bacularis.app/doc/remote/basic.html#api-capabilities


> Before I go that route (installing Apache) I need to spend more time
> trying to understand how this works.
>

Sure. Good luck.

Best regards,
Marcin Haba (gani)

-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] What is a API instance for Bacularis

2024-07-22 Thread Marcin Haba
On Mon, 22 Jul 2024 at 17:31, Kees Bakker via Bacula-users <
bacula-users@lists.sourceforge.net> wrote:

> Hi,
>
> The docker bacularis-web [1] asks me to add a Baculum [2] API instance.
> What exactly is that?
>
> I already have a functioning Bacula system with a Dir/SD and several
> FDs. I am looking
> for a replacement of the good old BAT and was hoping that Bacularis
> would be it.
>
> [1] https://hub.docker.com/r/bacularis/bacularis-web
> [2] Could this be a left over after renaming Baculum -> Bacularis?
>

Hello Kees,

Thanks for your feedback about trying to use Bacularis docker images.

Each of these docker image types has in the description a chapter named
"About this image". There is information about what it contains and for
what purposes it could be used. For this "bacularis-web" we can see the
information:

"It contains a pure the Bacularis web interface without API layer. It can
be used to connect external Bacularis API server(s) in containers or
outside them. If you would like to connect Bacularis API ran in containers,
you can use dedicated for this purpose images:
 - for File Daemons bacularis-api-fd
 - for Storage Daemons bacularis-api-sd
 - for Directors bacularis-api-dir"

For the question about what is the API, to understand the concept, I would
propose to read these two chapters in the Bacularis documentation:

1. Component relationship and characteristic:
https://bacularis.app/doc/brief/introduction.html#component-relationship

2. Before you start:
https://bacularis.app/doc/brief/before-you-start.html

They can answer your questions. If not, please let us know. Thanks in
advance.

For the question about Baculum API, yes, it is a left over :-) Thanks for
catching it. We will fix it quickly.

Good luck.

Best regards,
Marcin Haba (gani)

-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Does anybody have a working Linux ISO that will allow me to restore from an offsite Bacula backup?

2024-07-02 Thread Marcin Haba
On Tue, 2 Jul 2024 at 22:54, MylesDearBusiness via Bacula-users <
bacula-users@lists.sourceforge.net> wrote:

> Thanks so much for the suggestions, Rob.  I'll shoot for the simplest
> possible recovery plan.
>
> My NGINX config was utterly blown away by the failed element.io install
> and I'm still not sure how to browse individual files on my offsite Bacula
> backup, even with Bacularis, although I've had some discussions with the
> Bacularis developer on the topic.
>
Hello Myles,

I remember our talk about it. This function is a bit more difficult to
implement than I originally estimated. It is not realized for now but
please be sure that it is on my list.

Best regards,
Marcin Haba (gani)

-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restore Wizard, partial fileset & sub dir problem

2024-07-01 Thread Marcin Haba
On Mon, 1 Jul 2024 at 11:39, Lionel PLASSE  wrote:

> Well, I'm going to test to create an index for now,
>
> I don't use postgre as well, and I'd rather keep using mysql
>
> But if postgre is better...
>
>
>
> And this issue has not been reported to the development team for mysql
> users? Is an issue open, do you know ?
>

Hello Lionel,

Great. Good luck with trying it.

Developers are aware of this problem nevertheless opening an issue for that
might be a good idea anyway.

In the past users reported some problems with this restore but at that time
nobody knew why it happened.

Best regards,
Marcin Haba (gani)

-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restore Wizard, partial fileset & sub dir problem

2024-07-01 Thread Marcin Haba
On Mon, 1 Jul 2024 at 10:42, Lionel PLASSE  wrote:

> Hello,
>
> I want to validate my backup support. I decided to restore a subdir of a
> fileset for a client.
> So I use baculum web , restore wizard, select client and fileset, navigate
> into paths and select 'Add' for  a path witch contains a lot of subdir and
> files over 10K.
>
> I validate the wizard and I remain waiting on the summary page and the
> work is never scheduled (I stop if after 1 hour of waiting)
> When I do the same with one or 2 files it starts immediately after the
> last step of wizard (the summarize page)
>
> I had to create a text file with full  path of files to restore  (by a sql
> query) and with  bconsole the restore start normally
>
> Why is the restore wizard  so slow (and even stuck)  to generate the final
> list of file and  schedule  the job  when there are so many files.?
>

Hello Lionel,

It is a known problem. I researched it some time ago. In this thread you
can find it and a workaround as well:

https://sourceforge.net/p/bacula/mailman/bacula-users/thread/GV1P194MB178567464CFD7C79B173F0B3B53D2%40GV1P194MB1785.EURP194.PROD.OUTLOOK.COM/

Best regards,
Marcin Haba (gani)

-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacularis: set of rights for tape operators

2024-06-13 Thread Marcin Haba
On Thu, 13 Jun 2024 at 13:35, Stefan G. Weichinger  wrote:

> Am 13.06.24 um 12:44 schrieb Marcin Haba:
>
> > You don't need to restart anything. Are you sure that you set all
> > CommandAcl directive values in the Console ACL? They should be one
> > command per one CommandAcl field:
> >
> > CommandAcl = gui
> > CommandAcl = .api
> > CommandAcl = .status
> > CommandAcl = .storage
> > CommandAcl = delete
> > CommandAcl = show
> > CommandAcl = mount
> > CommandAcl = umount
> > CommandAcl = label
> > CommandAcl = update
> >
> > If storage is not listed in the storage table it can be that the
> > .storage command is missing there. Could you confirm it? Also StorageAcl
> > needs to be set to all Storage that should be available for that user.
>
> all there, looks like this on the shell:
>
> Console {
>Name = "tape-operator-ACL"
>Password = ""
>StorageAcl = "HP-Autoloader"
>CommandAcl = "gui, .api, .status, .storage, delete, show, mount,
> umount, label, update"
> }
>

Hello Stefan,

This is wrong because if multiple commands are closed in one big quotes, it
is treated as one command that does not exist, so it causes no access to
anything.

You need to write it as this (without quotes):

  CommandAcl = gui, .api, .status, .storage, delete, show, mount, umount,
label, update

Or in a way as Bacularis writes mutli-value directives:

  CommandAcl = ".api"
  CommandAcl = "gui"
  CommandAcl = ".status"
  CommandAcl = ".storage"
  CommandAcl = "delete"
  CommandAcl = "show"
  CommandAcl = "mount"
  CommandAcl = "umount"
  CommandAcl = "label"
  CommandAcl = "update"

Both work in the same way.

Best regards,
Marcin Haba (gani)

-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacularis: set of rights for tape operators

2024-06-13 Thread Marcin Haba
On Thu, 13 Jun 2024 at 10:46, Stefan G. Weichinger  wrote:

> Am 13.06.24 um 10:24 schrieb Marcin Haba:
> > On Thu, 13 Jun 2024 at 10:02, Stefan G. Weichinger  > <mailto:li...@xunil.at>> wrote:
> > I don't see how to assign the ACL to that user, sry
> >
> >
> >   In the create API basic user window there is an option with label:
> >
> > "Create dedicated Bconsole config file"
> >
> > When you check this checkbox, you will see the Console ACL and Director
> > to select. It is exactly this option and this select to choose Console
> ACL.
>
> found, ok. Did so but now the user sees NO Storage in "Storage" although
> I chose the autoloader in the ACL etc
>
> Do I have to restart things after that patch or so?
>

Hello Stefan,

You don't need to restart anything. Are you sure that you set all
CommandAcl directive values in the Console ACL? They should be one command
per one CommandAcl field:

CommandAcl = gui
CommandAcl = .api
CommandAcl = .status
CommandAcl = .storage
CommandAcl = delete
CommandAcl = show
CommandAcl = mount
CommandAcl = umount
CommandAcl = label
CommandAcl = update

If storage is not listed in the storage table it can be that the .storage
command is missing there. Could you confirm it? Also StorageAcl needs to be
set to all Storage that should be available for that user.


> > I am not sure if I understand this question. What type of inserting do
> > you have on mind? Is it a list of volumes that will be used in backups
> > or something else?
>
> I would I want to get the information which tapes to insert into the
> loader. Which ones are "overwritable" right now, what is needed for the
> next jobs to be successful. I'd like not to have to process retention
> times etc by myself.
>
>
I understand. Thanks. I don't know exactly this type of function in Bacula,
however in the status director is information about the next volume for
scheduled backup jobs. In Bacularis it is in (Director -> Tab: Actions ->
Button: Status director  ->  SubTab: Raw status). For restore the required
volumes are listed in the restore wizard before starting the restore.

Best regards,
Marcin Haba (gani)
-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacularis: set of rights for tape operators

2024-06-13 Thread Marcin Haba
On Thu, 13 Jun 2024 at 10:02, Stefan G. Weichinger  wrote:

> Am 12.06.24 um 17:09 schrieb Marcin Haba:
> > Hello Stefan,
> >
> > Thanks for your question. It showed me that it might be good to
> > add descriptions for the resources available for each role and probably
> > a new section in the documentation that describes it.
> >
> > For the question about setting access for the tape operator, I assume
> > that you have the tape library already configured with Bacularis.
> > Setting this access for that user can be done in various ways. Below I
> > described the most detailed manual way (without using wizards) that
> > enables to set most options and tune access exactly to what needed.
>
> At first: thank you for the quick and detailed reply! Going through
> right now.
>
> > So, the steps are following:
> >
> > 1) I would propose to create a new role for the tape operator with the
> > following resources assigned (Security -> Tab: Roles):
> >
> >   - VolumeList - that gives access to the volume list page
> >   - VolumeView - that gives access to the detailed single volume view
> page
> >   - StorageList - that gives access to the storage list page
> >   - StorageView - that gives access to the single storage view page
> >
> > 2) Then I would propose to create a console ACL (Security -> Tab:
> > Console Acls) with:
> >
> >   - StorageAcl - that has defined all storage resources for which you
> > would like to give access for the tape operator
> >   - CommandAcl - with commands: gui, .api, .status, .storage, delete,
> > show, mount, umount, label, update
> >
> > 3) Next I would create a new API user. Normally it can be done in
> > (Security -> Tab: API basic users) but during preparing this mail I
> > found a bug in this function. Because of that please apply a one line
> > patch (for version 3.2.0) from attachment to file located usually here:
> >
> > /usr/share/bacularis/protected/API/Modules/BaculaConfig.php
> >
> > Once it is done, you can create in (Security -> Tab: API basic users)
> > new tape operator user and assign to it the Console Acl from point 2)
>

Hello Stefan,

Thanks for feedback from your tries.

I don't see how to assign the ACL to that user, sry
>

 In the create API basic user window there is an option with label:

"Create dedicated Bconsole config file"

When you check this checkbox, you will see the Console ACL and Director to
select. It is exactly this option and this select to choose Console ACL.

> 4) At the end I would create a new API host connection (Security -> Tab:
> > API hosts) to the API host with the tape library and Bacularis API
> > installed providing basic user credentials from step 3)
> >
> > 5) Finally I would create a new Bacularis Web user for this tape
> > operator (Security -> Tab: Users) with:
> >
> >   - tape operator role created in point 1)
> >   - API host created in point 4)
> >
> > 6) [Extra point] To avoid modifying by the tape operator anything
> > related to the Bacula SD configuration, you can switch all Bacula
> > resources for this user to 'read-only' or 'no access' mode. It is
> > possible to do on (API Panel -> Basic users -> Edit: tape operator
> > user). There you can set "read-only" or "no access" permissions for
> > every Bacula resource or all at once (Resource permissions section).
>
>
> looks promising. That user sees STorage and Volumes, although currently
> it sees both "File" and "Tape" volumes ... both pools, both storages.
>
> That isn't a problem for me, it's just missing, maybe because I skipped
> 6) and 3) isn't fully done. (patch applied, yes)
>

Yes, if the Console ACL will be assigned, then the user will see only
storage resources allowed by the Console ACL. For volumes, it isn't part of
Console ACLs, so they are listed all.


>
> The user is able to "Update slots", nice .. this is important if he
> swaps tapes etc
>
> Ah, that leads me to another newbie question:
>
> with amanda there was a command that showed me which tapes from which
> pool were to be inserted next. So amanda checked retention times etc etc
> and asked for the next tapes to be overwritten. I haven't yet seen or
> understood if Bacula is also able to provide me or the tape operator
> with a list of tapes to be inserted (or even which ones to take out of
> the library).
>
> So far I look for "Full" tapes and remove them etc
>

I am not sure if I understand this question. What type of inserting do you
have on mind? 

Re: [Bacula-users] Bacularis 3.2.0 install nginx php-fpm

2024-06-12 Thread Marcin Haba
On Wed, 12 Jun 2024 at 21:51, Brent  wrote:

> Environment: Rocky Linux 8.9, nginx 1.25.4, php 8.3
>
> I have followed the "manual" install as documented:
> https://bacularis.app/doc/brief/installation.html#install-manually
>
> The install process runs without a hitch.  However, when I go to the
> bacularis URL, the server attempts to redirect to /panel/config ultimately
> resulting an error ERR_TOO_MANY_REDIRECTS
>
> This is due to the nginx provided configuration:
> try_files $uri $uri/ index.php?$args;
>
> If the PHP log I can see the request:
>
> /index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/panel/config
>
> How is panel/config supposed to be initiated?  I have made a few
> speculative edits to "try_files" without making any progress.
>

Hello Brent,

For the redirects loop it looks that something can be missing there that
Bacularis is not able to determine paths properly. It can be caused for
example by missing pathinfo value ($_SERVER['PATH_INFO']) but not only. You
can check the values by pasting at the beginning of htdocs/index.php (but
below  Perhaps someone can give some insight that will help me.  The install
> instructions indicate use for Bacularis 2.8.   I am guessing that there has
> been some restructure of the Prado library with Bacularis 3.2 that is
> causing the provided nginx configuration not to work.
>

For the install instruction for Bacularis 2.8 in the documentation, thanks
for the notice. This version 2.8.0 there is only example that users can
modify to the latest version. In time of writing that documentation the
latest was 2.8.0 so this version is written there, but you can set the
latest 3.2.0 and it will be fine as well. At the moment I updated this
number there to 3.2.0.

Best regards,
Marcin Haba (gani)

-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacularis: set of rights for tape operators

2024-06-12 Thread Marcin Haba
Hello Stefan,

Thanks for your question. It showed me that it might be good to
add descriptions for the resources available for each role and probably a
new section in the documentation that describes it.

For the question about setting access for the tape operator, I assume that
you have the tape library already configured with Bacularis. Setting this
access for that user can be done in various ways. Below I described the
most detailed manual way (without using wizards) that enables to set most
options and tune access exactly to what needed.

So, the steps are following:

1) I would propose to create a new role for the tape operator with the
following resources assigned (Security -> Tab: Roles):

 - VolumeList - that gives access to the volume list page
 - VolumeView - that gives access to the detailed single volume view page
 - StorageList - that gives access to the storage list page
 - StorageView - that gives access to the single storage view page

2) Then I would propose to create a console ACL (Security -> Tab: Console
Acls) with:

 - StorageAcl - that has defined all storage resources for which you would
like to give access for the tape operator
 - CommandAcl - with commands: gui, .api, .status, .storage, delete, show,
mount, umount, label, update

3) Next I would create a new API user. Normally it can be done in (Security
-> Tab: API basic users) but during preparing this mail I found a bug in
this function. Because of that please apply a one line patch (for version
3.2.0) from attachment to file located usually here:

/usr/share/bacularis/protected/API/Modules/BaculaConfig.php

Once it is done, you can create in (Security -> Tab: API basic users) new
tape operator user and assign to it the Console Acl from point 2)

4) At the end I would create a new API host connection (Security -> Tab:
API hosts) to the API host with the tape library and Bacularis API
installed providing basic user credentials from step 3)

5) Finally I would create a new Bacularis Web user for this tape operator
(Security -> Tab: Users) with:

 - tape operator role created in point 1)
 - API host created in point 4)

6) [Extra point] To avoid modifying by the tape operator anything related
to the Bacula SD configuration, you can switch all Bacula resources for
this user to 'read-only' or 'no access' mode. It is possible to do on (API
Panel -> Basic users -> Edit: tape operator user). There you can set
"read-only" or "no access" permissions for every Bacula resource or all at
once (Resource permissions section).

That is all. You can adapt this instruction to your needs, of course,
specially this Console Acl and the permissions parts. I think it can be
also useful watching this video guide:

Bacularis - configure custom interface for selected users:
https://www.youtube.com/watch?v=9HbEh1P4b6w

Please let us know if you were able to set this account up.

Good luck!

Best regards,
Marcin Haba (gani)

On Wed, 12 Jun 2024 at 14:23, Stefan G. Weichinger  wrote:

>
> Could someone point me at a HOWTO or doc or point out a meaningful list
> of roles/permissions to assign to a bacularis user who should be able to:
>
> - list volumes
> - manage the autochanger
>
> maybe later
>
> - label volumes
>
> ?
>
> I don't want to give that employee full access, but I am a bit
> overwhelmed by the many possible "Resources" available in the
> Security-Roles-Tab.
>
> thanks
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
diff --git a/API/Modules/BaculaConfig.php b/API/Modules/BaculaConfig.php
index 7beee98..3cb2594 100644
--- a/API/Modules/BaculaConfig.php
+++ b/API/Modules/BaculaConfig.php
@@ -74,7 +74,7 @@ class BaculaConfig extends ConfigFileModule
 	 * @param bool $mode set config mode (simulate, save...)
 	 * @return array validation result, validation output and write to config result
 	 */
-	public function setConfig($component_type, array $config, $file = null, $mode = null)
+	public function setConfig($component_type, array $config, $file = null, $mode = BaculaSetting::MODE_SAVE)
 	{
 		$result = ['is_valid' => false, 'save_result' => false, 'output' => null, 'config' => []];
 		$config_content = $this->prepareConfig($config, self::CONFIG_FILE_FORMAT);
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] New release Bacularis 3.2.0

2024-06-05 Thread Marcin Haba
Hello Everybody,

We are glad to let you know that we released a new Bacularis 3.2.0. This is
a fully new function release that is targeted to ease work with Bacula
configuration specially in medium and large Bacula environments, where are
a lot of Bacula resources to manage.

First, we prepared the configs and patterns function. It can be
significantly helpful in repeatable tasks with Bacula configuration. This
feature enables bulk adding configuration to multiple or single resources
at once. Config function is designed for adding configuration to Bacula
resources (Client, Pool, Device...) while patterns are for adding
configuration with many resources to local and remote Bacula components
(Director, File Daemon, Storage Daemon...). More information about these
two functions you can find in the Bacularis documentation.

We prepared two video guides that present new functions in Bacularis 3.2.0.
Here you can find the most useful links for this release:

 - Configs function: https://www.youtube.com/watch?v=K_5sxCRVpuE
 - Patterns function: https://www.youtube.com/watch?v=cJ5XEDHwREM
 - Documentation: https://bacularis.app/doc/patterns/basic.html
 - Release announcement:
https://bacularis.app/news/85/36/New-release-Bacularis-3.2.0

Second main change is a new version 3 of the Bacularis API that introduces
new configuration functions. More information about it you can find in the
release announcement.

As always binary packages 3.2.0 for popular Linux distributions are
available already in the package repositories. Docker container images
3.2.0 are available in the Docker Hub repositories.

Happy using Bacularis!

On behalf of the Bacularis Team
Marcin Haba (gani)

-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Installation of bacula 11.0.6 from community repositories

2024-06-04 Thread Marcin Haba
Hello Borut,

It looks that the repository paths do not correspond to the packages
installation guide. I mean the directory tree.

As a workaround you can correct it manually using this address form:

deb [arch=amd64] https://bacula.org/packages/MYID/debs/11.0.6/jammy/amd64/
jammy main

For the final fix we need to wait a little, I think.

Best regards,
Marcin Haba (gani)

On Tue, 4 Jun 2024 at 12:46, Borut Rozman via Bacula-users <
bacula-users@lists.sourceforge.net> wrote:

> Hi everyone,
>
> I am having a trouble installing community version of bacula ver
> 11.0.6, please don't start the debate about the version, I just want to
> get it installed on ubuntu 22.04
>
> I get
>
> The repository 'https://www.bacula.org/packages/MYID/debs/11.0.6 jammy
> Release' does not have a Release file
>
> when I try to update the packages
>
>
> my bacula.lists file is :
>
> #Bacula Community
> deb [arch=amd64] https://www.bacula.org/packages/MYID
> /debs/11.0.6 jammy main
>
>
> What am I missing?
>
> Any help appreciated.
> B.
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacularis vs Baculum

2024-05-31 Thread Marcin Haba
Hello Everybody,

Thanks Rob for this description about Baculum and Bacularis and for kind
words :-)

All it is true. Bacularis is dynamically developing and provides more
functions. It also has changed internal application architecture that is
targeted to easier use without losing all advantages API and Web layers.

For the Docker containers, yes, we provide them. It is not the easiest way
of using Bacularis because in typical Bacularis (with enabled Bacula
configuration capability) is required access to Bacula configuration files.
It means that it is difficult to prepare separate containers for Bacula and
Bacularis. Nevertheless, I think that people well familiar with Docker can
manage it by preparing some mounts for common parts. I also
observe projects in Docker Hub led by the community users that provide
Bacularis in a separate container.

For the Baculum and Bacularis history that Rob asked, we have a History
chapter in the documentation. For people interested in, it is here:

https://bacularis.app/doc/licenses/history.html

Best regards,
Marcin Haba (gani)

On Fri, 31 May 2024 at 18:55, Rob Gerber  wrote:

> I believe that bacula beta version 15.x has changes to baculum in the
> release notes. So no, baculum isn't dead, per se. Being found in the bacula
> community repositories, baculum seems be the official bacula community web
> interface.
>
> Bacularis is a friendly fork from a baculum developer, Marcin. (Maybe
> Marcin is the only baculum developer? I don't know.) Bacularis aims to make
> bacula itself more accessible and easier to manage, in addition to various
> small changes to the UI. Marcin is active on this list, and I've seen him
> commit patches for various bacularis issues very quickly. So I'd argue that
> bacularis is better supported in the community, but they do share a common
> code base and various features or changes made do make their way between
> both projects, in both directions.
>
> So to answer your question, as far as I know, Baculum isn't dead, and
> Bacularis isn't the official bacula project UI.
>
> I think Bacularis offers more ways to use bacula than baculum does. There
> are Bacularis docker containers, extensive installation and setup
> instructions. When I go to the baculum site, I don't see anywhere near as
> much information on the same subjects. The bacularis Docker containers also
> offer various bacula components, something that isn't done with baculum. I
> think one of the goals of bacularis is to enable modularizing management of
> various bacula components and instances with docker containers. This isn't
> the only goal, but it is one thing Marcin appears to have put effort into.
>
> Please understand that with bacularis you can certainly install it
> directly on your server from a repository. It is not necessary to have it
> bundled with bacula, or to use it in a docker container.
>
> Compare https://baculum.app/ and https://bacularis.app/ and you'll see
> how the bacularis site has way more information. I'm sure Marcin could shed
> more light on the historical reasons why Bacularis exists in a world where
> baculum also exists.
>
> Robert Gerber
> 402-237-8692
> r...@craeon.net
>
> On Fri, May 31, 2024, 10:58 AM  wrote:
>
>>
>> Is Baculum now a dead project?
>>
>> Is Bacularis now the official web interface?
>>
>> ---
>>
>>
>> ___
>> 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
>


-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacularis vs Baculum

2024-05-31 Thread Marcin Haba
On Fri, 31 May 2024 at 18:00,  wrote:

Hello d09,

Is Baculum now a dead project?
>

Baculum is not dead. It lives and it is developing as you can see on the
commit list in the Git repository. It is true that most changes are for the
API part, not for the web interface part. For binary packages on bacula.org,
they are not prepared for a long time but I think in the near future it
will be improved. Users need to use alternative installation methods
(manual installation, distributions that provide it...). All these facts
can make it less attractive, I know, but please be sure that it isn't a
dead project.


> Is Bacularis now the official web interface?
>

It isn't. Bacularis is not the Bacula.org project but it works as an
independent project outside Bacula.

Best regards,
Marcin Haba (gani)


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


-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Error syncing volume "IMS0502L6" on device "DRIVE3"

2024-05-20 Thread Marcin Haba
Hello Jose,

Many thanks for letting us know that the SyncOnClose directive is missing
in Bacularis. At the moment I opened a feature request for that in the
Bacularis project on GitHub:

https://github.com/bacularis/bacularis-app/issues/45

Best regards,
Marcin Haba (gani)

On Mon, 20 May 2024 at 16:51, Jose Alberto  wrote:

> I will do it by hand directly in the .conf, I do not see the device option
> in Bacularis.
>
> Thanks
>
> On Thu, May 16, 2024 at 1:36 PM Martin Simmons 
> wrote:
>
>> Does this happen with every job?
>>
>> You could try adding
>>
>> SyncOnClose = no
>>
>> to the device settings to prevent it from doing the sync.
>>
>> __Martin
>>
>>
>> >>>>> On Thu, 16 May 2024 10:56:54 -0400, Jose Alberto said:
>> >
>> > Hi.
>> >
>> > I have the log  when bacula finish Job.
>> >
>> > the Job finish  with stauts OK  but with Warning.
>> >
>> > LOG:
>> > 15-May 10:05 backup-sd JobId 92: Error: Error syncing volume
>> "IMS0502L6" on
>> > device "DRIVE3" (/dev/tape/by-id/scsi-3200a000e11161f33-nst).
>> ERR=Invalid
>> > argument.
>> >
>> > Library IBM ts3200  3 drive lto6 and 48 slots.   conect:  FC
>> >
>> > It happens with the 4 drive.
>> >
>> > My SD:
>> >
>> > Autochanger {
>> >   Name = "TS3200"
>> >   Device = "DRIVE0"
>> >   Device = "DRIVE1"
>> >   Device = "DRIVE2"
>> >   Device = "DRIVE3"
>> >   ChangerDevice = "/dev/tape/by-id/scsi-1IBM_3573-TL_00L4U78W4076_LL0"
>> >   ChangerCommand = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d"
>> > }
>> >
>> > N+4
>> > Device {
>> >   Name = "DRIVE"
>> >   MediaType = "LTO-6"
>> >   DeviceType = "Tape"
>> >   ArchiveDevice = "/dev/tape/by-id/scsi-3200a000e11161f33-nst"
>> >   RemovableMedia = yes
>> >   RandomAccess = no
>> >   AutomaticMount = yes
>> >   AlwaysOpen = yes
>> >   Autochanger = yes
>> >   ChangerCommand = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d"
>> >   AlertCommand = "sh -c 'smartctl -H -l error %c'"
>> >   DriveIndex = 3
>> >   AutoSelect = yes
>> > }
>> >
>> >
>> > thanks.
>> >
>> >
>> >
>> > --
>> > #
>> > #   Sistema Operativo: Debian  #
>> > #Caracas, Venezuela  #
>> > #
>> >
>>
>
>
> --
> #
> #   Sistema Operativo: Debian  #
> #Caracas, Venezuela  #
> #
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] New release Bacularis 3.0.0

2024-05-12 Thread Marcin Haba
Hello Everybody,

We are glad to let you know that we released a new Bacularis version 3.0.0.
This is a major new function release. We added the job files difference
function that enables comparing files in jobs and finding file differences
between selected jobids or jobids range (see video below). Besides that we
added new features in configuration parts of Bacula. They are new columns
to display descriptions and to check dependency in which resource every
single resource is used, for example: Pool X is in use by Job Y and JobDefs
Z. At the end we added a self-test to do a health state check of each API
instance used by the web interface.

New function video guide:
 - Job files difference: https://www.youtube.com/watch?v=4MFnLNlOHs4

Useful links:
 Release announcement:
https://bacularis.app/news/82/36/New-release-Bacularis-3.0.0
 Documentation: https://bacularis.app/doc
 Online demo: https://demo.bacularis.app

As always binary packages for popular Linux distributions are available
already in the package repositories. Docker container images are available
in the Docker Hub repositories.

Happy using Bacularis!

On behalf of the Bacularis Team
Marcin Haba (gani)

-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum error with 15.0.2 catalog Pg

2024-04-23 Thread Marcin Haba
Hello Jose,

Yes, this Baculum from Bullseye repository is a bit older and not adapted
to Bacula 15.

As you could notice, Bacularis is a better choice for that. It has been
prepared and well tested with Bacula version 15.

The general idea of Bacularis for supported Bacula versions is to help
users stop thinking in a way: "Which Bacularis version should I use with
which Bacula version?". It is something that in Bacularis we would like to
avoid. It works with all Bacula versions starting from 9 up till latest.
So, if somebody has a relatively modern Bacula environment, he/she can
always take the latest Bacularis and be sure that it will work.

Best regards,
Marcin Haba (gani)

On Tue, 23 Apr 2024 at 12:55, Jose Alberto  wrote:

> Hi.
>
> I have new installation clean
>
> Debian 12  (ok)
> Bacula 15.0.2  (ok)
> Postgres  (ok)
> Baculum.  (error open dashboard,  show query error), "using the bullseye
> repo, because they are not enabled for debian 12. maybe that's it. "
>
> But with Bacularis  This does not happen.
>
>
> --
> #
> #   Sistema Operativo: Debian  #
> #Caracas, Venezuela  #
> #
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] New release Bacularis 2.8.0

2024-04-19 Thread Marcin Haba
Hello Everybody,

We are glad to let you know that we released a new Bacularis version 2.8.0.
It is a new feature and bug fix release. We introduced a couple of
improvements for using the backup file list function like finding the
largest or the newest files in backup. Besides that we added new deployment
OS profiles for Ubuntu 24.04 Noble and Fedora 40 to enable easily deploying
Bacularis and Bacula components to remote hosts with these systems.

On the bug fixes side, we fixed bugs reported by the Community.

New functions in 2.8.0:
 - Top 10 backup files function: https://www.youtube.com/watch?v=ny1pDIwZnD0

Useful links:
 Release announcement:
https://bacularis.app/news/80/36/New-release-Bacularis-2.8.0
 Documentation: https://bacularis.app/doc
 Online demo: https://demo.bacularis.app

As always binary packages 2.8.0 for popular Linux distributions are
available already in the package repositories. Docker container images
2.8.0 are available in the Docker Hub repositories.

Happy using.

On behalf of the Bacularis Team
Marcin Haba (gani)

-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacularis/Baculum] Restore with web doesn't create job before 1 hour

2024-04-10 Thread Marcin Haba
Hello Timothé,

On Wed, 10 Apr 2024 at 17:29, timothe pennec  wrote:

> Thank you i will test this workaround.
>
> Maybe migrating to PostreSQL will correct this issue if i understood ?
>


For sure it is a good choice for Bacula.

Best regards,
Marcin Haba (gani)


>
> Best regards,
> Timothé
>
> ------
> *De :* Marcin Haba 
> *Envoyé :* mercredi 10 avril 2024 07:32
> *À :* timothe pennec ;
> Bacula-users@lists.sourceforge.net 
> *Objet :* Re: [Bacula-users] [Bacularis/Baculum] Restore with web doesn't
> create job before 1 hour
>
> Hello Timothé,
>
> I did some tests and analysis for this hanging restore command error. It
> looks that the Bacula Bvfs restore part responsible for hardlinks causes
> it. This change came to Bacula in version 11.0.
>
> Looking at this hardlinks part, as a workaround I created an index in the
> catalog that solved this hanging:
>
> CREATE INDEX file_jobid_fileindex_idx ON File (JobId, FileIndex);
>
> Creating this index can take some time specially if you have many files in
> the File table, but later the restore starts without waiting.
>
> Creating index is not a solution, better if the hardlinks part could be
> optimized if possible. For now I don't have any other option for that.
>
> For these hardlinks, in Bacula it is a common part for MySQL/MariaDB and
> PostgreSQL, but with MySQL this problem is much better visible.
>
> Best regards,
> Marcin Haba (gani)
>
> On Sat, 6 Apr 2024 at 18:55, Marcin Haba  wrote:
>
> Hello Timothé,
>
> Thanks for providing all details about this restore problem.
>
> I did tests on a set of 150K files with old Bacula 9.0.6 and the latest
> 15.0.2. It looks that something has changed in Bacula MySQL/MariaDB support
> in a version between because on the version 9 it works well, while on 15 it
> hangs on the restore commands.
>
> Your restore using bconsole can work much better because it does not use
> Bacula Bvfs interface.
>
> I will try to look at it deeper in the next few days. I will let know if I
> find something.
>
> Best regards,
> Marcin Haba (gani)
>
> On Thu, 4 Apr 2024 at 16:14, timothe pennec  wrote:
>
> Hi,
>
> I'm using mariadb for database and it's him seems to be slow :
> top result :
>
> top - 16:08:51 up 2 days, 20:10,  6 users,  load average: 0,97, 0,60, 0,29
> Tasks: 307 total,   1 running, 306 sleeping,   0 stopped,   0 zombie
> %Cpu(s): 12,5 us,  0,0 sy,  0,0 ni, 87,3 id,  0,0 wa,  0,0 hi,  0,2 si,
>  0,0 st
> MiB Mem :   7936,5 total,177,7 free,592,8 used,   7166,1 buff/cache
> MiB Swap:   4096,0 total,   4095,0 free,  1,0 used.   7026,5 avail Mem
> PID USER  PR  NIVIRTRESSHR S  %CPU  %MEM TIME+ COMMAND
>   29267 mysql 20   0 1346196 142604  23396 S 100,0   1,8   2:53.58
> mariadbd
>
> I've 8 vCPU but only one is at 100 % (can see it with htop) all other at 0.
>
> I've enabled debug level 500 and i can see many log right after submit
> button "Run" and stuck at :
>
> bacula-dir: ua_restore.c:2015-0 JobId=4792 JobIds= FileIndex=10
> [All 53000 files ...]
> bacula-dir: ua_restore.c:2015-0 JobId=4792 JobIds= FileIndex=53895
> bacula-dir: ua_restore.c:2015-0 JobId=4792 JobIds= FileIndex=53896
> bacula-dir: mysql.c:584-0 db_sql_query finished
> bacula-dir: ua_restore.c:1476-0 query=SELECT Path.Path, File.Filename FROM
> File JOIN Path USING (PathId) JOIN b210091 AS T ON (File.JobId = T.JobId
> AND File.FileIndex = T.FileIndex) WHERE File.Filename LIKE
> ':component_info_%' AND File.JobId IN (4792)
> bacula-dir: mysql.c:527-0 db_sql_query starts with SELECT Path.Path,
> File.Filename FROM File JOIN Path USING (PathId) JOIN b210091 AS T ON
> (File.JobId = T.JobId AND File.FileIndex = T.FileIndex) WHERE File.Filename
> LIKE ':component_info_%' AND File.JobId IN (4792)
>
>
> Any idea ?
>
> Thank you
> Timothé
>
> --
> *De :* Marcin Haba 
> *Envoyé :* mercredi 3 avril 2024 21:53
> *À :* timothe pennec 
> *Cc :* bacula-users@lists.sourceforge.net <
> bacula-users@lists.sourceforge.net>
> *Objet :* Re: [Bacula-users] [Bacularis/Baculum] Restore with web doesn't
> create job before 1 hour
>
> Hello Timothé,
>
> Thanks for your detailed description of the problem.
>
> For start I would propose to check what is going inside Bacula and the
> Catalog when this restore is trying to start.
>
> Yes, observing 'ps aux' is a good idea, that you did. Also useful can be
> 'top' command with watching what process takes the most resources.
>
> From the Bacula side you can set debug for Director by this bconsole
&

Re: [Bacula-users] baculum + bacula 13.0.4 slow web interface

2024-04-10 Thread Marcin Haba
Hello Unkdef,

Thanks for your feedback.

I would propose to do a test. Could you please go to the application
settings page (the gear wheel icon on the top left side), there please go
to the 'Display options' tab and in an option with label "Job age on the
dashboard job graphs" could you put a value for example 7 days or 3 days?
Once you save it, please check and let us know if loading the dashboard is
faster.

Did you try to tune the database using mysqltuner?

Best regards,
Marcin Haba (gani)

On Wed, 10 Apr 2024 at 10:30, Unkdef unkdef  wrote:

> Please help problem not solved. when i renew page i dont see backups... i
> need to wait 10-20 sec before it appears
>
> вс, 7 апр. 2024 г. в 15:33, Marcin Haba :
>
>> Hello Unkdef,
>>
>> Yes, it does. As Rob mentioned, Bacularis is based on Baculum that
>> supports Russian translations too. The translations are there thanks to
>> Sergey Zhidkov who prepared them.
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Sun, 7 Apr 2024 at 10:50, Unkdef unkdef 
>> wrote:
>>
>>>
>>> ok i try bacularis
>>> does bacularis support russian language interface?
>>>
>>> Rob Gerber  7 апреля 2024 г. 01:24:27 написал:
>>>
>>>> Unkdef, one important thing to know is that Bacularis is a friendly
>>>> fork of baculum. It's very similar, and Marcin has been actively
>>>> maintaining it. Marcin is also a baculum developer.
>>>>
>>>> Basically, Bacularis is the better, more optimized tool.
>>>>
>>>> This doesn't mean that the source of your problem is certainly baculum,
>>>> but trying the actively maintained and more optimized tool Bacularis is
>>>> certainly a good first step. :)
>>>>
>>>> Bacularis is available in docker containers if you want to simply load
>>>> a container and give it a try. It is naturally available for bare metal
>>>> installations as well.
>>>>
>>>> Https://bacularis.app
>>>>
>>>> Robert Gerber
>>>> 402-237-8692
>>>> r...@craeon.net
>>>>
>>>>

-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Install.sh error trying to install manually Bacularis

2024-04-10 Thread Marcin Haba
Hello Neil,

Yes, I think that your assumption about PATH can be correct. It looks that
the /usr/local/bin path is not accessible for executing by PHP exec().

If you want you can add at the beginning of the mtx-changer script

echo $PATH

to see where exactly mtx-changer looks for binaries when it is executed via
web.

I found that FreeBSD users report this problem with PATH too:

https://forums.freebsd.org/threads/heads-up-php-exec-does-not-look-in-usr-local-bin-for-executables.78098/

Fortunately it is not difficult to solve. You can fix the PATH in
mtx-changer script or globally if it is possible.

Best regards,
Marcin Haba (gani)

On Wed, 10 Apr 2024 at 18:33, Neil Balchin  wrote:

> When trying to configure the auto changer in the API panel,  I click.
> Checkbox on get sudo configuration and when I test I get this error in red:
>
>/usr/local/share/bacula/mtx-changer: mtx: not found
> /usr/local/share/bacula/mtx-changer: perl: not found
>
>
> Both mtx and perl are installed in the system ,  perhaps there’s a path
> issue in the MTX changer script ?
>
>
> On 9 Apr 2024, at 20:56, Marcin Haba  wrote:
>
> Hello Neil,
>
> For running everything in FreeBSD Jail, if to use mtx-changer by bacula
> user is needed sudo, I think the sudo needs to be added to ChangerCommand
> too:
>
> Autochanger {
>   Name = "TL2000"
>   Device = "HH-LTO7"
>   ChangerDevice = "/dev/pass1"
>   ChangerCommand = "sudo /etc/bacula/scripts/mtx-changer %c %o %S %a %d"
> }
>
> For Perl, it is used by mtx-changer script. I see in mtx-changer that the
> Perl command can be changed to commented by default awk/sed/cut commands.
> Inside mtx-changer after the Perl command is this comment:
>
> # If perl isn't installed, you can use by those commands
>
> Best regards,
> Marcin Haba (gani)
>
> On Wed, 10 Apr 2024 at 01:44, Neil Balchin  wrote:
>
>> So I’m doing all of this from within a Freebsd Jail inside of Trueness.
>>
>> Therefore although I can expose the /dev devices I can’t easily change
>> their rwx properties so instead I added some lines to my sudoers config
>> file that allows the www and bacula users to perform certain sudo functions
>> without a password.
>>
>>
>> I added a sudo in front of my max-changer config in my bacula-sd.conf,
>>  by my theory this should be just fine
>>
>> I tested this command:
>> root@Bacula1:~ # sudo -u bacula sudo /usr/local/share/bacula/mtx-changer
>> /dev/pass1 slots
>> 24
>> root@Bacula1:~ #
>>
>> And as you can see I get the expected count of 24 slots
>>
>> Unfortunately from console:  I get
>>
>> *update slots
>> Automatically selected Catalog: MyCatalog
>> Using Catalog "MyCatalog"
>> The defined Storage resources are:
>>  1: File1
>>  2: File2
>>  3: HH-LTO7
>>  4: TL2000
>> Select Storage resource (1-4): 4
>> Connecting to Storage daemon TL2000 at localhost:9103 ...
>> 3306 Issuing autochanger "slots" command.
>> Device "TL2000" has 0 slots.
>> No slots in changer to scan.
>> *
>>
>> Now when I try to add the Autochanger TL2000 in the API I get an error
>> that it can’t find perl,  Is perl a preqequisite to bacula and I missed
>> that ?
>>
>>
>>
>>
>>
>> On 9 Apr 2024, at 14:39, Marcin Haba  wrote:
>>
>> Hello Neil,
>>
>> From your description it looks that Bacularis works with the mtx-changer
>> script well.
>>
>> For labeling volumes, as it is action realized by Bacula SD, so I think,
>> it might be good to check if the mtx-changer script is capable of being
>> correctly executed by the bacula user.
>>
>> For test I would propose to try this command:
>>
>> # sudo -u bacula /etc/bacula/scripts/mtx-changer /dev/pass1 slots
>>
>> and also a good test could be trying to label a sample volume using
>> bconsole.
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Tue, 9 Apr 2024 at 20:30, Rob Gerber  wrote:
>>
>>> What happens when you click 'update slots' on the volumes page, and tell
>>> it to update slots 1-24? Idk if this is relevant, but perhaps it is. Should
>>> update bacula's knowledge of what is in the library, as per mtx. The output
>>> once you click that button and tell it to update slots 1-24 should show
>>> that it knew about every tape's position in various slots in the library.
>>> If it says anything about updating a record to reflect a tape being in a
>>> certain slot, then its knowledge was inco

Re: [Bacula-users] [Bacularis/Baculum] Restore with web doesn't create job before 1 hour

2024-04-09 Thread Marcin Haba
Hello Timothé,

I did some tests and analysis for this hanging restore command error. It
looks that the Bacula Bvfs restore part responsible for hardlinks causes
it. This change came to Bacula in version 11.0.

Looking at this hardlinks part, as a workaround I created an index in the
catalog that solved this hanging:

CREATE INDEX file_jobid_fileindex_idx ON File (JobId, FileIndex);

Creating this index can take some time specially if you have many files in
the File table, but later the restore starts without waiting.

Creating index is not a solution, better if the hardlinks part could be
optimized if possible. For now I don't have any other option for that.

For these hardlinks, in Bacula it is a common part for MySQL/MariaDB and
PostgreSQL, but with MySQL this problem is much better visible.

Best regards,
Marcin Haba (gani)

On Sat, 6 Apr 2024 at 18:55, Marcin Haba  wrote:

> Hello Timothé,
>
> Thanks for providing all details about this restore problem.
>
> I did tests on a set of 150K files with old Bacula 9.0.6 and the latest
> 15.0.2. It looks that something has changed in Bacula MySQL/MariaDB support
> in a version between because on the version 9 it works well, while on 15 it
> hangs on the restore commands.
>
> Your restore using bconsole can work much better because it does not use
> Bacula Bvfs interface.
>
> I will try to look at it deeper in the next few days. I will let know if I
> find something.
>
> Best regards,
> Marcin Haba (gani)
>
> On Thu, 4 Apr 2024 at 16:14, timothe pennec  wrote:
>
>> Hi,
>>
>> I'm using mariadb for database and it's him seems to be slow :
>> top result :
>>
>> top - 16:08:51 up 2 days, 20:10,  6 users,  load average: 0,97, 0,60, 0,29
>> Tasks: 307 total,   1 running, 306 sleeping,   0 stopped,   0 zombie
>> %Cpu(s): 12,5 us,  0,0 sy,  0,0 ni, 87,3 id,  0,0 wa,  0,0 hi,  0,2 si,
>>  0,0 st
>> MiB Mem :   7936,5 total,177,7 free,592,8 used,   7166,1
>> buff/cache
>> MiB Swap:   4096,0 total,   4095,0 free,  1,0 used.   7026,5 avail Mem
>> PID USER  PR  NIVIRTRESSHR S  %CPU  %MEM TIME+ COMMAND
>>   29267 mysql 20   0 1346196 142604  23396 S 100,0   1,8   2:53.58
>> mariadbd
>>
>> I've 8 vCPU but only one is at 100 % (can see it with htop) all other at
>> 0.
>>
>> I've enabled debug level 500 and i can see many log right after submit
>> button "Run" and stuck at :
>>
>> bacula-dir: ua_restore.c:2015-0 JobId=4792 JobIds= FileIndex=10
>> [All 53000 files ...]
>> bacula-dir: ua_restore.c:2015-0 JobId=4792 JobIds= FileIndex=53895
>> bacula-dir: ua_restore.c:2015-0 JobId=4792 JobIds= FileIndex=53896
>> bacula-dir: mysql.c:584-0 db_sql_query finished
>> bacula-dir: ua_restore.c:1476-0 query=SELECT Path.Path, File.Filename
>> FROM File JOIN Path USING (PathId) JOIN b210091 AS T ON (File.JobId =
>> T.JobId AND File.FileIndex = T.FileIndex) WHERE File.Filename LIKE
>> ':component_info_%' AND File.JobId IN (4792)
>> bacula-dir: mysql.c:527-0 db_sql_query starts with SELECT Path.Path,
>> File.Filename FROM File JOIN Path USING (PathId) JOIN b210091 AS T ON
>> (File.JobId = T.JobId AND File.FileIndex = T.FileIndex) WHERE File.Filename
>> LIKE ':component_info_%' AND File.JobId IN (4792)
>>
>>
>> Any idea ?
>>
>> Thank you
>> Timothé
>>
>> --
>> *De :* Marcin Haba 
>> *Envoyé :* mercredi 3 avril 2024 21:53
>> *À :* timothe pennec 
>> *Cc :* bacula-users@lists.sourceforge.net <
>> bacula-users@lists.sourceforge.net>
>> *Objet :* Re: [Bacula-users] [Bacularis/Baculum] Restore with web
>> doesn't create job before 1 hour
>>
>> Hello Timothé,
>>
>> Thanks for your detailed description of the problem.
>>
>> For start I would propose to check what is going inside Bacula and the
>> Catalog when this restore is trying to start.
>>
>> Yes, observing 'ps aux' is a good idea, that you did. Also useful can be
>> 'top' command with watching what process takes the most resources.
>>
>> From the Bacula side you can set debug for Director by this bconsole
>> command:
>>
>> setdebug level=500 tags=bvfs,sql trace=1 dir
>>
>> in the Bacula Director working directory you will see the
>> youdirector-dir.trace file where this debug lines will be written.
>>
>> If your Catalog database is PostgreSQL you ran run in the time of the
>> restore hanging this SQL query to see currently pending SQL queries:
>>
>> SELECT * FROM pg_stat_activity;
>>
>> Please 

Re: [Bacula-users] Install.sh error trying to install manually Bacularis

2024-04-09 Thread Marcin Haba
Hello Neil,

For running everything in FreeBSD Jail, if to use mtx-changer by bacula
user is needed sudo, I think the sudo needs to be added to ChangerCommand
too:

Autochanger {
  Name = "TL2000"
  Device = "HH-LTO7"
  ChangerDevice = "/dev/pass1"
  ChangerCommand = "sudo /etc/bacula/scripts/mtx-changer %c %o %S %a %d"
}

For Perl, it is used by mtx-changer script. I see in mtx-changer that the
Perl command can be changed to commented by default awk/sed/cut commands.
Inside mtx-changer after the Perl command is this comment:

# If perl isn't installed, you can use by those commands

Best regards,
Marcin Haba (gani)

On Wed, 10 Apr 2024 at 01:44, Neil Balchin  wrote:

> So I’m doing all of this from within a Freebsd Jail inside of Trueness.
>
> Therefore although I can expose the /dev devices I can’t easily change
> their rwx properties so instead I added some lines to my sudoers config
> file that allows the www and bacula users to perform certain sudo functions
> without a password.
>
>
> I added a sudo in front of my max-changer config in my bacula-sd.conf,  by
> my theory this should be just fine
>
> I tested this command:
>
> root@Bacula1:~ # sudo -u bacula sudo /usr/local/share/bacula/mtx-changer
> /dev/pass1 slots
>
> 24
>
> root@Bacula1:~ #
>
>
> And as you can see I get the expected count of 24 slots
>
>
> Unfortunately from console:  I get
>
>
> *update slots
>
> Automatically selected Catalog: MyCatalog
>
> Using Catalog "MyCatalog"
>
> The defined Storage resources are:
>
>  1: File1
>
>  2: File2
>
>  3: HH-LTO7
>
>  4: TL2000
>
> Select Storage resource (1-4): 4
>
> Connecting to Storage daemon TL2000 at localhost:9103 ...
>
> 3306 Issuing autochanger "slots" command.
>
> Device "TL2000" has 0 slots.
>
> No slots in changer to scan.
>
> *
>
>
> Now when I try to add the Autochanger TL2000 in the API I get an error
> that it can’t find perl,  Is perl a preqequisite to bacula and I missed
> that ?
>
>
>
>
>
>
> On 9 Apr 2024, at 14:39, Marcin Haba  wrote:
>
> Hello Neil,
>
> From your description it looks that Bacularis works with the mtx-changer
> script well.
>
> For labeling volumes, as it is action realized by Bacula SD, so I think,
> it might be good to check if the mtx-changer script is capable of being
> correctly executed by the bacula user.
>
> For test I would propose to try this command:
>
> # sudo -u bacula /etc/bacula/scripts/mtx-changer /dev/pass1 slots
>
> and also a good test could be trying to label a sample volume using
> bconsole.
>
> Best regards,
> Marcin Haba (gani)
>
> On Tue, 9 Apr 2024 at 20:30, Rob Gerber  wrote:
>
>> What happens when you click 'update slots' on the volumes page, and tell
>> it to update slots 1-24? Idk if this is relevant, but perhaps it is. Should
>> update bacula's knowledge of what is in the library, as per mtx. The output
>> once you click that button and tell it to update slots 1-24 should show
>> that it knew about every tape's position in various slots in the library.
>> If it says anything about updating a record to reflect a tape being in a
>> certain slot, then its knowledge was incorrect and has been corrected.
>>
>> Robert Gerber
>> 402-237-8692
>> r...@craeon.net
>>
>> On Tue, Apr 9, 2024, 1:14 PM Neil Balchin  wrote:
>>
>>> Ok Great,  that solves that problem
>>>
>>> I’m almost there
>>>
>>> I’m using a Dell TL2000 Tape library and a HH LTO7 drive
>>>
>>> I’ve added these to my bacula-sd ( configs pasted below). Also added the
>>> Autochanger and Drives to the API device list
>>>
>>> From the API gui. It’s clearly running the slots and status commands
>>> properly. Because it shows the 19 tapes with barcodes ,  however when I try
>>> to label these tapes from the volumes page it reports Zero slots
>>>
>>> Autochanger {
>>>   Name = "TL2000"
>>>   Device = "HH-LTO7"
>>>   ChangerDevice = "/dev/pass1"
>>>   ChangerCommand = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
>>> }
>>>
>>> Device {
>>>   Name = "HH-LTO7"
>>>   MediaType = "LTO-7"
>>>   ArchiveDevice = "/dev/sa0"
>>>   HardwareEndOfMedium = no
>>>   BackwardSpaceRecord = no
>>>   BsfAtEom = yes
>>>   TwoEof = yes
>>>   FastForwardSpaceFile = yes
>>>   RemovableMedia = yes
>>>   RandomAccess = no
>>>   AutomaticMount = yes
>>>   AlwaysOpen = yes
>>>   Autochanger = yes
>>>   ControlDevice = "/dev/pass1"
>>>   AlertCommand = "/usr/local/share/bacula/tapealert %l"
>>> }
>>>
>>> I can run mt and mtx commands freely from the command line as both the
>>> bacula user and www user so I think my /dev/ permissions are ok
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>

-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Install.sh error trying to install manually Bacularis

2024-04-09 Thread Marcin Haba
Hello Neil,

>From your description it looks that Bacularis works with the mtx-changer
script well.

For labeling volumes, as it is action realized by Bacula SD, so I think, it
might be good to check if the mtx-changer script is capable of being
correctly executed by the bacula user.

For test I would propose to try this command:

# sudo -u bacula /etc/bacula/scripts/mtx-changer /dev/pass1 slots

and also a good test could be trying to label a sample volume using
bconsole.

Best regards,
Marcin Haba (gani)

On Tue, 9 Apr 2024 at 20:30, Rob Gerber  wrote:

> What happens when you click 'update slots' on the volumes page, and tell
> it to update slots 1-24? Idk if this is relevant, but perhaps it is. Should
> update bacula's knowledge of what is in the library, as per mtx. The output
> once you click that button and tell it to update slots 1-24 should show
> that it knew about every tape's position in various slots in the library.
> If it says anything about updating a record to reflect a tape being in a
> certain slot, then its knowledge was incorrect and has been corrected.
>
> Robert Gerber
> 402-237-8692
> r...@craeon.net
>
> On Tue, Apr 9, 2024, 1:14 PM Neil Balchin  wrote:
>
>> Ok Great,  that solves that problem
>>
>> I’m almost there
>>
>> I’m using a Dell TL2000 Tape library and a HH LTO7 drive
>>
>> I’ve added these to my bacula-sd ( configs pasted below). Also added the
>> Autochanger and Drives to the API device list
>>
>> From the API gui. It’s clearly running the slots and status commands
>> properly. Because it shows the 19 tapes with barcodes ,  however when I try
>> to label these tapes from the volumes page it reports Zero slots
>>
>> Autochanger {
>>
>>   Name = "TL2000"
>>
>>   Device = "HH-LTO7"
>>
>>   ChangerDevice = "/dev/pass1"
>>
>>   ChangerCommand = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
>>
>> }
>>
>>
>> Device {
>>
>>   Name = "HH-LTO7"
>>
>>   MediaType = "LTO-7"
>>
>>   ArchiveDevice = "/dev/sa0"
>>
>>   HardwareEndOfMedium = no
>>
>>   BackwardSpaceRecord = no
>>
>>   BsfAtEom = yes
>>
>>   TwoEof = yes
>>
>>   FastForwardSpaceFile = yes
>>
>>   RemovableMedia = yes
>>
>>   RandomAccess = no
>>
>>   AutomaticMount = yes
>>
>>   AlwaysOpen = yes
>>
>>   Autochanger = yes
>>
>>   ControlDevice = "/dev/pass1"
>>
>>   AlertCommand = "/usr/local/share/bacula/tapealert %l"
>>
>> }
>>
>>
>> I can run mt and mtx commands freely from the command line as both the
>> bacula user and www user so I think my /dev/ permissions are ok
>>
>>
>>
>>
>>
>>
>> On 9 Apr 2024, at 09:39, Marcin Haba  wrote:
>>
>> Hello Neil,
>>
>> Great to hear that you were able to set up the Bacularis instance.
>>
>> This error that you see is because in the php.ini file on FreeBSD by
>> default is error reporting set to display all errors. To fix this error you
>> need to edit php.ini file:
>>
>> /usr/local/etc/php.ini
>>
>> and change error reporting line from this:
>>
>> error_reporting = E_ALL
>>
>> into this one:
>>
>> error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
>>
>> At the end you need to restart PHP.
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Tue, 9 Apr 2024 at 15:22, Neil Balchin  wrote:
>>
>>> Thanks so much,
>>>
>>>
>>> I got a little further along my path
>>>
>>> The Bacularis web guide is up and running
>>>
>>> I’ve configured my web server user (www) to have appropriate file
>>> permissions for the bacula config files and directories and added the sudo
>>> permissions for the necessary binaries
>>>
>>> I think I’m missing something in my server setup because
>>>
>>> I get this error when I try to config anything:
>>>
>>>
>>>
>>> Error 1000 - Internal error. [Unknown Error] substr(): Passing null to
>>> parameter #1 ($string) of type string is deprecated (@line 232 in file
>>> /usr/local/www/bacularis/protected/vendor/pradosoft/prado/framework/Data/Common/Pgsql/TPgsqlMetaData.php).
>>>
>>>
>>>
>>> On 8 Apr 2024, at 23:35, Marcin Haba  wrote:
>>>
>>> Hello Neil,
>>>
>>> I have checked installing Bacu

Re: [Bacula-users] Install.sh error trying to install manually Bacularis

2024-04-09 Thread Marcin Haba
Hello Neil,

Great to hear that you were able to set up the Bacularis instance.

This error that you see is because in the php.ini file on FreeBSD by
default is error reporting set to display all errors. To fix this error you
need to edit php.ini file:

/usr/local/etc/php.ini

and change error reporting line from this:

error_reporting = E_ALL

into this one:

error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT

At the end you need to restart PHP.

Best regards,
Marcin Haba (gani)

On Tue, 9 Apr 2024 at 15:22, Neil Balchin  wrote:

> Thanks so much,
>
>
> I got a little further along my path
>
> The Bacularis web guide is up and running
>
> I’ve configured my web server user (www) to have appropriate file
> permissions for the bacula config files and directories and added the sudo
> permissions for the necessary binaries
>
> I think I’m missing something in my server setup because
>
> I get this error when I try to config anything:
>
>
>
> Error 1000 - Internal error. [Unknown Error] substr(): Passing null to
> parameter #1 ($string) of type string is deprecated (@line 232 in file
> /usr/local/www/bacularis/protected/vendor/pradosoft/prado/framework/Data/Common/Pgsql/TPgsqlMetaData.php).
>
>
>
> On 8 Apr 2024, at 23:35, Marcin Haba  wrote:
>
> Hello Neil,
>
> I have checked installing Bacularis on FreeBSD and I have one more note.
>
> By default in Apache is used PHP as Apache module. If you want to use it
> this way, it is fine. Nothing else to do. If you will need to use PHP
> through PHP-FPM, then you need to do a few changes in your httpd.conf to
> disable the Apache PHP module and enable PHP-FPM.
>
> First, you need to disable/comment the MPM Prefork module and libphp:
>
> #LoadModule mpm_prefork_module libexec/apache24/mod_mpm_prefork.so
> #LoadModule php_module libexec/apache24/libphp.so
>
> and enable/uncomment these modules:
>
> LoadModule mpm_event_module libexec/apache24/mod_mpm_event.so
> LoadModule proxy_module libexec/apache24/mod_proxy.so
> LoadModule proxy_fcgi_module libexec/apache24/mod_proxy_fcgi.so
>
> Then you need to add these lines to the same httpd.conf:
>
> 
> SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
> 
> SetHandler  "proxy:unix:/tmp/php-fpm.sock|fcgi://localhost/"
> 
> 
>
> At the end in /usr/local/etc/php-fpm.d/www.conf you need to set
> permissions for PHP-FPM unix socket:
>
> listen.owner = www
> listen.group = www
> listen.mode = 0660
>
> and restart the services:
>
> # service php-fpm restart
> # service apache24 restart
>
> Best regards,
> Marcin Haba (gani)
>
> On Tue, 9 Apr 2024 at 04:54, Marcin Haba  wrote:
>
>> Hello Neil,
>>
>> Thanks for your feedback with installing Bacularis on FreeBSD.
>>
>> It looks that in your environment this script uses the default FreeBSD
>> shell /bin/sh (or any other) that does not support arrays.
>>
>> This is the Bash script so to use it you need to install Bash:
>>
>> # pkg install bash
>>
>> After that you need to update shebang in the install.sh script to:
>>
>> #!/usr/local/bin/bash
>>
>> Once it is done, it should start working well. In case problems, please
>> let us know.
>>
>> Good luck!
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Tue, 9 Apr 2024 at 02:38, Neil Balchin  wrote:
>>
>>> I’ve installed Bacula in a Freebsd Jail and all is well,  Also installed
>>> Apache24, and the requisite php mods to run bacularis.
>>>
>>> I’ve followed the manual instructions to the letter but when I get to
>>> the install.sh step I get this error output :
>>>
>>> root@Bacula1:/usr/local/www/bacularis/protected/tools # sh ./install.sh
>>> -p /tmp/php-fpm.sock
>>>
>>> +===+
>>> |  Welcome in the Bacularis install script  |
>>> +---+
>>> |  This script will help you to adjust privileges   |
>>> |  for Bacularis files and it will prepare  |
>>> |  configuration files for popular web servers. |
>>> +---+
>>>
>>>
>>> ./install.sh: 34: Syntax error: word unexpected (expecting ")")
>>> root@Bacula1:/usr/local/www/bacularis/protected/tools #
>>>
>>>
>>>
>>> ___
>>> Bacula-users mailing list
>>> Bacula-users@lists.sourceforge.net
>>> https://lists.sourc

Re: [Bacula-users] Bacula and german special chars "umlauts"

2024-04-08 Thread Marcin Haba
Hello Stefan,

Yes, filenames displayed in the restore process.

Also it might be good to check how the names are stored in the database in
the File table if everything is fine there.

Best regards,
Marcin Haba (gani)

On Tue, 9 Apr 2024 at 08:20, Stefan G. Weichinger  wrote:

> Am 09.04.24 um 08:04 schrieb Marcin Haba:
> > Hello Stefan,
> >
> > I agree with Anders' advice to check Bacula first. Bacula stores file
> > names in the database as they are, without interpreting them, no
> > encoding conversion. It means that something is wrong on the input when
> > names are stored, it will also be wrong on the output when names are get
> > from the database.
>
> And would do I check in Bacula?
>
> The display of filenames in the Restore-process?
>
>

-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula and german special chars "umlauts"

2024-04-08 Thread Marcin Haba
Hello Stefan,

I agree with Anders' advice to check Bacula first. Bacula stores file names
in the database as they are, without interpreting them, no encoding
conversion. It means that something is wrong on the input when names are
stored, it will also be wrong on the output when names are get from the
database.

Best regards,
Marcin Haba (gani)

On Tue, 9 Apr 2024 at 07:15, Anders Gustafsson 
wrote:

> Not using bacularis, but accented characters, used in all languages,
> except English and some odd language
> spoken by about 1000 people on an island in the Pacific, work for us. Try
> restoring from bconsole to rule out
> that it is a bacula issue and not just a bacularis one.
>
> --
> Med vänlig hälsning
>
> Anders Gustafsson, ingenjör
> anders.gustafs...@pedago.fi  |  Support +358 18 12060  |  Direkt +358 9
> 315 45 121  |  Mobil +358 40506 7099
>
> Pedago interaktiv ab, Nygatan 7 B , AX-22100 MARIEHAMN, ÅLAND, FINLAND
>
>
>
> >>> "Stefan G. Weichinger"  2024-04-09 08:06 >>>
>
> I am in the process of installing and configuring Bacula-13.0.4 and
> Bacularis-2.7.0 on a Debian-12.5 server.
>
> (moving over from using Amanda, I might ask a few questions around that
> soon)
>
> What I noticed: when I access "Restore" in Bacularis, there are files
> displayed with strange chars instead of the correct german special chars
> or "Umlauts".
>
> That's something I would like to get correct from the start.
>
> I installed from the deb-packages and use postgresql as database.
>
> Didn't notice any specific choice of charsets or so.
>
> Does that maybe come from the language I chose for Bacularis?
>
> Right now I have it in english ...
>
> pls advise, thanks, Stefan
>
>
> ___
> 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
>


-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] connecting bacularis to an existing bacula setup

2024-04-08 Thread Marcin Haba
Hello Steven,

Yes, web servers by default listen on port 80 but it is possible to change.
Bacularis uses only one port 9097. I mean that after installing Bacularis
with the web server, you can just disable listening on port 80 or change it
to any other port number.

Best regards,
Marcin Haba (gani)

On Tue, 9 Apr 2024 at 06:29, steven  wrote:

> Hi,
>
> It will not run on bare metal as it tries to run on port80, but I have
> apache containers on port 80 and 443 already which was why I went for a
> docker container to isolate bacularis that runs on 9097 OK but the wizard
> lacks connectivity to bacula.
> regards
>
> Steven
>
> On 9/04/2024 2:16 pm, Marcin Haba wrote:
>
> Hello Steven,
>
> Bacularis API and Bacularis Web are one application called just Bacularis.
> So, as I see you already have it.
>
> In the installation wizard there is possible to choose if you want to
> configure API or Web or both (typical case). After installation you need
> just to go to:
>
> http://yourhost:9097
>
> Best regards,
> Marcin Haba (gani)
>
> On Tue, 9 Apr 2024 at 01:15, Thing  wrote:
>
>> Google it seems does not like my email server...lets try again, sorry if
>> we get a duplicate.
>>
>> Hi,
>>
>> I dont see a bacualris API to install?
>>
>> root@bacula:~# dpkg -l bacula*
>> Desired=Unknown/Install/Remove/Purge/Hold
>> |
>> Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
>> |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
>> ||/ Name VersionArchitecture Description
>>
>> +++--==--=
>> ii  bacula-bscan 9.6.7-7amd64network backup
>> service - bscan tool
>> ii  bacula-client9.6.7-7all  network backup
>> service - client metapackage
>> ii  bacula-common9.6.7-7amd64network backup
>> service - common support files
>> ii  bacula-common-mysql  9.6.7-7amd64network backup
>> service - MySQL common files
>> un  bacula-common-pgsql  (no description
>> available)
>> un  bacula-common-sqlite3(no description
>> available)
>> ii  bacula-console   9.6.7-7amd64network backup
>> service - text console
>> ii  bacula-director  9.6.7-7amd64network backup
>> service - Director daemon
>> un  bacula-director-database (no description
>> available)
>> ii  bacula-director-mysql9.6.7-7all  network backup
>> service - MySQL storage for Director
>> un  bacula-director-pgsql(no description
>> available)
>> un  bacula-director-sqlite3  (no description
>> available)
>> un  bacula-doc   (no description
>> available)
>> ii  bacula-fd9.6.7-7amd64network backup
>> service - file daemon
>> ii  bacula-sd9.6.7-7amd64network backup
>> service - storage daemon
>> un  bacula-sd-mysql  (no description
>> available)
>> un  bacula-sd-pgsql  (no description
>> available)
>> un  bacula-sd-sqlite3(no description
>> available)
>> ii  bacula-server9.6.7-7all  network backup
>> service - server metapackage
>> ii  bacularis2.7.0~bullseye all  The Bacularis
>> WebGUI enables administration and managing Bacula jobs.
>> ii  bacularis-apache22.7.0~bullseye all  This package
>> provides the Apache configuration for Bacularis.
>> un  bacularis-lighttpd       (no description
>> available)
>> un  bacularis-nginx  (no description
>> available)
>> root@bacula:~#
>>
>>
>> I am finding the naming convention /description difficult to understand.
>> So, I have a bacularis web container running.  It appears I need something
>> between the container and the director? but I cannot see what.
>>
>> regards
>>
>> Steven
>>
>> On Tue, 9 Apr 2024 at 05:17, Marcin Haba  wrote:
>>
>>> Hello Steven,
>>>
>>> Of course, you don't need to uninstall anything. Bacula daemons stay
>>> where they are. Don't worry, nothing changes here.
>>>
>>> In that container image description is a sentence:
>>>
>>&g

Re: [Bacula-users] Install.sh error trying to install manually Bacularis

2024-04-08 Thread Marcin Haba
Hello Neil,

I have checked installing Bacularis on FreeBSD and I have one more note.

By default in Apache is used PHP as Apache module. If you want to use it
this way, it is fine. Nothing else to do. If you will need to use PHP
through PHP-FPM, then you need to do a few changes in your httpd.conf to
disable the Apache PHP module and enable PHP-FPM.

First, you need to disable/comment the MPM Prefork module and libphp:

#LoadModule mpm_prefork_module libexec/apache24/mod_mpm_prefork.so
#LoadModule php_module libexec/apache24/libphp.so

and enable/uncomment these modules:

LoadModule mpm_event_module libexec/apache24/mod_mpm_event.so
LoadModule proxy_module libexec/apache24/mod_proxy.so
LoadModule proxy_fcgi_module libexec/apache24/mod_proxy_fcgi.so

Then you need to add these lines to the same httpd.conf:


SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1

SetHandler  "proxy:unix:/tmp/php-fpm.sock|fcgi://localhost/"



At the end in /usr/local/etc/php-fpm.d/www.conf you need to set permissions
for PHP-FPM unix socket:

listen.owner = www
listen.group = www
listen.mode = 0660

and restart the services:

# service php-fpm restart
# service apache24 restart

Best regards,
Marcin Haba (gani)

On Tue, 9 Apr 2024 at 04:54, Marcin Haba  wrote:

> Hello Neil,
>
> Thanks for your feedback with installing Bacularis on FreeBSD.
>
> It looks that in your environment this script uses the default FreeBSD
> shell /bin/sh (or any other) that does not support arrays.
>
> This is the Bash script so to use it you need to install Bash:
>
> # pkg install bash
>
> After that you need to update shebang in the install.sh script to:
>
> #!/usr/local/bin/bash
>
> Once it is done, it should start working well. In case problems, please
> let us know.
>
> Good luck!
>
> Best regards,
> Marcin Haba (gani)
>
> On Tue, 9 Apr 2024 at 02:38, Neil Balchin  wrote:
>
>> I’ve installed Bacula in a Freebsd Jail and all is well,  Also installed
>> Apache24, and the requisite php mods to run bacularis.
>>
>> I’ve followed the manual instructions to the letter but when I get to the
>> install.sh step I get this error output :
>>
>> root@Bacula1:/usr/local/www/bacularis/protected/tools # sh ./install.sh
>> -p /tmp/php-fpm.sock
>>
>>
>> +===+
>>
>> |  Welcome in the Bacularis install script  |
>>
>> +---+
>>
>> |  This script will help you to adjust privileges   |
>>
>> |  for Bacularis files and it will prepare  |
>>
>> |  configuration files for popular web servers. |
>>
>> +---+
>>
>>
>>
>> ./install.sh: 34: Syntax error: word unexpected (expecting ")")
>>
>> root@Bacula1:/usr/local/www/bacularis/protected/tools #
>>
>>
>>
>>
>> ___
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
>
>
> --
>
> "Greater love hath no man than this, that a man lay down his life for his 
> friends." Jesus Christ
>
> "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za 
> przyjaciół swoich." Jezus Chrystus
>
>

-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Install.sh error trying to install manually Bacularis

2024-04-08 Thread Marcin Haba
Hello Neil,

Thanks for your feedback with installing Bacularis on FreeBSD.

It looks that in your environment this script uses the default FreeBSD
shell /bin/sh (or any other) that does not support arrays.

This is the Bash script so to use it you need to install Bash:

# pkg install bash

After that you need to update shebang in the install.sh script to:

#!/usr/local/bin/bash

Once it is done, it should start working well. In case problems, please let
us know.

Good luck!

Best regards,
Marcin Haba (gani)

On Tue, 9 Apr 2024 at 02:38, Neil Balchin  wrote:

> I’ve installed Bacula in a Freebsd Jail and all is well,  Also installed
> Apache24, and the requisite php mods to run bacularis.
>
> I’ve followed the manual instructions to the letter but when I get to the
> install.sh step I get this error output :
>
> root@Bacula1:/usr/local/www/bacularis/protected/tools # sh ./install.sh
> -p /tmp/php-fpm.sock
>
>
> +===+
>
> |  Welcome in the Bacularis install script  |
>
> +---+
>
> |  This script will help you to adjust privileges   |
>
> |  for Bacularis files and it will prepare  |
>
> |  configuration files for popular web servers. |
>
> +---+
>
>
>
> ./install.sh: 34: Syntax error: word unexpected (expecting ")")
>
> root@Bacula1:/usr/local/www/bacularis/protected/tools #
>
>
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] connecting bacularis to an existing bacula setup

2024-04-08 Thread Marcin Haba
Hello Steven,

Bacularis API and Bacularis Web are one application called just Bacularis.
So, as I see you already have it.

In the installation wizard there is possible to choose if you want to
configure API or Web or both (typical case). After installation you need
just to go to:

http://yourhost:9097

Best regards,
Marcin Haba (gani)

On Tue, 9 Apr 2024 at 01:15, Thing  wrote:

> Google it seems does not like my email server...lets try again, sorry if
> we get a duplicate.
>
> Hi,
>
> I dont see a bacualris API to install?
>
> root@bacula:~# dpkg -l bacula*
> Desired=Unknown/Install/Remove/Purge/Hold
> |
> Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
> |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
> ||/ Name VersionArchitecture Description
>
> +++--==--=
> ii  bacula-bscan 9.6.7-7amd64network backup
> service - bscan tool
> ii  bacula-client9.6.7-7all  network backup
> service - client metapackage
> ii  bacula-common9.6.7-7amd64network backup
> service - common support files
> ii  bacula-common-mysql  9.6.7-7amd64network backup
> service - MySQL common files
> un  bacula-common-pgsql  (no description
> available)
> un  bacula-common-sqlite3(no description
> available)
> ii  bacula-console   9.6.7-7amd64network backup
> service - text console
> ii  bacula-director  9.6.7-7amd64network backup
> service - Director daemon
> un  bacula-director-database (no description
> available)
> ii  bacula-director-mysql9.6.7-7all  network backup
> service - MySQL storage for Director
> un  bacula-director-pgsql(no description
> available)
> un  bacula-director-sqlite3  (no description
> available)
> un  bacula-doc   (no description
> available)
> ii  bacula-fd9.6.7-7amd64network backup
> service - file daemon
> ii  bacula-sd9.6.7-7amd64network backup
> service - storage daemon
> un  bacula-sd-mysql  (no description
> available)
> un  bacula-sd-pgsql  (no description
> available)
> un  bacula-sd-sqlite3(no description
> available)
> ii  bacula-server9.6.7-7all  network backup
> service - server metapackage
> ii  bacularis2.7.0~bullseye all  The Bacularis
> WebGUI enables administration and managing Bacula jobs.
> ii  bacularis-apache22.7.0~bullseye all  This package
> provides the Apache configuration for Bacularis.
> un  bacularis-lighttpd   (no description
> available)
> un  bacularis-nginx  (no description
> available)
> root@bacula:~#
>
>
> I am finding the naming convention /description difficult to understand.
> So, I have a bacularis web container running.  It appears I need something
> between the container and the director? but I cannot see what.
>
> regards
>
> Steven
>
> On Tue, 9 Apr 2024 at 05:17, Marcin Haba  wrote:
>
>> Hello Steven,
>>
>> Of course, you don't need to uninstall anything. Bacula daemons stay
>> where they are. Don't worry, nothing changes here.
>>
>> In that container image description is a sentence:
>>
>> "It can be used to connect external Bacularis API server(s) in containers
>> or outside them."
>>
>> This "outside them" means that you can install Bacularis API in any way
>> that you want, Docker image is only one of the ways.
>>
>> Reading your description for that, what you would like to have, the
>> easiest is to install only one Bacularis using binary packages on the
>> Bacula Director host. It contains the Bacularis Web and Bacularis API
>> together, so you don't need to split it or install anything else, just this
>> one Bacularis instance. The installation wizard, that you will see after
>> installing, will lead you on all the configuration process.
>>
>> In case problems or questions, please let us know. Thanks!
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Mon, 8 Apr 2024 at 09:22, steven  wrote:
>>
>>> hi,
>>>
>>> Ok I am confused.   The way I read it,
>>>
>>> - for File Daemons bacularis-api-

Re: [Bacula-users] connecting bacularis to an existing bacula setup

2024-04-08 Thread Marcin Haba
Hello Steven,

Of course, you don't need to uninstall anything. Bacula daemons stay where
they are. Don't worry, nothing changes here.

In that container image description is a sentence:

"It can be used to connect external Bacularis API server(s) in containers
or outside them."

This "outside them" means that you can install Bacularis API in any way
that you want, Docker image is only one of the ways.

Reading your description for that, what you would like to have, the easiest
is to install only one Bacularis using binary packages on the Bacula
Director host. It contains the Bacularis Web and Bacularis API together, so
you don't need to split it or install anything else, just this one
Bacularis instance. The installation wizard, that you will see after
installing, will lead you on all the configuration process.

In case problems or questions, please let us know. Thanks!

Best regards,
Marcin Haba (gani)

On Mon, 8 Apr 2024 at 09:22, steven  wrote:

> hi,
>
> Ok I am confused.   The way I read it,
>
> - for File Daemons bacularis-api-fd,
>  - for Storage Daemons bacularis-api-sd,
>  - for Directors bacularis-api-dir.
>
> All have the particular bacula daemon built in?I dont need a daemon, I
> already have all the daemons running and have been for 6 odd years now.
> What I was hoping for was to have a web interface on top of Bacula.
> The docker container is running on the bacula director so it is local
> stuff. So I have to remove  the bacula-director and add in the
> bacularis-api-dir instead?
>
> If I need to do serious alterations to the running setup, that is a step
> to far for me.
>
>
> regards
>
> Steven
> On 8/04/2024 7:07 pm, Marcin Haba wrote:
>
> Hello Steven,
>
> Thanks for your question and feedback after installing the bacularis-web
> container. I will try to explain it below.
>
> For your question if the Bacularis Web wizard wants a Bacularis API - yes
> Bacularis Web in this container connects to external Bacularis API.
> Description and purpose of each of these container images you can find in
> the "About this image" section in each of the Bacularis Docker Hub
> repositories. This description for the 'bacularis-web' container is the
> following:
>
> 
> It contains a pure the Bacularis web interface without API layer. It can
> be used to connect external Bacularis API server(s) in containers or
> outside them. If you would like to connect Bacularis API ran in containers,
> you can use dedicated for this purpose images:
>
>  - for File Daemons bacularis-api-fd,
>  - for Storage Daemons bacularis-api-sd,
>  - for Directors bacularis-api-dir.
> 
>
> The Bacularis Web to work needs at least one API host with bconsole and
> catalog access (and Bacula configuration capability if needed). So you can
> set up the Bacularis API in any way (installing binary packages, container,
> Composer, tar archives) and then connect it using the wizard from the
> bacularis-web container.
>
> Worth mentioning is that for the Bacula configuration part Bacularis API
> needs access to Bacula config files so easier is to work with Bacularis API
> instances outside the container. Otherwise you need to bind the Bacula
> configuration paths to Bacularis API container or use Bacula config files
> from Bacula in container.
>
> Your question also indicated me that this first step section needs to be
> better explained in the documentation. I will try to prepare it soon.
>
> Thanks!
>
> Best regards,
> Marcin Haba (gani)
>
> On Mon, 8 Apr 2024 at 07:16, steven  wrote:
>
>> Hi,
>>
>> Seeing the release I thought I would give bacularis a go.I have the
>> bacularis-web docker container running but I cant see any documentation
>> telling me how to connect it to my existing bacula setup.
>>
>> The wizard wants a baculum API?  but this isnt explained.
>>
>> Is there any set by set explanation of how to connect the bacularis-web
>> docker container to an existing bacula setup ?
>>
>>
>> TY
>>
>>
>>
>> ___
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
>
>
> --
>
> "Greater love hath no man than this, that a man lay down his life for his 
> friends." Jesus Christ
>
> "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za 
> przyjaciół swoich." Jezus Chrystus
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] New release Bacularis 2.7.0

2024-04-08 Thread Marcin Haba
Hello Unkdef,

In this case it might be good to do the catalog database tuning. For your
MySQL database there is a great tool called MySQLTuner. You can find it
here:

https://github.com/major/MySQLTuner-perl

Please follow on the advices given by MySQLTuner.

Best regards,
Marcin Haba (gani)

On Mon, 8 Apr 2024 at 15:38, Unkdef unkdef  wrote:

> So, i update bacula to 15.0.2 and bacularis 2.7.0 but problem with slow
> loading web interface exists. how to fix it ?
>
>
> Marcin Haba  7 апреля 2024 г. 22:31:03 написал:
>
>> Hello Everybody,
>>
>> We are pleased to announce a new Bacularis version 2.7.0. This is a new
>> feature and bug fix release. It provides two new functions: the network
>> test between file daemon and storage daemon and also the advanced sudo
>> settings.
>>
>> From the bug fixes side we fixed a few important bugs.
>>
>> New functions in 2.7.0:
>>  - Network test: https://www.youtube.com/watch?v=zmxYW-eMkCo
>>
>> Useful links:
>>  Release announcement:
>> https://bacularis.app/news/76/36/New-release-Bacularis-2.7.0
>>  Documentation: https://bacularis.app/doc
>>  Online demo: https://demo.bacularis.app
>>
>> As always binary packages 2.7.0 for popular Linux distributions are
>> available already in the package repositories. Docker container images
>> 2.7.0 are available in the Docker Hub repositories.
>>
>> We wish you successful installations and upgrades.
>>
>> On behalf of the Bacularis Team
>> Marcin Haba (gani)
>>
>> --
>>
>> "Greater love hath no man than this, that a man lay down his life for his 
>> friends." Jesus Christ
>>
>> "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za 
>> przyjaciół swoich." Jezus Chrystus
>>
>> ___
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
>>
>

-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] connecting bacularis to an existing bacula setup

2024-04-08 Thread Marcin Haba
Hello Steven,

Thanks for your question and feedback after installing the bacularis-web
container. I will try to explain it below.

For your question if the Bacularis Web wizard wants a Bacularis API - yes
Bacularis Web in this container connects to external Bacularis API.
Description and purpose of each of these container images you can find in
the "About this image" section in each of the Bacularis Docker Hub
repositories. This description for the 'bacularis-web' container is the
following:


It contains a pure the Bacularis web interface without API layer. It can be
used to connect external Bacularis API server(s) in containers or outside
them. If you would like to connect Bacularis API ran in containers, you can
use dedicated for this purpose images:

 - for File Daemons bacularis-api-fd,
 - for Storage Daemons bacularis-api-sd,
 - for Directors bacularis-api-dir.


The Bacularis Web to work needs at least one API host with bconsole and
catalog access (and Bacula configuration capability if needed). So you can
set up the Bacularis API in any way (installing binary packages, container,
Composer, tar archives) and then connect it using the wizard from the
bacularis-web container.

Worth mentioning is that for the Bacula configuration part Bacularis API
needs access to Bacula config files so easier is to work with Bacularis API
instances outside the container. Otherwise you need to bind the Bacula
configuration paths to Bacularis API container or use Bacula config files
from Bacula in container.

Your question also indicated me that this first step section needs to be
better explained in the documentation. I will try to prepare it soon.

Thanks!

Best regards,
Marcin Haba (gani)

On Mon, 8 Apr 2024 at 07:16, steven  wrote:

> Hi,
>
> Seeing the release I thought I would give bacularis a go.I have the
> bacularis-web docker container running but I cant see any documentation
> telling me how to connect it to my existing bacula setup.
>
> The wizard wants a baculum API?  but this isnt explained.
>
> Is there any set by set explanation of how to connect the bacularis-web
> docker container to an existing bacula setup ?
>
>
> TY
>
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] New release Bacularis 2.7.0

2024-04-07 Thread Marcin Haba
Hello Everybody,

We are pleased to announce a new Bacularis version 2.7.0. This is a new
feature and bug fix release. It provides two new functions: the network
test between file daemon and storage daemon and also the advanced sudo
settings.

>From the bug fixes side we fixed a few important bugs.

New functions in 2.7.0:
 - Network test: https://www.youtube.com/watch?v=zmxYW-eMkCo

Useful links:
 Release announcement:
https://bacularis.app/news/76/36/New-release-Bacularis-2.7.0
 Documentation: https://bacularis.app/doc
 Online demo: https://demo.bacularis.app

As always binary packages 2.7.0 for popular Linux distributions are
available already in the package repositories. Docker container images
2.7.0 are available in the Docker Hub repositories.

We wish you successful installations and upgrades.

On behalf of the Bacularis Team
Marcin Haba (gani)

-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] baculum + bacula 13.0.4 slow web interface

2024-04-07 Thread Marcin Haba
Hello Unkdef,

Yes, it does. As Rob mentioned, Bacularis is based on Baculum that supports
Russian translations too. The translations are there thanks to Sergey
Zhidkov who prepared them.

Best regards,
Marcin Haba (gani)

On Sun, 7 Apr 2024 at 10:50, Unkdef unkdef  wrote:

>
> ok i try bacularis
> does bacularis support russian language interface?
>
> Rob Gerber  7 апреля 2024 г. 01:24:27 написал:
>
>> Unkdef, one important thing to know is that Bacularis is a friendly fork
>> of baculum. It's very similar, and Marcin has been actively maintaining it.
>> Marcin is also a baculum developer.
>>
>> Basically, Bacularis is the better, more optimized tool.
>>
>> This doesn't mean that the source of your problem is certainly baculum,
>> but trying the actively maintained and more optimized tool Bacularis is
>> certainly a good first step. :)
>>
>> Bacularis is available in docker containers if you want to simply load a
>> container and give it a try. It is naturally available for bare metal
>> installations as well.
>>
>> Https://bacularis.app
>>
>> Robert Gerber
>> 402-237-8692
>> r...@craeon.net
>>
>> On Sat, Apr 6, 2024, 12:56 PM Unkdef unkdef 
>> wrote:
>>
>>> i use only 45 backup jobs a day...
>>>
>>> Marcin Haba  6 апреля 2024 г. 20:14:30 написал:
>>>
>>>> Hello Unkdef,
>>>>
>>>> Yes, Baculum 11.0.6 is a bit old and can be a little slow, specially
>>>> for many jobs and MySQL. There exists a couple of techniques to speed it up
>>>> like described here:
>>>>
>>>>
>>>> https://baculum.app/doc/brief/troubleshooting.html#the-baculum-job-tables-are-loading-slowly
>>>>
>>>> or here:
>>>>
>>>>
>>>> https://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg72737.html
>>>>
>>>> If I could suggest something, I would propose to try Bacularis that is
>>>> much faster and contains significant optimizations.
>>>>
>>>> Best regards,
>>>> Marcin Haba (gani)
>>>>
>>>> On Fri, 5 Apr 2024 at 09:07, Unkdef unkdef 
>>>> wrote:
>>>>
>>>>> Hello! I use bacula 13.0.4(mysql) and baculum 11.0.6 on Ubuntu 22.04
>>>>> Problem: When I refresh page in baculum i wait 10-15 sec before i see
>>>>> information of backups and other... how to fix it?
>>>>> ___
>>>>> Bacula-users mailing list
>>>>> Bacula-users@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> "Greater love hath no man than this, that a man lay down his life for his 
>>>> friends." Jesus Christ
>>>>
>>>> "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za 
>>>> przyjaciół swoich." Jezus Chrystus
>>>>
>>>>
>>> ___
>>> Bacula-users mailing list
>>> Bacula-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>>
>>
>

-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] baculum + bacula 13.0.4 slow web interface

2024-04-06 Thread Marcin Haba
Hello Unkdef,

Yes, Baculum 11.0.6 is a bit old and can be a little slow, specially for
many jobs and MySQL. There exists a couple of techniques to speed it up
like described here:

https://baculum.app/doc/brief/troubleshooting.html#the-baculum-job-tables-are-loading-slowly

or here:

https://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg72737.html

If I could suggest something, I would propose to try Bacularis that is much
faster and contains significant optimizations.

Best regards,
Marcin Haba (gani)

On Fri, 5 Apr 2024 at 09:07, Unkdef unkdef  wrote:

> Hello! I use bacula 13.0.4(mysql) and baculum 11.0.6 on Ubuntu 22.04
> Problem: When I refresh page in baculum i wait 10-15 sec before i see
> information of backups and other... how to fix it?
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacularis/Baculum] Restore with web doesn't create job before 1 hour

2024-04-06 Thread Marcin Haba
Hello Timothé,

Thanks for providing all details about this restore problem.

I did tests on a set of 150K files with old Bacula 9.0.6 and the latest
15.0.2. It looks that something has changed in Bacula MySQL/MariaDB support
in a version between because on the version 9 it works well, while on 15 it
hangs on the restore commands.

Your restore using bconsole can work much better because it does not use
Bacula Bvfs interface.

I will try to look at it deeper in the next few days. I will let know if I
find something.

Best regards,
Marcin Haba (gani)

On Thu, 4 Apr 2024 at 16:14, timothe pennec  wrote:

> Hi,
>
> I'm using mariadb for database and it's him seems to be slow :
> top result :
>
> top - 16:08:51 up 2 days, 20:10,  6 users,  load average: 0,97, 0,60, 0,29
> Tasks: 307 total,   1 running, 306 sleeping,   0 stopped,   0 zombie
> %Cpu(s): 12,5 us,  0,0 sy,  0,0 ni, 87,3 id,  0,0 wa,  0,0 hi,  0,2 si,
>  0,0 st
> MiB Mem :   7936,5 total,177,7 free,592,8 used,   7166,1 buff/cache
> MiB Swap:   4096,0 total,   4095,0 free,  1,0 used.   7026,5 avail Mem
> PID USER  PR  NIVIRTRESSHR S  %CPU  %MEM TIME+ COMMAND
>   29267 mysql 20   0 1346196 142604  23396 S 100,0   1,8   2:53.58
> mariadbd
>
> I've 8 vCPU but only one is at 100 % (can see it with htop) all other at 0.
>
> I've enabled debug level 500 and i can see many log right after submit
> button "Run" and stuck at :
>
> bacula-dir: ua_restore.c:2015-0 JobId=4792 JobIds= FileIndex=10
> [All 53000 files ...]
> bacula-dir: ua_restore.c:2015-0 JobId=4792 JobIds= FileIndex=53895
> bacula-dir: ua_restore.c:2015-0 JobId=4792 JobIds= FileIndex=53896
> bacula-dir: mysql.c:584-0 db_sql_query finished
> bacula-dir: ua_restore.c:1476-0 query=SELECT Path.Path, File.Filename FROM
> File JOIN Path USING (PathId) JOIN b210091 AS T ON (File.JobId = T.JobId
> AND File.FileIndex = T.FileIndex) WHERE File.Filename LIKE
> ':component_info_%' AND File.JobId IN (4792)
> bacula-dir: mysql.c:527-0 db_sql_query starts with SELECT Path.Path,
> File.Filename FROM File JOIN Path USING (PathId) JOIN b210091 AS T ON
> (File.JobId = T.JobId AND File.FileIndex = T.FileIndex) WHERE File.Filename
> LIKE ':component_info_%' AND File.JobId IN (4792)
>
>
> Any idea ?
>
> Thank you
> Timothé
>
> --
> *De :* Marcin Haba 
> *Envoyé :* mercredi 3 avril 2024 21:53
> *À :* timothe pennec 
> *Cc :* bacula-users@lists.sourceforge.net <
> bacula-users@lists.sourceforge.net>
> *Objet :* Re: [Bacula-users] [Bacularis/Baculum] Restore with web doesn't
> create job before 1 hour
>
> Hello Timothé,
>
> Thanks for your detailed description of the problem.
>
> For start I would propose to check what is going inside Bacula and the
> Catalog when this restore is trying to start.
>
> Yes, observing 'ps aux' is a good idea, that you did. Also useful can be
> 'top' command with watching what process takes the most resources.
>
> From the Bacula side you can set debug for Director by this bconsole
> command:
>
> setdebug level=500 tags=bvfs,sql trace=1 dir
>
> in the Bacula Director working directory you will see the
> youdirector-dir.trace file where this debug lines will be written.
>
> If your Catalog database is PostgreSQL you ran run in the time of the
> restore hanging this SQL query to see currently pending SQL queries:
>
> SELECT * FROM pg_stat_activity;
>
> Please let us know about the results.
>
> Good luck.
>
> Best regards,
> Marcin Haba (gani)
>
> On Wed, 3 Apr 2024 at 20:40, timothe pennec  wrote:
>
> Hi everyone,
>
> I've one issue with Bacularis (and same with Baculum) WEB when i follow
> the restore wizzard :
>
>- I select my client and let checked "Enable restore from copy job
>feature"
>- I select the Last full Backup of my client
>- I select one folder with add button (total of files about 55 000 and
>total syse about 4Go)
>- I select the same client and "/tm/restore" folder for testing
>- I let default setting for Restore job (RestoreFiles and no replace
>file and no relocate files)
>- I submit with "Run restore"
>
>
> When i submit nothing happen (i got only "loading" favicon and not
> redirect or validation message for create job).
> At the same time if i open new tab to default web page it seems the server
> not responding for a while and after a time the page loaded for the default
> tab and error "504 Gateway timeout" for restore tab
> If i ssh and launch bconsole and enter "status director" i can see that no
> job was created (

Re: [Bacula-users] [Bacularis/Baculum] Restore with web doesn't create job before 1 hour

2024-04-03 Thread Marcin Haba
Hello Timothé,

Thanks for your detailed description of the problem.

For start I would propose to check what is going inside Bacula and the
Catalog when this restore is trying to start.

Yes, observing 'ps aux' is a good idea, that you did. Also useful can be
'top' command with watching what process takes the most resources.

>From the Bacula side you can set debug for Director by this bconsole
command:

setdebug level=500 tags=bvfs,sql trace=1 dir

in the Bacula Director working directory you will see the
youdirector-dir.trace file where this debug lines will be written.

If your Catalog database is PostgreSQL you ran run in the time of the
restore hanging this SQL query to see currently pending SQL queries:

SELECT * FROM pg_stat_activity;

Please let us know about the results.

Good luck.

Best regards,
Marcin Haba (gani)

On Wed, 3 Apr 2024 at 20:40, timothe pennec  wrote:

> Hi everyone,
>
> I've one issue with Bacularis (and same with Baculum) WEB when i follow
> the restore wizzard :
>
>- I select my client and let checked "Enable restore from copy job
>feature"
>- I select the Last full Backup of my client
>- I select one folder with add button (total of files about 55 000 and
>total syse about 4Go)
>- I select the same client and "/tm/restore" folder for testing
>- I let default setting for Restore job (RestoreFiles and no replace
>file and no relocate files)
>- I submit with "Run restore"
>
>
> When i submit nothing happen (i got only "loading" favicon and not
> redirect or validation message for create job).
> At the same time if i open new tab to default web page it seems the server
> not responding for a while and after a time the page loaded for the default
> tab and error "504 Gateway timeout" for restore tab
> If i ssh and launch bconsole and enter "status director" i can see that no
> job was created (terminated or running or whatever state).
>
> Here a "ps aux | grep bconsole" at this time :
> www-data   21059  0.0  0.0   2892   964 ?S19:45   0:00 sh -c
> sudo /usr/bin/bconsole -c "/etc/bacula/bconsole.conf" -D bacula-dir 2>&1
> < replace="never" restorejob="RestoreFiles" where="/tmp/restore" yes quit
> END_OF_DATA
> root   21060  0.0  0.0   8488  5228 ?S19:45   0:00 sudo
> /usr/bin/bconsole -c /etc/bacula/bconsole.conf -D bacula-dir
> root   21061  0.0  0.1 165928 10516 ?Sl   19:45   0:00
> /usr/bin/bconsole -c /etc/bacula/bconsole.conf -D bacula-dir
>
> I'm running with bacula 15.0.2 with apt for server and clients all in
> Ubuntu 22.04
> The result of "tail -f /opt/bacula/log/bacula.log" is empty for all
> process.
>
> For about 50min / 70 min nothing happen then i got job created !
>
> For exemple the log for the test run at 17:03 (job created at 18:00 and
> all file copied in < 1 min)
>
> bacula-dir JobId 4831: End auto prune.
> bacula-dir JobId 4831: No Files found to prune.
> bacula-dir JobId 4831: Begin pruning Files.
> bacula-dir JobId 4831: No Jobs found to prune.
> bacula-dir JobId 4831: Begin pruning Jobs older than 6 months .
> bacula-dir JobId 4831: Bacula bacula-dir 15.0.2 (21Mar24):
>   Build OS:   x86_64-pc-linux-gnu-bacula ubuntu 22.04
>   JobId:  4831
>   Job:RestoreFiles.2024-04-02_18.00.36_48
>   Restore Client: "www.example.org" 15.0.2 (21Mar24)
> x86_64-pc-linux-gnu-bacula,ubuntu,22.04
>   Where:  /tmp/restore
>   Replace:Never
>   Start time: 02-avril-2024 18:00:38
>   End time:   02-avril-2024 18:01:19
>   Elapsed time:   41 secs
>   Files Expected: 53,888
>   Files Restored: 53,888
>   Bytes Restored: 4,066,211,495 (4.066 GB)
>   Rate:   99175.9 KB/s
>   FD Errors:  0
>   FD termination status:  OK
>   SD termination status:  OK
>   Termination:Restore OK
> bacula-sd JobId 4831: Elapsed time=00:00:41, Transfer rate=99.38 M
> Bytes/second
> bacula-sd JobId 4831: Forward spacing Volume "Monthlyvol-0017" to
> addr=22149617617
> bacula-sd JobId 4831: Ready to read from volume "Monthlyvol-0017" on File
> device "FileStorage" (/backup).
> wwwexampleorg-fd JobId 4831: Connected to Storage at
> bacula.esx2.example.org:9103 with TLS
> bacula-dir JobId 4831: Connected to Client "www.example.org" at
> 2001:41d0:303:f006::3:9102 with TLS
> bacula-dir JobId 4831: Using Device "FileStorage" to read.
> bacula-dir JobId 4831: Connected to Storage
> &quo

Re: [Bacula-users] Bacularis API host initial setup with postgresql and bacula.

2024-04-03 Thread Marcin Haba
Hello Rob,

Bacularis is not able to use the peer authentication method easily because
it is authentication that is based on system users. In this case the
Bacularis PHP user usually is different from the default Bacula database
user.

In your case I think if you want you can stay in the peer method for Bacula
connections and add a line in pg_hba.conf to TCP/IP connections for
Bacularis. Something like:

# "local" is for Unix domain socket connections only (for Bacula)
local   all all peer
# IPv4 local connections (for Bacularis):
hostall all 127.0.0.1/32
 scram-sha-256

The only thing to do is to set password for your 'bacula' user:

ALTER USER bacula WITH PASSWORD 'STRONG_PASSWORD';

This password will be used for TCP/IP connections but Bacula will not need
it.

Best regards,
Marcin Haba (gani)

On Wed, 3 Apr 2024 at 17:27, Rob Gerber  wrote:

> Marcin,
>
> Thank you for the very quick response! I will experiment with this when I
> have some time.
>
> I am guessing because I've never configured a password for the bacula
> database, and based on my pg_hba.conf, that bacula is authenticating to the
> database server via peer connections, so bacula doesn't need a password to
> access the database (in my default configuration). This detail kind of
> stumped me at first. Please let me know if you think this is incorrect. My
> original fear was that resetting the database password would lock bacula
> out of the database.
>
> Robert Gerber
> 402-237-8692
> r...@craeon.net
>
> On Tue, Apr 2, 2024, 11:40 PM Marcin Haba  wrote:
>
>> Hello Rob,
>>
>> At the moment I prepared a section about the authentication methods in
>> the Bacularis documentation. You can read it here:
>>
>>
>> https://bacularis.app/doc/brief/configuration.html#bacula-catalog-database-access
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Wed, 3 Apr 2024 at 04:51, Marcin Haba  wrote:
>>
>>> Hello Rob,
>>>
>>> Thanks for your question.
>>>
>>> As the authentication method in PostgreSQL pg_hba.conf you can use
>>> scram-sha-256 This method is available starting from PostgreSQL 10.
>>>
>>> For the Bacularis documentation, yes, it looks to be missing there. I
>>> will add to the doc this section about configuring the Catalog Database
>>> access in Bacularis. Thanks for pointing it.
>>>
>>> Best regards,
>>> Marcin Haba (gani)
>>>
>>> On Wed, 3 Apr 2024 at 00:50, Rob Gerber  wrote:
>>>
>>>> I have previously set up bacula and bacularis on Rocky Linux 9. At the
>>>> time I ran into issues giving bacularis access to bacula's postgresql
>>>> database. I didn't know the bacula database password. At that time I set
>>>> the postgresql pg_hba.conf file to use "trust". However I am concerned that
>>>> this isn't a good security best practice.
>>>>
>>>> I am setting up a second bacula / Bacularis system and I'd like to
>>>> revisit this postgres authentication issue so I can follow best practice
>>>> better.
>>>>
>>>> The bacularis documentation doesn't make it clear how I am supposed to
>>>> authenticate bacularis to bacula's database.
>>>>
>>>> I suspect there is a process that is obvious to many others and not to
>>>> me.
>>>>
>>>> Does anyone here have suggestions for how I might authenticate
>>>> bacularis to the bacula database?
>>>>
>>>> Robert Gerber
>>>> 402-237-8692
>>>> r...@craeon.net
>>>> ___
>>>> Bacula-users mailing list
>>>> Bacula-users@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>>>
>>>
>>>
>>> --
>>>
>>> "Greater love hath no man than this, that a man lay down his life for his 
>>> friends." Jesus Christ
>>>
>>> "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za 
>>> przyjaciół swoich." Jezus Chrystus
>>>
>>>
>>
>> --
>>
>> "Greater love hath no man than this, that a man lay down his life for his 
>> friends." Jesus Christ
>>
>> "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za 
>> przyjaciół swoich." Jezus Chrystus
>>
>>

-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacularis API host initial setup with postgresql and bacula.

2024-04-02 Thread Marcin Haba
Hello Rob,

At the moment I prepared a section about the authentication methods in the
Bacularis documentation. You can read it here:

https://bacularis.app/doc/brief/configuration.html#bacula-catalog-database-access

Best regards,
Marcin Haba (gani)

On Wed, 3 Apr 2024 at 04:51, Marcin Haba  wrote:

> Hello Rob,
>
> Thanks for your question.
>
> As the authentication method in PostgreSQL pg_hba.conf you can use
> scram-sha-256 This method is available starting from PostgreSQL 10.
>
> For the Bacularis documentation, yes, it looks to be missing there. I will
> add to the doc this section about configuring the Catalog Database access
> in Bacularis. Thanks for pointing it.
>
> Best regards,
> Marcin Haba (gani)
>
> On Wed, 3 Apr 2024 at 00:50, Rob Gerber  wrote:
>
>> I have previously set up bacula and bacularis on Rocky Linux 9. At the
>> time I ran into issues giving bacularis access to bacula's postgresql
>> database. I didn't know the bacula database password. At that time I set
>> the postgresql pg_hba.conf file to use "trust". However I am concerned that
>> this isn't a good security best practice.
>>
>> I am setting up a second bacula / Bacularis system and I'd like to
>> revisit this postgres authentication issue so I can follow best practice
>> better.
>>
>> The bacularis documentation doesn't make it clear how I am supposed to
>> authenticate bacularis to bacula's database.
>>
>> I suspect there is a process that is obvious to many others and not to me.
>>
>> Does anyone here have suggestions for how I might authenticate bacularis
>> to the bacula database?
>>
>> Robert Gerber
>> 402-237-8692
>> r...@craeon.net
>> ___
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
>
>
> --
>
> "Greater love hath no man than this, that a man lay down his life for his 
> friends." Jesus Christ
>
> "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za 
> przyjaciół swoich." Jezus Chrystus
>
>

-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacularis API host initial setup with postgresql and bacula.

2024-04-02 Thread Marcin Haba
Hello Rob,

Thanks for your question.

As the authentication method in PostgreSQL pg_hba.conf you can use
scram-sha-256 This method is available starting from PostgreSQL 10.

For the Bacularis documentation, yes, it looks to be missing there. I will
add to the doc this section about configuring the Catalog Database access
in Bacularis. Thanks for pointing it.

Best regards,
Marcin Haba (gani)

On Wed, 3 Apr 2024 at 00:50, Rob Gerber  wrote:

> I have previously set up bacula and bacularis on Rocky Linux 9. At the
> time I ran into issues giving bacularis access to bacula's postgresql
> database. I didn't know the bacula database password. At that time I set
> the postgresql pg_hba.conf file to use "trust". However I am concerned that
> this isn't a good security best practice.
>
> I am setting up a second bacula / Bacularis system and I'd like to revisit
> this postgres authentication issue so I can follow best practice better.
>
> The bacularis documentation doesn't make it clear how I am supposed to
> authenticate bacularis to bacula's database.
>
> I suspect there is a process that is obvious to many others and not to me.
>
> Does anyone here have suggestions for how I might authenticate bacularis
> to the bacula database?
>
> Robert Gerber
> 402-237-8692
> r...@craeon.net
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] New release Bacularis 2.6.0

2024-03-02 Thread Marcin Haba
Hello Everybody,

We are pleased to announce a new Bacularis version 2.6.0. This is a
new feature and bug fix release. In this version we are providing the
data views function that enables to define own views with own filters
for job, client, storage, pool and volume pages. This function
significantly helps to organize the web interface and tailor it to
your needs. We encourage to watch a video guide that explains it. Link
to the guide you can find below.

Second change in this new release is making consistent default sorting
for data selection lists. Now Bacularis uses natural case-insensitive
sorting order.

From the fixes side we fixed current bugs reported by the Community.
At the end we added some general minor improvements. More detailed
information you can find in the changelog.

We would like to thank you to everybody involved in reporting problems
with Bacularis, preparing translations, requesting ideas or helping in
any other way. Every this help is important for us. We are not capable
to do everything at once, but we are progressing.

New functions in 2.6.0:
 - Data views: https://www.youtube.com/watch?v=s4VLPIuPTKs

Useful links:
 Release announcement:
https://bacularis.app/news/74/36/New-release-Bacularis-2.6.0/d,Bacularis%20news%20details
 Documentation: https://bacularis.app/doc
 Online demo: https://demo.bacularis.app

As always binary packages 2.6.0 for popular Linux distributions are
available already in the package repositories. Docker container images
2.6.0 are available in the Docker Hub repositories.

We wish you good installations and upgrades.

On behalf of the Bacularis Team
Marcin Haba (gani)

-- 
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus


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


Re: [Bacula-users] backing up cifs-shares

2024-02-27 Thread Marcin Haba
Hello Stefan,

After adding the www-data to the bacula group you need to restart
php-fpm and web server services.

Here you can find more information about possible ways to solve this error:

https://bacularis.app/doc/brief/troubleshooting.html#permission-denied-error-when-saving-bacula-configuration

Good luck!

Best regards,
Marcin Haba (gani)

On Tue, 27 Feb 2024 at 12:20, Stefan G. Weichinger  wrote:
>
>
> It seems to have worked now ... for the first windows-client.
>
> I am in the process of removing the older release and baculum.
>
> Earlier config was in "/etc/bacula", now the path seems to be
> "/opt/bacula/etc"
>
> I moved the configs, adjusted paths ... also in the API Panel.
>
> Things are *read* ok, but now I can't edit configs -> permission errors
>
> -
>
> /opt/bacula# ls -l etc/
> insgesamt 28
> -rw-rw-r-- 1 bacula bacula 7434 27. Feb 12:11 bacula-dir.conf
> -rw-rw-r-- 1 bacula bacula  494 25. Feb 17:36 bacula-fd.conf
> -rwxrw-rw- 1 bacula bacula 1136 24. Feb 17:21 bacula-fd.conf.dist
> -rw-rw-r-- 1 bacula bacula  952 26. Feb 09:18 bacula-sd.conf
> -rw-rw-r-- 1 bacula bacula  270 25. Feb 17:36 bconsole.conf
> -rwxrw-rw- 1 bacula bacula  265 24. Feb 17:21 bconsole.conf.dist
>
> The sudo-conf:
>
> # cat /etc/sudoers.d/bacularis-api
> Defaults:www-data !requiretty
> www-data ALL = (root) NOPASSWD: /usr/bin/bconsole
>
> www-data ALL = (root) NOPASSWD: /opt/bacula/bin/bconsole
>
> www-data ALL = (root) NOPASSWD: /opt/bacula/scripts/mtx-changer
>
> www-data ALL = (root) NOPASSWD: /opt/bacula/bin/bdirjson
> www-data ALL = (root) NOPASSWD: /opt/bacula/bin/bsdjson
> www-data ALL = (root) NOPASSWD: /opt/bacula/bin/bfdjson
> www-data ALL = (root) NOPASSWD: /opt/bacula/bin/bbconsjson
>
> I added "www-data" to the group "bacula" ... (Debian 12.5 here)
>
>
> When I edit a Fileset and press "Save" ->
>
>   Error Error 1000: Internal error. [Warning]
> file_put_contents(/opt/bacula/etc/bacula-dir.conf): Failed to open
> stream: Permission denied (@line 64 in file
> /usr/share/bacularis/protected/vendor/bacularis/bacularis-common/Common/Modules/ConfigBacula.php).
>
> oh my
>
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users



-- 
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus


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


[Bacula-users] New release Bacularis 2.5.0

2024-02-18 Thread Marcin Haba
Hello Everybody,

We are pleased to announce a new Bacularis 2.5.0. This is a new
feature and bug fix release. We added capability to set read-only,
read-write and no access permissions per Bacula configuration resource
for users, hosts and host groups. It makes Bacularis granular
permission control even more powerful and attractive.

We also adapted Bacularis for a new coming Bacula 15 release that all
Bacula version 9.6, 11.x, 13.x and now 15.x users will be able to use
our Bacula web interface in their own Bacula environments. Besides
that we added a pool filter to the volume list and fixed a couple of
bugs reported by Community.

Here you can find a video guide that presents the new main function in 2.5.0:
 - [MOVIE] Bacula resource permission settings -
https://www.youtube.com/watch?v=ZuTsuGMEms8

Useful links:
 Release announcement:
https://bacularis.app/news/70/36/New-release-Bacularis-2.5.0/d,Bacularis%20news%20details
 Documentation: https://bacularis.app/doc
 Online demo: https://demo.bacularis.app

As always new binary packages for popular Linux distributions are
available already in the package repositories. Docker container images
are available in the Docker Hub repositories.

Have good installations and upgrades.

On behalf of the Bacularis Team
Marcin Haba (gani)

-- 
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus


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


Re: [Bacula-users] Bacula GUI projects

2024-02-06 Thread Marcin Haba
Hello Alexey,

Thank you for letting us know that it started working. Great to hear.

For Baculum, it is important to have disabled E_DEPRECATED and E_STRICT
errors. Rest of the error types can stay enabled and they are even
desirable to keep enabled for seeing when something is going wrong.

On Tue, 6 Feb 2024 at 16:30, Alexey Chistyakov 
wrote:

> Hello Marcin
>
> I didn’t have a php.ini file for the baculum api.
> I created a php.ini file for the api with the correct error_reporting and
> it was fixed.
> Thank you!
> But perhaps I may have new questions.
>

Yes, I encourage you to do so. We are here to help :-)

Best regards,
Marcin Haba (gani)


> пт, 2 февр. 2024 г. в 04:05, Marcin Haba :
>
>> Hello Alexey,
>>
>> Thanks for your tests and new tries.
>>
>> I think it is technically impossible that disabled E_DEPRECATED error
>> reporting in PHP config works well on the Baculum level. Theoretically It
>> could happen when error_reporting is enabled back in PHP code but this type
>> of function does not exist in Baculum nor in any Baculum dependency.
>>
>> On the screenshot that you sent in the previous message we can see that
>> these errors are displayed in the window on the main page which means it
>> happens on the remote side. So maybe you are looking at the wrong host? In
>> this case you need to disable E_DEPRECATED on the Baculum API host. The
>> current API host is displayed on the top right side of the Baculum Web
>> interface in a combobox.
>>
>> Good luck.
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Thu, 1 Feb 2024 at 12:54, Alexey Chistyakov 
>> wrote:
>>
>>> Hello!
>>>
>>> My php.ini file for Bacula is the same as for the interpreter:
>>> [image: Untitled.png]
>>>
>>> Addition, I checked the error_reporting var, this var is equal to 22527 
>>> (E_ALL
>>> & ~E_DEPRECATED & ~E_STRICT).
>>> Settings in the php.ini file work, but Baculum shows deprecated errors.
>>>
>>> чт, 1 февр. 2024 г. в 03:59, Marcin Haba :
>>>
>>>> Hello Alexey,
>>>>
>>>> Running php --ini displays php.ini file used by PHP command line
>>>> interpreter, not by PHP that executes Baculum scripts. In FreeBSD by
>>>> default PHP is used as Apache module (mod_php).
>>>>
>>>> To see what php.ini file is used with Baculum, you can put to
>>>> /usr/local/www/baculum/htdocs/index.php calling phpinfo() function and
>>>> exit() one line after starting the PHP block. Something like:
>>>>
>>>> >>> phpinfo();
>>>> exit();
>>>>
>>>> After that please load the Baculum page. You will be able to see all
>>>> PHP settings used by the PHP Apache module.
>>>>
>>>> Best regards,
>>>> Marcin Haba (gani)
>>>>
>>>> On Wed, 31 Jan 2024 at 16:29, Alexey Chistyakov
>>>>  wrote:
>>>> >
>>>> > Error_reporting option doesn't work. Same output.
>>>> > I checked my php.ini file with "php --ini" comand and saw this output:
>>>> >>
>>>> >> Configuration File (php.ini) Path: /usr/local/etc
>>>> >> Loaded Configuration File: /usr/local/etc/php.ini
>>>> >> Scan for additional .ini files in: /usr/local/etc/php
>>>> >> Additional .ini files parsed:
>>>> /usr/local/etc/php/ext-18-session.ini,
>>>> >> /usr/local/etc/php/ext-20-ctype.ini,
>>>> >> /usr/local/etc/php/ext-20-curl.ini,
>>>> >> /usr/local/etc/php/ext-20-dom.ini,
>>>> >> /usr/local/etc/php/ext-20-ldap.ini,
>>>> >> /usr/local/etc/php/ext-20-xml.ini
>>>> >
>>>> >
>>>> > After adding the "error_reporting = E_ALL & ~E_DEPRECATED &
>>>> ~E_STRICT" line to the "/usr/local/etc/php.ini " file, nothing happened.
>>>> > Apache restart command shows this output:
>>>> >>
>>>> >> [Wed Jan 31 18:16:04.065362 2024] [so:warn] [pid 2016] AH01574:
>>>> module dir_module is already loaded, skipping
>>>> >> [Wed Jan 31 18:16:04.083540 2024] [ssl:warn] [pid 2017] AH01873:
>>>> Init: Session Cache is not configured [hint: SSLSessionCache]
>>>> >> [Wed Jan 31 18:16:04.087244 2024] [mpm_prefork:notice] [pid 2017]
>>>> AH00163: Apache/2.4.58 (FreeBSD) PHP/8.1.27 OpenSSL/1.1.1t-freebsd
>>>> mod_auth_kerb/5.

Re: [Bacula-users] Autochanger and Baculum

2024-02-06 Thread Marcin Haba
Hello Stefan,

Thanks for describing to us the solution that you found for the
autochanger management problem. Yes, Baculum needs to be capable to
open this directory.

Long time ago I prepared a chapter in the Baculum documentation about
setting up autochanger with Baculum. I guess you have already read it,
but maybe it will be helpful also for other users:

https://baculum.app/doc/brief/configuration.html#autochanger-management

On Tue, 6 Feb 2024 at 18:19, Stefan G. Weichinger  wrote:
>
> I think I found the issue:
>
> the execute-permission was missing on "/etc/bacula"
>
> I can unload tapes now from baculum.
>
> testing things now
>
> I hope I haven't broken anything by editing everything ;-)

You will see, but I am almost sure that you haven't broken anything :-D

Best regards,
Marcin Haba (gani)

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



-- 
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus


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


Re: [Bacula-users] Bacula GUI projects

2024-02-01 Thread Marcin Haba
Hello Alexey,

Thanks for your tests and new tries.

I think it is technically impossible that disabled E_DEPRECATED error
reporting in PHP config works well on the Baculum level. Theoretically It
could happen when error_reporting is enabled back in PHP code but this type
of function does not exist in Baculum nor in any Baculum dependency.

On the screenshot that you sent in the previous message we can see that
these errors are displayed in the window on the main page which means it
happens on the remote side. So maybe you are looking at the wrong host? In
this case you need to disable E_DEPRECATED on the Baculum API host. The
current API host is displayed on the top right side of the Baculum Web
interface in a combobox.

Good luck.

Best regards,
Marcin Haba (gani)

On Thu, 1 Feb 2024 at 12:54, Alexey Chistyakov 
wrote:

> Hello!
>
> My php.ini file for Bacula is the same as for the interpreter:
> [image: Untitled.png]
>
> Addition, I checked the error_reporting var, this var is equal to 22527 (E_ALL
> & ~E_DEPRECATED & ~E_STRICT).
> Settings in the php.ini file work, but Baculum shows deprecated errors.
>
> чт, 1 февр. 2024 г. в 03:59, Marcin Haba :
>
>> Hello Alexey,
>>
>> Running php --ini displays php.ini file used by PHP command line
>> interpreter, not by PHP that executes Baculum scripts. In FreeBSD by
>> default PHP is used as Apache module (mod_php).
>>
>> To see what php.ini file is used with Baculum, you can put to
>> /usr/local/www/baculum/htdocs/index.php calling phpinfo() function and
>> exit() one line after starting the PHP block. Something like:
>>
>> > phpinfo();
>> exit();
>>
>> After that please load the Baculum page. You will be able to see all
>> PHP settings used by the PHP Apache module.
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Wed, 31 Jan 2024 at 16:29, Alexey Chistyakov
>>  wrote:
>> >
>> > Error_reporting option doesn't work. Same output.
>> > I checked my php.ini file with "php --ini" comand and saw this output:
>> >>
>> >> Configuration File (php.ini) Path: /usr/local/etc
>> >> Loaded Configuration File: /usr/local/etc/php.ini
>> >> Scan for additional .ini files in: /usr/local/etc/php
>> >> Additional .ini files parsed:
>> /usr/local/etc/php/ext-18-session.ini,
>> >> /usr/local/etc/php/ext-20-ctype.ini,
>> >> /usr/local/etc/php/ext-20-curl.ini,
>> >> /usr/local/etc/php/ext-20-dom.ini,
>> >> /usr/local/etc/php/ext-20-ldap.ini,
>> >> /usr/local/etc/php/ext-20-xml.ini
>> >
>> >
>> > After adding the "error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT"
>> line to the "/usr/local/etc/php.ini " file, nothing happened.
>> > Apache restart command shows this output:
>> >>
>> >> [Wed Jan 31 18:16:04.065362 2024] [so:warn] [pid 2016] AH01574: module
>> dir_module is already loaded, skipping
>> >> [Wed Jan 31 18:16:04.083540 2024] [ssl:warn] [pid 2017] AH01873: Init:
>> Session Cache is not configured [hint: SSLSessionCache]
>> >> [Wed Jan 31 18:16:04.087244 2024] [mpm_prefork:notice] [pid 2017]
>> AH00163: Apache/2.4.58 (FreeBSD) PHP/8.1.27 OpenSSL/1.1.1t-freebsd
>> mod_auth_kerb/5.4 configured -- resuming normal operations
>> >> [Wed Jan 31 18:16:04.087707 2024] [core:notice] [pid 2017] AH00094:
>> Command line: '/usr/local/sbin/httpd -D NOHTTPACCEPT'
>> >
>> >
>> > ср, 31 янв. 2024 г. в 15:59, Marcin Haba :
>> >>
>> >> Hello Alexey,
>> >>
>> >> Maybe you are looking in the wrong php.ini file. Sometimes there are
>> >> few php.ini files that are used depending on how PHP is used.
>> >>
>> >> The messages that you showed us on screenshots are E_DEPRECATED type
>> >> errors, so E_DEPRECATED works for PHP in your environment.
>> >>
>> >> For the lines from php.ini file, they are comment lines. Could you
>> >> make sure that below you don't have error_reporting = XXX defined?
>> >>
>> >> Also please note that restart the web server in environments with
>> >> PHP-FPM is not the same as restart PHP.
>> >>
>> >> I hope these tips will help in making it working. Good luck.
>> >>
>> >> Best regards,
>> >> Marcin Haba (gani)
>> >>
>> >> On Wed, 31 Jan 2024 at 13:45, Alexey Chistyakov
>> >>  wrote:
>> >> >
>> >> > Hello!
>> >> >
>> >

Re: [Bacula-users] Bacula GUI projects

2024-01-31 Thread Marcin Haba
Hello Alexey,

Running php --ini displays php.ini file used by PHP command line
interpreter, not by PHP that executes Baculum scripts. In FreeBSD by
default PHP is used as Apache module (mod_php).

To see what php.ini file is used with Baculum, you can put to
/usr/local/www/baculum/htdocs/index.php calling phpinfo() function and
exit() one line after starting the PHP block. Something like:

 wrote:
>
> Error_reporting option doesn't work. Same output.
> I checked my php.ini file with "php --ini" comand and saw this output:
>>
>> Configuration File (php.ini) Path: /usr/local/etc
>> Loaded Configuration File: /usr/local/etc/php.ini
>> Scan for additional .ini files in: /usr/local/etc/php
>> Additional .ini files parsed:  /usr/local/etc/php/ext-18-session.ini,
>> /usr/local/etc/php/ext-20-ctype.ini,
>> /usr/local/etc/php/ext-20-curl.ini,
>> /usr/local/etc/php/ext-20-dom.ini,
>> /usr/local/etc/php/ext-20-ldap.ini,
>> /usr/local/etc/php/ext-20-xml.ini
>
>
> After adding the "error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT" line 
> to the "/usr/local/etc/php.ini " file, nothing happened.
> Apache restart command shows this output:
>>
>> [Wed Jan 31 18:16:04.065362 2024] [so:warn] [pid 2016] AH01574: module 
>> dir_module is already loaded, skipping
>> [Wed Jan 31 18:16:04.083540 2024] [ssl:warn] [pid 2017] AH01873: Init: 
>> Session Cache is not configured [hint: SSLSessionCache]
>> [Wed Jan 31 18:16:04.087244 2024] [mpm_prefork:notice] [pid 2017] AH00163: 
>> Apache/2.4.58 (FreeBSD) PHP/8.1.27 OpenSSL/1.1.1t-freebsd mod_auth_kerb/5.4 
>> configured -- resuming normal operations
>> [Wed Jan 31 18:16:04.087707 2024] [core:notice] [pid 2017] AH00094: Command 
>> line: '/usr/local/sbin/httpd -D NOHTTPACCEPT'
>
>
> ср, 31 янв. 2024 г. в 15:59, Marcin Haba :
>>
>> Hello Alexey,
>>
>> Maybe you are looking in the wrong php.ini file. Sometimes there are
>> few php.ini files that are used depending on how PHP is used.
>>
>> The messages that you showed us on screenshots are E_DEPRECATED type
>> errors, so E_DEPRECATED works for PHP in your environment.
>>
>> For the lines from php.ini file, they are comment lines. Could you
>> make sure that below you don't have error_reporting = XXX defined?
>>
>> Also please note that restart the web server in environments with
>> PHP-FPM is not the same as restart PHP.
>>
>> I hope these tips will help in making it working. Good luck.
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Wed, 31 Jan 2024 at 13:45, Alexey Chistyakov
>>  wrote:
>> >
>> > Hello!
>> >
>> > I had the following options enabled by default:
>> > ; error_reporting
>> > ;   Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
>> >
>> > Enabling your options didn't change anything in the output.
>> >
>> > ср, 31 янв. 2024 г. в 04:52, Marcin Haba :
>> >>
>> >> Hello Alexey,
>> >>
>> >> It looks that you need to tune a bit the error reporting option in your 
>> >> PHP configuration. Could you please try with this settings in your 
>> >> php.ini file:
>> >>
>> >> error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
>> >>
>> >> Good luck.
>> >>
>> >> Best regards,
>> >> Marcin Haba (gani)
>> >>
>> >> On Tue, 30 Jan 2024 at 14:18, Alexey Chistyakov 
>> >>  wrote:
>> >>>
>> >>> Hello!
>> >>>
>> >>> This is screens of my error:
>> >>>
>> >>> пт, 26 янв. 2024 г. в 22:44, Marcin Haba :
>> >>>>
>> >>>> Hello Alexey,
>> >>>>
>> >>>> Yes, I confirm that Baculum supports PHP 8 (8.0, 8.1 and 8.2). You
>> >>>> wrote that after switching to PHP 8.1 Baculum stopped building
>> >>>> correctly. Could I ask you about describing what it means, what
>> >>>> commands you type and what error you see? It will help us to diagnose
>> >>>> where the problem that you experience is.
>> >>>>
>> >>>> For Bacularis, it is a more modern project than Baculum. Here you can
>> >>>> see comparison between both web interfaces:
>> >>>>
>> >>>> https://bacularis.app/news/3/36/Why-Bacularis/d,Bacularis%20news%20details
>> >>>>
>> >>>> For B

Re: [Bacula-users] Bacula GUI projects

2024-01-31 Thread Marcin Haba
Hello Alexey,

Maybe you are looking in the wrong php.ini file. Sometimes there are
few php.ini files that are used depending on how PHP is used.

The messages that you showed us on screenshots are E_DEPRECATED type
errors, so E_DEPRECATED works for PHP in your environment.

For the lines from php.ini file, they are comment lines. Could you
make sure that below you don't have error_reporting = XXX defined?

Also please note that restart the web server in environments with
PHP-FPM is not the same as restart PHP.

I hope these tips will help in making it working. Good luck.

Best regards,
Marcin Haba (gani)

On Wed, 31 Jan 2024 at 13:45, Alexey Chistyakov
 wrote:
>
> Hello!
>
> I had the following options enabled by default:
> ; error_reporting
> ;   Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
>
> Enabling your options didn't change anything in the output.
>
> ср, 31 янв. 2024 г. в 04:52, Marcin Haba :
>>
>> Hello Alexey,
>>
>> It looks that you need to tune a bit the error reporting option in your PHP 
>> configuration. Could you please try with this settings in your php.ini file:
>>
>> error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
>>
>> Good luck.
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Tue, 30 Jan 2024 at 14:18, Alexey Chistyakov  
>> wrote:
>>>
>>> Hello!
>>>
>>> This is screens of my error:
>>>
>>> пт, 26 янв. 2024 г. в 22:44, Marcin Haba :
>>>>
>>>> Hello Alexey,
>>>>
>>>> Yes, I confirm that Baculum supports PHP 8 (8.0, 8.1 and 8.2). You
>>>> wrote that after switching to PHP 8.1 Baculum stopped building
>>>> correctly. Could I ask you about describing what it means, what
>>>> commands you type and what error you see? It will help us to diagnose
>>>> where the problem that you experience is.
>>>>
>>>> For Bacularis, it is a more modern project than Baculum. Here you can
>>>> see comparison between both web interfaces:
>>>>
>>>> https://bacularis.app/news/3/36/Why-Bacularis/d,Bacularis%20news%20details
>>>>
>>>> For Bacula-Web, I always recommend this project. Davide does great
>>>> work providing this tool.
>>>>
>>>> Best regards,
>>>> Marcin Haba (gani)
>>>>
>>>> On Fri, 26 Jan 2024 at 13:33, Alexey Chistyakov
>>>>  wrote:
>>>> >
>>>> > Hello everyone!
>>>> >
>>>> > I need help with baculum.
>>>> > When I switched the php version from 80 to 81, the baculum package from 
>>>> > bacula 11.0.6 stopped building correctly. I wanted to update the baculum 
>>>> > version, but when I went to bacula sourceforge, I discovered that the 
>>>> > baculum version in makefale in all versions of the bacula-gui archive is 
>>>> > 9.6.0. But on the other hand, the patchnotes for each bacula-gui version 
>>>> > are supplemented, and at the moment the latest version indicated in the 
>>>> > patchnotes for baculum is equal to the latest version of bacula (13.0.3).
>>>> > Help me understand the baculum project is still alive, can it support 
>>>> > the latest versions of php? Or is it better to change it to analogues 
>>>> > baculum-web or bacularis?
>>>> >
>>>> >
>>>> > ___
>>>> > Bacula-users mailing list
>>>> > Bacula-users@lists.sourceforge.net
>>>> > https://lists.sourceforge.net/lists/listinfo/bacula-users
>>>>
>>>>
>>>>
>>>> --
>>>> "Greater love hath no man than this, that a man lay down his life for
>>>> his friends." Jesus Christ
>>>>
>>>> "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
>>>> za przyjaciół swoich." Jezus Chrystus
>>
>>
>>
>> --
>> "Greater love hath no man than this, that a man lay down his life for his 
>> friends." Jesus Christ
>>
>> "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za 
>> przyjaciół swoich." Jezus Chrystus



-- 
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus


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


Re: [Bacula-users] Bacula GUI projects

2024-01-30 Thread Marcin Haba
Hello Alexey,

It looks that you need to tune a bit the error reporting option in your PHP
configuration. Could you please try with this settings in your php.ini file:

error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT

Good luck.

Best regards,
Marcin Haba (gani)

On Tue, 30 Jan 2024 at 14:18, Alexey Chistyakov 
wrote:

> Hello!
>
> This is screens of my error:
>
> пт, 26 янв. 2024 г. в 22:44, Marcin Haba :
>
>> Hello Alexey,
>>
>> Yes, I confirm that Baculum supports PHP 8 (8.0, 8.1 and 8.2). You
>> wrote that after switching to PHP 8.1 Baculum stopped building
>> correctly. Could I ask you about describing what it means, what
>> commands you type and what error you see? It will help us to diagnose
>> where the problem that you experience is.
>>
>> For Bacularis, it is a more modern project than Baculum. Here you can
>> see comparison between both web interfaces:
>>
>> https://bacularis.app/news/3/36/Why-Bacularis/d,Bacularis%20news%20details
>>
>> For Bacula-Web, I always recommend this project. Davide does great
>> work providing this tool.
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Fri, 26 Jan 2024 at 13:33, Alexey Chistyakov
>>  wrote:
>> >
>> > Hello everyone!
>> >
>> > I need help with baculum.
>> > When I switched the php version from 80 to 81, the baculum package from
>> bacula 11.0.6 stopped building correctly. I wanted to update the baculum
>> version, but when I went to bacula sourceforge, I discovered that the
>> baculum version in makefale in all versions of the bacula-gui archive is
>> 9.6.0. But on the other hand, the patchnotes for each bacula-gui version
>> are supplemented, and at the moment the latest version indicated in the
>> patchnotes for baculum is equal to the latest version of bacula (13.0.3).
>> > Help me understand the baculum project is still alive, can it support
>> the latest versions of php? Or is it better to change it to analogues
>> baculum-web or bacularis?
>> >
>> >
>> > ___
>> > Bacula-users mailing list
>> > Bacula-users@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
>>
>>
>> --
>> "Greater love hath no man than this, that a man lay down his life for
>> his friends." Jesus Christ
>>
>> "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
>> za przyjaciół swoich." Jezus Chrystus
>>
>

-- 
"Greater love hath no man than this, that a man lay down his life for his
friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za
przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] newbie: errors in baculum

2024-01-26 Thread Marcin Haba
Hello Stefan,

Yes, for PostgreSQL 15 you need this patch. It should still be valid.

At the moment Bacula GitLab stopped working so I am sending the patch
in attachment. It is a one line patch.

After applying it, the TDbCommand error should not occur anymore.

Good luck.

Best regards,
Marcin Haba (gani)

On Thu, 25 Jan 2024 at 13:45, Stefan G. Weichinger  wrote:
>
> seems I hit this:
>
> https://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg72759.html
>
> Is it advised to use bacularis instead now?
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users



-- 
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
From 5ac1bbcd9c8d68b99f1a3569b7b7f7d95610f747 Mon Sep 17 00:00:00 2001
From: Marcin Haba 
Date: Mon, 3 Jul 2023 13:14:07 +0200
Subject: [PATCH] baculum: Improve support for newer PostgreSQL versions

This change is ported from Bacularis.
---
 .../prado/framework/Data/Common/Pgsql/TPgsqlMetaData.php| 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gui/baculum/protected/vendor/pradosoft/prado/framework/Data/Common/Pgsql/TPgsqlMetaData.php b/gui/baculum/protected/vendor/pradosoft/prado/framework/Data/Common/Pgsql/TPgsqlMetaData.php
index 68a8bff5f..394a05ed6 100644
--- a/gui/baculum/protected/vendor/pradosoft/prado/framework/Data/Common/Pgsql/TPgsqlMetaData.php
+++ b/gui/baculum/protected/vendor/pradosoft/prado/framework/Data/Common/Pgsql/TPgsqlMetaData.php
@@ -297,7 +297,7 @@ EOD;
 			SELECT
 	conname,
 	pg_catalog.pg_get_constraintdef(oid) AS consrc,
-	contype,
+	CAST(contype AS text),
 	conrelid AS relid,
 	NULL AS indkey,
 	FALSE AS indisclustered
-- 
2.43.0

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


Re: [Bacula-users] Bacula GUI projects

2024-01-26 Thread Marcin Haba
Hello Alexey,

Yes, I confirm that Baculum supports PHP 8 (8.0, 8.1 and 8.2). You
wrote that after switching to PHP 8.1 Baculum stopped building
correctly. Could I ask you about describing what it means, what
commands you type and what error you see? It will help us to diagnose
where the problem that you experience is.

For Bacularis, it is a more modern project than Baculum. Here you can
see comparison between both web interfaces:

https://bacularis.app/news/3/36/Why-Bacularis/d,Bacularis%20news%20details

For Bacula-Web, I always recommend this project. Davide does great
work providing this tool.

Best regards,
Marcin Haba (gani)

On Fri, 26 Jan 2024 at 13:33, Alexey Chistyakov
 wrote:
>
> Hello everyone!
>
> I need help with baculum.
> When I switched the php version from 80 to 81, the baculum package from 
> bacula 11.0.6 stopped building correctly. I wanted to update the baculum 
> version, but when I went to bacula sourceforge, I discovered that the baculum 
> version in makefale in all versions of the bacula-gui archive is 9.6.0. But 
> on the other hand, the patchnotes for each bacula-gui version are 
> supplemented, and at the moment the latest version indicated in the 
> patchnotes for baculum is equal to the latest version of bacula (13.0.3).
> Help me understand the baculum project is still alive, can it support the 
> latest versions of php? Or is it better to change it to analogues baculum-web 
> or bacularis?
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users



-- 
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus


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


Re: [Bacula-users] Some CDP plugin questions

2024-01-18 Thread Marcin Haba
Hello Myles,

As preliminary I answered on the Bacularis user list, Bacularis will
provide this type of function.

For the client side encryption, it can be a problem :-)

For the existing tools, in the Enterprise version there is single file
restore. It is something similar but for virtual machine backups.

Best regards,
Marcin Haba (gani)

On Fri, 19 Jan 2024 at 04:49, MylesDearBusiness via Bacula-users
 wrote:
>
> Hello, I have only two more questions:
>
> - Is there a CLI or graphical tool that I can use to browse available files 
> that were recently modified and journaled by CDP, and be able to drill down 
> to see the various versions cdp captured and then choose to restore ?  The 
> user documentation alludes to the recovery of past versions of files but 
> doesn't mention any tooling to assist with this.As the CDP and journal 
> and spool directory don't appear to be ever cleared, this tool could run 
> where the Bacula file daemon runs and not have to deal with recovery points.
>
> - Is there some kind of tooling to be able to browse recovery points 
> graphically (ie. drill into a list of files backed up for a particular job 
> and browse the contents of a particular file) ?  To sweeten the pot, I'm 
> strongly considering using client-side encryption, which may make it hard for 
> such tools to function.  Acronis has this functionality, but I moved away 
> from them for other reasons (lack of stability mostly).
>
> Thanks,
> 
>
> ---
>
>
> After some code reading, I think I have the answers to my previous questions, 
> which I hope help others in the community:
>
>
> - Every Plugin = "cdp: ..." line in the FileSet/Include block is interpreted 
> as a command that is sent individually by the fd daemon to the cdp plugin, 
> which responds to each command separately by looking for the indicated 
> directory (or deriving the directory from a user account) to find the spool 
> directory .cdp-sdir and the spool journal file .bcdp-cli.journal which is 
> typically in the same directory as the spool directory .cdp-sdir, and then 
> the cdp fd plugin identifies the files to add to the backup set.
>
> - From what I can tell, the spool directory contents and journal file 
> continues to grow and is neither rotated nor pruned (can you confirm this?).  
>  I suppose the advantage in this is that recent changes can be backed out 
> even if an external backup has not been done.
>
> - I converted the call to cdp-client to a systemd service call and embedded 
> the multiple -f arguments, each for different directories to monitor, 
> including user directories and systems locations such as SQL database 
> locations
>
> - I found (which should have been obvious) that if I placed the journal file 
> and spool directory inside /root then I couldn't actually monitor the /root 
> directory due to recursion !?!?  Kind of like a room with mirrors on opposite 
> walls.
>
> - Bacula-fd daemon does not launch cdp-client, I have to do that outside 
> bacula-dir, bacula-fd and bacula-sd daemons.
>
> Best,
>
> 
>
> On 2024-01-17 10:58 p.m., Myles Dear wrote:
>
> Thanks for the reply!
>
> I'm still missing a few important concepts:
>
> If I specify the 'Plugin = "cdp: user=x user=y user=x"' in my FileSet/Include 
> block in bacula-dir.conf, I would assume that bacula-fd would be the one to 
> launch cdp-client, otherwise why would I need to tell bacula director which 
> users I'm monitoring and tell bacula fd that I have cdp plugin enabled?
>
> My bacula-fd runs under user "root" so it can select files across the entire 
> server to back up, system and user files included.
>
> When I run cdp-client manually and specify multiple -f arguments, multiple 
> directories are monitored but only a single spool directory is created.  I do 
> not see evidence that spool files are created for each user directory being 
> monitored.
>
> If I do not specify the spool directory and journal file locations, they 
> default to the home directory of the user that ran the cdp-client file (in 
> this case, /root).
>
> # /opt/bacula/bin/cdp-client  -f /home/usera/ -f /home/userb/
> : cdp-client.cpp:151-0 Set spool directory to: /root/.cdp-sdir
> : cdp-client.cpp:112-0 Set journal file to: /root/.bcdp-cli.journal
> : folderwatcher.cpp:126-0 Started Watching: /home/usera
> : folderwatcher.cpp:126-0 Started Watching: /home/usera/.ssh
> : folderwatcher.cpp:126-0 Started Watching: /home/usera/.cache
> : folderwatcher.cpp:126-0 Started Watching: /home/userb
> : folderwatcher.cpp:126-0 Started Watching: /home/userb/Downloads
> ...
>
> So, is the right thing to do to duplica

Re: [Bacula-users] Baculum GUI error 5: "Invalid director"

2024-01-17 Thread Marcin Haba
Hello Timothé,

Could you try to log out and log in again to the web interface? Is it
solving this problem?

Thanks in advance for letting us know.

Best regards,
Marcin Haba (gani)

On Thu, 18 Jan 2024 at 02:39, timothe pennec  wrote:
>
> Hello everyone,
>
> I'm new in bacula and baculum, i've one server fine running since one year 
> without issue.
> The server got full disk and i've decided to remove one volume file 
> /backup/Vol1 (cause i don't care loosing data if i can force full backup soon)
>
> Now when i'm connecting to the GUI i got one popup with "Error 5 : Invalid 
> director"
>
> I can running bconsole without issue :
>
> # bconsole
> Connecting to Director 127.0.0.1:9101
> 1000 OK: 10002 bacula-dir Version: 13.0.3 (02 May 2023)
> Enter a period to cancel a command.
> *version
> bacula-dir Version: 13.0.3 (02 May 2023) 
> x86_64-pc-linux-gnu-bacula-enterprise ubuntu 22.04
>
> All bacula-dir bacula-fd and bacula-sd is currently running (systemctl status)
>
> I don't find anything about this error on internet and i get stuck now.
>
> Best regards.
> Timothé
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users



-- 
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus


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


[Bacula-users] New release Bacularis 2.4.0

2024-01-14 Thread Marcin Haba
Hello Everybody,

We are very pleased to announce the release of a new version of
Bacularis 2.4.0. This is new feature and bug fix release. We
introduced two significant changes: the API host groups and easier way
to configure Bacula resource access. We hope that these two new
functions will much improve the user and resource management in
Bacularis.

Useful links:
 Release announcement:
https://bacularis.app/news/67/36/New-release-Bacularis-2.4.0/d,Bacularis%20news%20details
 Documentation: https://bacularis.app/doc
 Online demo: https://demo.bacularis.app

Movies with main new functions in 2.4.0:

 - The API host groups: https://www.youtube.com/watch?v=8Q6ZMuqbG0E
 - Easier configuring Bacula resource access:
https://www.youtube.com/watch?v=OFaLBJ_n8a0

As always binary packages 2.4.0 for popular Linux distributions are
available already in the package repositories. Docker container images
2.4.0 are available in the Docker Hub repositories.

We wish you successful installations and upgrades.

On behalf of the Bacularis Team
Marcin Haba (gani)

-- 
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus


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


Re: [Bacula-users] About Japanese Language Support

2024-01-03 Thread Marcin Haba
Hello Kuni,

Thanks for confirming that you see this file in the "ja" directory. I
tried this container image and there is a dead symbolic link for
Japanese translation file as you can see here:

sh-4.2# ls -l /usr/share/baculum/htdocs/protected/Web/Lang/ja/
total 0
lrwxrwxrwx 1 root root 47 Aug  3  2021 messages.mo ->
/usr/share/locale/ja/LC_MESSAGES/baculum-web.mo

sh-4.2# cat /usr/share/locale/ja/LC_MESSAGES/baculum-web.mo
cat: /usr/share/locale/ja/LC_MESSAGES/baculum-web.mo: No such file or directory

The latest messages.mo file for 11.0.x is here:

https://gitlab.bacula.org/bacula-community-edition/bacula-community/-/tree/Branch-11.0/gui/baculum/protected/Web/Lang/ja?ref_type=heads

You can download it and put it there as a workaround. For a full
solution I would propose to contact that Docker image maintainers by
opening a bug report.

At the end it is worth mentioning that the Japanese translations were
not updated for a long time so they can be not complete but you will
see.

Best regards,
Marcin Haba (gani)

On Thu, 4 Jan 2024 at 03:36, 前田邦隆  wrote:
>
> Hello Marchin Haba
> Thank you for your e-mail.
>
> Yes, there is the file which is "messages.mo" in 
> "/usr/share/baculum/htdocs/protected/Web/Lang/ja"
> I built bacula with Docker.
> The container is configured as follows...
>
> CONTAINER ID   IMAGECOMMAND  
> CREATED  STATUS  PORTS   NAMES
> 850e6b8a31bb   fametec/baculum-web:11.0.5   "/usr/bin/supervisord"   8 
> days ago   Up 8 days   0.0.0.0:9095->9095/tcp, :::9095->9095/tcp   
> docker_baculum-web_1
> ea9679ab8029   fametec/bacula-client:11.0.5 "bacula-fd -f -c /op…"   8 
> days ago   Up 8 days   0.0.0.0:9102->9102/tcp, :::9102->9102/tcp   
> docker_bacula-fd_1
> b86548a04669   fametec/bacula-storage:11.0.5"bacula-sd -f -c /op…"   8 
> days ago   Up 8 days   0.0.0.0:9103->9103/tcp, :::9103->9103/tcp   
> docker_bacula-sd_1
> c222ad27ff3f   fametec/baculum-api:11.0.5   "/usr/bin/supervisord"   8 
> days ago   Up 8 days   0.0.0.0:9096->9096/tcp, :::9096->9096/tcp   
> docker_baculum-api_1
> 188e09226e7c   fametec/bacula-director:11.0.5   "bacula-dir -f -c /o…"   8 
> days ago   Up 8 days   0.0.0.0:9101->9101/tcp, :::9101->9101/tcp   
> docker_bacula-dir_1
> 9f8b0b36f5a6   fametec/bacula-catalog:11.0.5"docker-entrypoint.s…"   8 
> days ago   Up 8 days   0.0.0.0:5432->5432/tcp, :::5432->5432/tcp   docker_db_1
>
> Thank you for your help.
> Best regards.
>
> 2024年1月4日(木) 11:25 Marcin Haba :
>>
>> Hello Kuni,
>>
>> Could you please make sure that in this path you have the Japanese MO
>> language file:
>>
>> /[BACULUM_DIR]/protected/Web/Lang/ja/messages.mo
>>
>> [BACULUM_DIR] - directory where you installed Baculum
>>
>> If not, then you need to provide it to this path. Currently in this
>> place you probably have a dead link.
>>
>> Good luck.
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Thu, 4 Jan 2024 at 03:08, 前田邦隆  wrote:
>> >
>> > Dear team, Nice to meet you, I am a user from Japan. My name is Kuni.
>> > I recently installed bacula and baculum on Rocky Linux 9.3 with Docker.
>> > After installation, we finished setting up the API, set up the web, and 
>> > set the language to Japanese.
>> > However, Japanese is not displayed correctly. All displays look like 
>> > @@Dashboard@@. Please let me know how to solve this problem.
>> > Kuni.
>> > Best regards.
>> >
>> > --
>> > *-*
>> >  Kunitaka Maeda (前田邦隆)
>> >   mail :  kuni.ma...@gmail.com
>> >
>> >  Nonprofit Organization
>> >  Japan Karate Shoto Federation
>> >  NPO法人 日本空手松濤連盟
>> >  Osaka Toyono branch
>> >  大阪府本部 豊能支部
>> > https://jks-osaka-toyono.com/
>> >  Branch chief
>> >  支部長
>> > *--*
>> > ___
>> > Bacula-users mailing list
>> > Bacula-users@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
>>
>>
>> --
>> "Greater love hath no man than this, that a man lay down his life for
>> his friends." Jesus Christ
>>
>> "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
>> za p

Re: [Bacula-users] About Japanese Language Support

2024-01-03 Thread Marcin Haba
Hello Kuni,

Could you please make sure that in this path you have the Japanese MO
language file:

/[BACULUM_DIR]/protected/Web/Lang/ja/messages.mo

[BACULUM_DIR] - directory where you installed Baculum

If not, then you need to provide it to this path. Currently in this
place you probably have a dead link.

Good luck.

Best regards,
Marcin Haba (gani)

On Thu, 4 Jan 2024 at 03:08, 前田邦隆  wrote:
>
> Dear team, Nice to meet you, I am a user from Japan. My name is Kuni.
> I recently installed bacula and baculum on Rocky Linux 9.3 with Docker.
> After installation, we finished setting up the API, set up the web, and set 
> the language to Japanese.
> However, Japanese is not displayed correctly. All displays look like 
> @@Dashboard@@. Please let me know how to solve this problem.
> Kuni.
> Best regards.
>
> --
> *-*
>  Kunitaka Maeda (前田邦隆)
>   mail :  kuni.ma...@gmail.com
>
>  Nonprofit Organization
>  Japan Karate Shoto Federation
>  NPO法人 日本空手松濤連盟
>  Osaka Toyono branch
>  大阪府本部 豊能支部
> https://jks-osaka-toyono.com/
>  Branch chief
>  支部長
> *--*
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users



-- 
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus


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


Re: [Bacula-users] jobs intermittently stuck "Dir inserting Attributes" with long running query

2023-12-22 Thread Marcin Haba
Hello Everybody,

Bacularis does not use the .bvfs_get_bootstrap bconsole command.

I also looked at this query. It seems to me that besides
.bvfs_get_bootstrap it is executed also after running some options
from the bconsole 'restore' command.

Tom, when your jobs are slowing down, is there any restore preparation
at this time?

Best regards,
Marcin Haba (gani)

On Fri, 22 Dec 2023 at 18:07, Tom Hodder via Bacula-users
 wrote:
>
> Thanks for the quick response!!
>
> On Fri, 22 Dec 2023 at 12:15, Martin Simmons  wrote:
> >
> > This query looks like something related to restores or the 
> > .bvfs_get_bootstrap
> bconsole command, not the backups.
>
> Ah ok.
>
> > Were you running some front end or GUI that was querying about jobids 103 
> > and
> > 419?
>
> I have bacula-web and bacularis installed. I will do some more
> debugging and see whether anything is locking or the db from their
> side.
>
> Many thanks!
>
>
>
>
>
>
>
>
>
> >
> > __Martin
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users



-- 
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus


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


[Bacula-users] New release Bacularis 2.2.0

2023-12-17 Thread Marcin Haba
Hello Everybody,

We are pleased to announce a new minor Bacularis version. It is a new
feature and bug fix release. We added a couple of new functions
specially to the volume list and the job pages. These new features
make navigating and using Bacularis easier. Full list of changes you
can find in the release announcement.

Useful links:
 Release announcement:
https://bacularis.app/news/62/36/New-release-Bacularis-2.2.0/d,Bacularis%20news%20details
 Documentation: https://bacularis.app/doc
 Online demo: https://demo.bacularis.app

Binary packages 2.2.0 for popular Linux distributions are available
already in the package repositories. Docker container images 2.2.0 are
available in the Docker Hub repositories.

We wish you good installations and upgrades.

On behalf of the Bacularis Team
Marcin Haba (gani)

-- 
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus


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


Re: [Bacula-users] Q: Bacula 11 and Baculum 11 - which Postgres versions do work?

2023-12-08 Thread Marcin Haba
Hello Justin

It looks that you need a fix that enables support for PostgreSQL 15
and higher. I ported it a few months ago from Bacularis but
unfortunately the Baculum 11 does not have it included. But don't
worry, it is a simple patch that you can apply yourself. You can find
it here:

https://gitlab.bacula.org/bacula-community-edition/bacula-community/-/commit/e1389d3caf89875c0009930237ba59a1133f6cd6

Please let us know if it helped.

Good luck.

For the question about PostgreSQL 16 support, Baculum (and Bacularis)
should support PostgreSQL up till the latest stable PostgreSQL
release. If something does not work, please let us know and we will
fix it.

Thanks.

Best regards,
Marcin Haba (gani)

On Fri, 8 Dec 2023 at 15:30, Justin Case  wrote:
>
> Hey there,
>
> I am currently using Baculum 11 on Bacula 11 with Postgres 13. Today I made a 
> dump of the db and tried to move to Postgres 16.
>
> Baculum does not seem to work with the imported database out of the box and 
> throws:
>
> UNION types "char" and text cannot be matched at character
>
> Any ideas why this is?
>
> Is PG16 not supported for Bacula/Baculum?
>
> Which PG version should be used?
>
> Best
> J/C
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users



-- 
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus


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


Re: [Bacula-users] Restoring Incremental Promotes to Full

2023-10-27 Thread Marcin Haba
Hello Everybody,

Yes, I am coming. Thanks for calling me here :-)

Baculum / Bacularis always use full as a base + incremental or
differential backups.

In the restore wizard close to the radio button with the "Selected
backup" restore method there is green help icon where is described the
way how this method works:

"Note: if you select incremental or differential backup, on the next
step will be also loaded all directories and files from older backups
required to do the job restore. In other words, the selected backup
determines time point from which will be loaded the selected backup
and other older backups (incremental, differential) backups up till
closest full backup."

If you don't use the restore from copy jobs function, Baculum will put
your selected jobid to the following bconsole command:

.bvfs_get_jobids jobid=XXXJOBIDXXX

that determines all single backup jobids needed to do a consistent data restore.

If you want to restore using copy jobs function Baculum will use own
algorithm to determine jobids because of an old bug in
.bvfs_get_jobids command described here:

https://gitlab.bacula.org/bacula-community-edition/bacula-community/-/issues/2500

Best regards,
Marcin Haba (gani)

On Sat, 28 Oct 2023 at 01:26, Bill Arlofski via Bacula-users
 wrote:
>
> On 10/27/23 16:17, Chris Wilkinson wrote:
> > Having looked at the job log from a Baculum restore I can see that it is 
> > going back to the last full and restoring full,
> > diffs, incrs in order.
> >
> > Is it not possible to restore from a particular job alone in Baculum as is 
> > possible with bconsole?
>
> Knowing Bacula, and knowing Marcin, I am sure there must be a way.
>
> Let's wait for Marcin to chime in. :)
>
>
> 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



-- 
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus


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


Re: [Bacula-users] Error 1000: Internal error when trying to update configuration via Baculum

2023-10-17 Thread Marcin Haba
Hello Vaughan,

Could you show us output from the following command?

# ls -la /opt/bacula/etc

Thanks in advance.

Best regards,
Marcin Haba (gani)

On Wed, 18 Oct 2023 at 04:54, Vaughan Wickham  wrote:
>
> Hello Marcin,
>
> I've since been able to confirm the lighttpd user by reviewing:
> /etc/lighttpd/lighttpd.conf
>
> The server username is: www-data
> Server groupname is: www-data
>
> On that basis, I would have thought that the permissions ought to have 
> already been correctly set.
>
> And in any event, this command should have been appropriate:
> usermod -a -G bacula www-data
>
> Regards,
> Vaughan
>
> -Original Message-
> From: Vaughan Wickham
> Sent: Wednesday, October 18, 2023 1:07 PM
> To: 'Marcin Haba' 
> Cc: bacula-users@lists.sourceforge.net
> Subject: RE: [Bacula-users] Error 1000: Internal error when trying to update 
> configuration via Baculum
>
> Hello Marcin,
>
> Appreciate your reply.
>
> I have tried the following, without success.
>
> The documentation provides the following example (hint 1) usermod -a -G 
> bacula apache
>
> This is for apache web server.
>
> I am using lighttpd.
>
> So, I tried instead:
> usermod -a -G bacula www-data
>
> After restarting the services:
> php7.4-fpm
> baculum-web-lighttpd
>
> There is no change in behaviour.
>
> I then tried adding the conf files to the /etc/sudoers.d/baculum And 
> restarting the services.
>
> This also made no difference to Baculum web being able to update the conf 
> files.
>
> I'm thinking that lighttpd is not running under user/group: www-data
>
> But I've not been able to submit the right search argument to identify how I 
> can identify what user/group lighttpd is using.
>
> Can you help?
>
> Regards,
> Vaughan
>
> -Original Message-
> From: Marcin Haba 
> Sent: Wednesday, October 18, 2023 12:12 PM
> To: Vaughan Wickham 
> Cc: bacula-users@lists.sourceforge.net
> Subject: Re: [Bacula-users] Error 1000: Internal error when trying to update 
> configuration via Baculum
>
> Hello Vaughan,
>
> Baculum does not set file permissions automatically. It needs to be done 
> manually. I know that you use Baculum but to solve it you can use Bacularis 
> documentation where this case is described:
>
> https://bacularis.app/doc/brief/troubleshooting.html#permission-denied-error-when-saving-bacula-configuration
>
> Good luck!
>
> Best regards,
> Marcin Haba (gani)
>
> On Wed, 18 Oct 2023 at 02:12, Vaughan Wickham  wrote:
> >
> > Hello,
> >
> >
> >
> > I have tried to update the VolumeRetention period in Pools and encountered 
> > the following error when trying to save the change.
> >
> >
> >
> > Error 1000: Internal error. Warning file_put_contents
> > (/opt/bacula/etc/bacula-dir.conf) failed to open stream: Permission
> > denied
> >
> >
> >
> > It is clear that baculum doesn’t have write access to update the conf file.
> >
> >
> >
> > I had to provide the file path during the setup:
> > /opt/bacula/etc/bacula-dir.conf
> >
> >
> >
> > So, I am sure that the path is correctly configured and I am guessing that 
> > this is a permissions issue.
> >
> >
> >
> > Do I need to add all the conf files into the sudoers file?:
> > /etc/sudoers.d/baculum
> >
> >
> >
> > Regards,
> >
> > Vaughan
> >
> > ___
> > Bacula-users mailing list
> > Bacula-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/bacula-users
>
>
>
> --
> "Greater love hath no man than this, that a man lay down his life for his 
> friends." Jesus Christ
>
> "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za 
> przyjaciół swoich." Jezus Chrystus



-- 
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus


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


Re: [Bacula-users] Error 1000: Internal error when trying to update configuration via Baculum

2023-10-17 Thread Marcin Haba
Hello Vaughan,

Baculum does not set file permissions automatically. It needs to be
done manually. I know that you use Baculum but to solve it you can use
Bacularis documentation where this case is described:

https://bacularis.app/doc/brief/troubleshooting.html#permission-denied-error-when-saving-bacula-configuration

Good luck!

Best regards,
Marcin Haba (gani)

On Wed, 18 Oct 2023 at 02:12, Vaughan Wickham  wrote:
>
> Hello,
>
>
>
> I have tried to update the VolumeRetention period in Pools and encountered 
> the following error when trying to save the change.
>
>
>
> Error 1000: Internal error. Warning file_put_contents 
> (/opt/bacula/etc/bacula-dir.conf) failed to open stream: Permission denied
>
>
>
> It is clear that baculum doesn’t have write access to update the conf file.
>
>
>
> I had to provide the file path during the setup: 
> /opt/bacula/etc/bacula-dir.conf
>
>
>
> So, I am sure that the path is correctly configured and I am guessing that 
> this is a permissions issue.
>
>
>
> Do I need to add all the conf files into the sudoers file?: 
> /etc/sudoers.d/baculum
>
>
>
> Regards,
>
> Vaughan
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users



-- 
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus


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


Re: [Bacula-users] Running Baculum Web - 1st time

2023-10-16 Thread Marcin Haba
Hello Vaughan,

OK, so you finished the Baculum API wizard.

Did you go through the steps for Baculum Web described here?

https://baculum.app/doc/brief/installation.html#baculum-web

Best regards,
Marcin Haba (gani)

On Tue, 17 Oct 2023 at 05:31, Vaughan Wickham  wrote:
>
> Hello,
>
>
>
> I now have completed running Baculum API for the 1st time.
>
>
>
> I think the next step is to run Bacula Web for the 1st time.
>
>
>
> However, when I try:
>
>
>
> http://localhost:9095
>
>
>
> I get unable to connect.
>
>
>
> Not sure what troubleshooting steps to try for this?
>
>
>
> Regards,
>
> Vaughan
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users



-- 
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus


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


Re: [Bacula-users] Configuring Baculum - Error Provided directory

2023-10-16 Thread Marcin Haba
Hello Vaughan,

Could you try to type in the working directory field this path:

/etc/baculum/Config-api-lighttpd

instead of this one:

/etc/baculum/Config-api-cache

If it will not work, then could I ask you about showing us result from
this command:

# ls -la /etc/baculum/Config-api-lighttpd

Thanks in advance for trying.

Best regards,
Marcin Haba (gani)

On Tue, 17 Oct 2023 at 01:34, Vaughan Wickham  wrote:
>
> Hello,
>
>
>
> I decided to try switching from using Apache as the web server and use 
> Lighttpd instead.
>
>
>
> I removed all the modules that I installed as part of the Apache installation.
>
>
>
> Restarted the system.
>
>
>
> Then installed Lighttpd.
>
>
>
> I didn’t see any errors during the removal or installation steps.
>
>
>
> These are the commands that I used to perform the Lighttpd install:
>
>
>
> sudo apt-get install baculum-common baculum-api baculum-api-lighttpd
>
>
>
> sudo systemctl start baculum-api-lighttpd
>
>
>
>
>
> Unfortunately, when I do the first time run of Baculum API, I get the same 
> error message as I did with Apache:
>
>
>
> Baculum working directory for Bacula
>
> Config:   /etc/baculum/Config-api-cache
>
>
>
> Error Provided directory path is not writable by web server.
>
>
>
> According to the docs, the following log should have diagnostic information:
>
> /var/log/lighttpd/baculum-api-error.log
>
>
>
> 2023-10-17 10:10:43: server.c.1513) server started (lighttpd/1.4.59)
>
> 2023-10-17 10:10:43: configfile.c.1142) WARNING: unknown config-key: 
> compress.filetype (ignored)
>
>
>
> Wondering what to try next?
>
>
>
> Regards,
>
> Vaughan
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users



-- 
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus


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


Re: [Bacula-users] Configuring Baculum - Error Provided directory path is not writable by web server

2023-10-15 Thread Marcin Haba
Hello Vaughan,

To the suggestions provided by Rob I am also adding two words about
permissions. For this directory that you used for the Baculum working
dir:

/etc/baculum/Config-api-cache

you need to create this directory (if it does not exist) and set
ownership and permissions that enable to write to this directory by
PHP user or group that by default in case Debian are
www-data:www-data.

If you don't want to have additional directory for that, please just
put in this Baculum working dir field this path:

/etc/baculum/Config-api-apache

It will start work automatically without changing anything on the filesystem.

Good luck!

Best regards,
Marcin Haba (gani)

On Sun, 15 Oct 2023 at 08:13, Rob Gerber  wrote:
>
> Dangit, I didn't add the link I said I would. Sorry. Bacula project repo 
> access link:
> https://www.bacula.org/bacula-binary-package-download/
>
> Baculum setup info, including more detail on the sudoers.d file I mentioned.
> https://baculum.app/doc/brief/configuration.html
>
> Consider trying lighthttpd instead of apache2 if you can't get it figured 
> out. Instructions for that also in there.
>
> Robert Gerber
> 402-237-8692
> r...@craeon.net
>
> On Sun, Oct 15, 2023, 12:30 AM Rob Gerber  wrote:
>>
>> Thoughts, with most important probably being middle and end thought:
>>
>> 1. Can set permissions using ACL with getfacl and setfacl. Google and see 
>> man pages. However, this is probably not the best solution since...
>> 2. You might need to add an exemption to a sudoers allow list file. Odds are 
>> there should be a baculum file in the relevant directory (I think 
>> /etc/sudoers?) with paths pointing to various places baculum is supposed to 
>> be able to access.
>> 2.1 Are you installing bacula from the Debian repositories? This method uses 
>> non-standard (for bacula conventions) file locations sometimes. Also, code 
>> might not be the latest. The baculum API setup should prompt you to add 
>> entries to the sudoers file, but keep in mind that if the files requested 
>> are actually somewhere else you'll have to give the correct locations. Also, 
>> the file must end with a newline.
>> 3. If installing from the Debian repositories, consider switching to the 
>> baacula community project repos instead. To do that, go the link below 
>> ("download > Deb, RPM, OSX packages" on the bacula community site), enter 
>> your name and email into the contact info section at the bottom of the page, 
>> and click submit. The main caveat is that it may inform you that a relevant 
>> download link will be emailed to you. This is not correct. It is present on 
>> the page that loads directly after you submit your information, in a link in 
>> the middle of the page, labeled is "here". Not super easy to find, needs 
>> improvement imo. Heads up, the instructions to add the custom bacula repos 
>> hosted by the project currently advise user to use apt-key which is 
>> deprecated. Idk what the preferred solution is in this case, but you've been 
>> warned there.
>>
>> I figure items 2 / 2.1 are probably what you need. Also, consider looking 
>> into bacularis! It's a more actively maintained friendly fork for baculum. 
>> The developer is on this list, and I've seen him commit patches very rapidly 
>> for issues people report. I'm super grateful for his hard work and I think 
>> his efforts to make bacula more accessible are very important.
>>
>> Robert Gerber
>> 402-237-8692
>> r...@craeon.net
>>
>> On Sat, Oct 14, 2023, 11:18 PM Vaughan Wickham  wrote:
>>>
>>> Hello
>>>
>>>
>>>
>>> I’m in the middle of first time run of Baculum on Debian 11 with Bacula 
>>> Director >= 11.0
>>>
>>>
>>>
>>> I’m up to step 4, the Bacula configuration interface.
>>>
>>>
>>>
>>> When I perform the test, after updating all the paths, I am seeing an error 
>>> on access to the Baculum working directory for Bacula config.
>>>
>>>
>>>
>>> Error: Provided directory path is not writable by web server.
>>>
>>>
>>>
>>> The web server that I’m using is apache2.
>>>
>>>
>>>
>>> I’m guessing that I need to configure apache2 to have write access to:
>>>
>>>
>>>
>>> /etc/baculum/Config-api-cache
>>>
>>>
>>>
>>> But I’ve not setup apache previously and having looked on Google, it’s not 
>>> clear to me what the steps are to grant apache2 write access to:
>>

Re: [Bacula-users] Remote client connection refused

2023-09-19 Thread Marcin Haba
Hello Chris,

You need to remove the FDAddress directive (in bacula-fd.conf in
FileDaemon resource) to set FD listening on all interfaces or you can
set the FDAddress directive to the desired network interface address.
After this change you need to restart the file daemon.

More information you can find here:

https://www.bacula.org/13.0.x-manuals/en/main/Client_File_daemon_Configur.html#16447

Good luck.

Best regards,
Marcin Haba (gani)

On Tue, 19 Sept 2023 at 11:33, Chris Wilkinson  wrote:
>
> I have set up a new remote client running FD only on Debian 12. The client is 
> on the same LAN as the DIR/SD.
>
> I get a connection refused error from the job.
>
> The FD is running but is listening on 127.0.1.1 port 9102 which is probably 
> why the connection is refused.
>
> Client bacula-fd -t returns no errors.
>
> I suppose the FD needs to listen on any address but I can't see how to do 
> that.
>
> Is there a bacula-fd.conf setting for this?
>
> Thanks
> Chris Wilkinson
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users



-- 
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus


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


Re: [Bacula-users] Progressive Virtual Fulls...

2023-09-15 Thread Marcin Haba
Hello Marco,

Bacularis provides the virtual full backup wizard that supports
configuring both virtual full and progressive virtual full. Here you
can find quick video guides about it:

Virtual full: https://www.youtube.com/watch?v=xLN9zmcEhD0
Progressive virtual full: https://www.youtube.com/watch?v=NrZ-PHhNphI

Best regards,
Marcin Haba (gani)

On Fri, 15 Sept 2023 at 18:14, Marco Gaiarin  wrote:
>
>
> I need to setup some backups for some Windows machine, that generate a
> decent amount of data (100GB currently) but slowly increasing.
>
> I don't need to manage tapes or changers, it suffices to have a copy of data
> with a good retention elsewhere, in a safe place.
>
>
> Normally for this task i use FileStorage, using some weekly volumes, doing a
> full at week start and following with incremental; to have a decent
> retention, i setup 3-5 volume, for a 3-5 weeks retention.
>
>
> But in this case data is too much for a full (in storage and bandwidth
> perspective) and so i've hit:
>
> https://www.bacula.org/whitepapers/PVF.pdf
>
>
> I've read and read the docs, done some experiment, but lead to nothing.
> Particulary, i've really not understood how to setup jobs, retention, ...
>
>
> Someone have some examples to share? Thanks.
>
> --
>   Software is like sex: it's better when it's free.
> (Linus Torvalds)
>
>
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users



-- 
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus


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


Re: [Bacula-users] Baculum with postgresql-15 SQLSTATE[42804]: Datatype mismatch

2023-08-02 Thread Marcin Haba
Hi Lorraine,

That's great news. Thanks for letting us know that it started working on
the new vm.

Best regards,
Marcin Haba (gani)

On Thu, 3 Aug 2023 at 07:43, Lorraine 
wrote:

> Hi Marcin, I have ended up blowing away the vm and starting over.  This
> has allowed me to progress with the Install Wizard and I am  no longer
> getting the errors.
>
> Thanks again for all your help.  Not sure where I went wrong but just glad
> that I am able to move past this issue.
>
> Regards
> Lorraine
>
>
> On 3 Aug 2023, at 3:03 pm, Lorraine 
> wrote:
>
> Hi Marcin,  please see below output:
>
> [root@nbipbac12 httpd]# sudo -u apache sudo -l
> Matching Defaults entries for apache on nbipbac12:
> !visiblepw, always_set_home, match_group_by_gid,
> always_query_group_plugin, env_reset, env_keep="COLORS DISPLAY HOSTNAME
> HISTSIZE KDEDIR LS_COLORS", env_keep+="MAIL PS1
> PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE", env_keep+="LC_COLLATE
> LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES", env_keep+="LC_MONETARY
> LC_NAME LC_NUMERIC LC_PAPER
> LC_TELEPHONE", env_keep+="LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET
> XAUTHORITY", secure_path=/sbin\:/bin\:/usr/sbin\:/usr/bin, !requiretty
>
> User apache may run the following commands on nbipbac12:
> (root) NOPASSWD: /opt/bacula/bin/bconsole
> (ALL) NOPASSWD: ALL
>
> Also I tried the following without issue:
>
> [root@nbipbac12 httpd]# sudo -u apache sudo /opt/bacula/bin/bconsole
> Connecting to Director nbipbac02.local.netbi.net.au:9101
> 1000 OK: 10002 nbipbac02-dir Version: 13.0.3 (02 May 2023)
> Enter a period to cancel a command.
> *
>
> Regards
> Lorraine
>
>
> On 3 Aug 2023, at 2:01 pm, Marcin Haba  wrote:
>
> sudo -u apache sudo /opt/bacula/bin/bconsole
>
>
> Burgess Systems Consulting
> e: lorra...@burgess-consulting.com.au
> w: http://www.burgess-consulting.com.au
> m: +64-21-988-950
> ddi: +61 2 8077 4296
> Suite 802, 210 Clarence St, Sydney 2000, NSW
>
>
> 
>
>
> Burgess Systems Consulting
> e: lorra...@burgess-consulting.com.au
> w: http://www.burgess-consulting.com.au
> m: +64-21-988-950
> ddi: +61 2 8077 4296
> Suite 802, 210 Clarence St, Sydney 2000, NSW
>
>
>
>

-- 
"Greater love hath no man than this, that a man lay down his life for his
friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za
przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum with postgresql-15 SQLSTATE[42804]: Datatype mismatch

2023-08-02 Thread Marcin Haba
Hello Lorraine,

It is interesting. Thanks for your feedback. Internally to connect to
bconsole Bacularis does the same as this shell command does (adapted to
your problem):

# sudo -u apache sudo /opt/bacula/bin/bconsole

The 'sudo -u apache' switches user to 'apache' user to be the same user as
PHP user. Once we are the 'apache' user then the regular sudo command is
executed 'sudo /opt/bacula/bin/bconsole'.

If the above command will work, then Bacularis will work the same
automatically.

Could you show us the output from this command?

# sudo -u apache sudo -l

It will list allowed commands for the apache user. Thanks.

Good luck.

Best regards,
Marcin Haba (gani)

On Thu, 3 Aug 2023 at 01:47, Lorraine 
wrote:

> Morning Marcin, Thank you for the update.
> I tried the alternate sudo entry but still had no luck.  I also set
> "SELINUX=disabled”  in /etc/selinux/config but nothing seems to get past
> this error.
> I will continue to troubleshoot and let you know if I find anything.
>
> Regards
> Lorraine
>
> On 3 Aug 2023, at 7:59 am, Marcin Haba  wrote:
>
> Hello Lorraine,
>
> In your Bacularis sudoers file you use switching from apache user to
> bacula user. It is correct but unfortunately Bacularis does not support it.
> To work with this setting Bacularis needs to know about bacula user and use
> internally "sudo -u bacula" sudo parameter to let know sudo about target
> user.
>
> If you want you can omit the bacula user in sudo and then will be used the
> default target user which is root.
>
> Defaults:apache !requiretty
> apache ALL = NOPASSWD: /opt/bacula/bin/bconsole
>
> In the future we will add support for -u sudo parameter.
>
> Best regards,
> Marcin Haba (gani)
>
> On Wed, 2 Aug 2023 at 08:43, Lorraine 
> wrote:
>
>> Hi, Yes I installed the following:
>>
>> [root@nbipbac12 bin]# yum list installed | grep bacularis-selinux
>> bacularis-selinux.noarch   2.1.2-1.el8
>>   @bacularis-app
>>
>> Regards
>> Lorraine
>>
>>
>>
>>
>> On 2 Aug 2023, at 6:16 pm, Marcin Haba  wrote:
>>
>> SELinux
>>
>>
>> Burgess Systems Consulting
>> e: lorra...@burgess-consulting.com.au
>> w: http://www.burgess-consulting.com.au
>> m: +64-21-988-950
>> ddi: +61 2 8077 4296
>> Suite 802, 210 Clarence St, Sydney 2000, NSW
>>
>>
>> 
>>
>>
>
> --
> "Greater love hath no man than this, that a man lay down his life for his
> friends." Jesus Christ
>
> "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za
> przyjaciół swoich." Jezus Chrystus
>
>
> Burgess Systems Consulting
> e: lorra...@burgess-consulting.com.au
> w: http://www.burgess-consulting.com.au
> m: +64-21-988-950
> ddi: +61 2 8077 4296
> Suite 802, 210 Clarence St, Sydney 2000, NSW
>
>
>
>

-- 
"Greater love hath no man than this, that a man lay down his life for his
friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za
przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum with postgresql-15 SQLSTATE[42804]: Datatype mismatch

2023-08-02 Thread Marcin Haba
Hello Lorraine,

In your Bacularis sudoers file you use switching from apache user to bacula
user. It is correct but unfortunately Bacularis does not support it. To
work with this setting Bacularis needs to know about bacula user and use
internally "sudo -u bacula" sudo parameter to let know sudo about target
user.

If you want you can omit the bacula user in sudo and then will be used the
default target user which is root.

Defaults:apache !requiretty
apache ALL = NOPASSWD: /opt/bacula/bin/bconsole

In the future we will add support for -u sudo parameter.

Best regards,
Marcin Haba (gani)

On Wed, 2 Aug 2023 at 08:43, Lorraine 
wrote:

> Hi, Yes I installed the following:
>
> [root@nbipbac12 bin]# yum list installed | grep bacularis-selinux
> bacularis-selinux.noarch   2.1.2-1.el8
> @bacularis-app
>
> Regards
> Lorraine
>
>
>
>
> On 2 Aug 2023, at 6:16 pm, Marcin Haba  wrote:
>
> SELinux
>
>
> Burgess Systems Consulting
> e: lorra...@burgess-consulting.com.au
> w: http://www.burgess-consulting.com.au
> m: +64-21-988-950
> ddi: +61 2 8077 4296
> Suite 802, 210 Clarence St, Sydney 2000, NSW
>
>
>
>

-- 
"Greater love hath no man than this, that a man lay down his life for his
friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za
przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum with postgresql-15 SQLSTATE[42804]: Datatype mismatch

2023-08-01 Thread Marcin Haba
Hello Lorraine,

Thanks for the details about your installation.

This error is a permission problem. Please make sure that you installed the
bacularis-selinux package if you have SELinux enabled in your system. Did
you install it?

Best regards,
Marcin Haba (gani)

On Wed, 2 Aug 2023 at 08:07, Lorraine 
wrote:

> Hi Marcin, Thanks for the explanation.
>
> Our current bacula configuration consists of the Director & Storage Deamon
> reside on a Linux 7.9 VM so unfortunately this rules out doing a simple
> setup of the Bacularis Web Interface/API install onto the same host.  I
> have created a new Linux 8.8 specifically for the Bacularis Web
> Interface/API.  I performed the install steps for Bacularis & I also
> installed Bacula-client for access to bconsole .
>
> It is the Bacularis Install Wizard where I am having issues.  I can make a
> connection to the Bacula Catalog Database ok, however, when it comes to
> connecting to bconsole I am experiencing sudo issues with the following
> error:
>
> "Problem with connection to bconsole. Output=>sudo: unable to open
> /run/sudo/ts/apache: Permission denied We trust you have received the usual
> lecture from the local System Administrator. It usually boils down to these
> three things: #1) Respect the privacy of others. #2) Think before you type.
> #3) With great power comes great responsibility. sudo: a terminal is
> required to read the password; either use the -S option to read from
> standard input or configure an askpass helper, Exitcode=>1”
>
> Any advice would be appreciated.
>
> Regards
> Lorraine
>
> On 2 Aug 2023, at 4:49 pm, Marcin Haba  wrote:
>
> Hello Lorraine,
>
> We don't provide rpm packages for CentOS 7 because in the system repos it
> does not have PHP >= 7.4. There is an old PHP 5.4. If you will be able to
> install on CentOS 7 host PHP >= 7.4 or greater (for example from REMI
> repository) then you can install Bacularis by Composer and it will work.
>
> For your question about installation, it depends on how you want to work
> with remote Bacula hosts. Typical installation is with one Bacularis web
> interface and many Bacularis API hosts. The web interface manages all the
> API hosts. Each API host can be configured with the following capabilities:
>
> 1) catalog connection
> 2) bconsole connection
> 3) Bacula configuration settings
> 4) Actions (Bacula components start/stop/restart)
> 5) Bacula software management (install/upgrade/remove)
>
> For hosts with Bacula clients and storage daemons useful is to have
> installed the API instance with 3) and 4) (and also 5)) but it is not
> mandatory if you are not going to change file daemon configuration via web.
> For hosts with Directors 1) and 2), 3), 4) and/or 5) can be set. All the
> API capabilities are independent and depends on what you would like to
> share on each API host, for example a host with 2) (bconsole access) and 4)
> (Actions).
>
> For new Bacularis installations you can start simple - with the web
> interface and API instance on the Director host. There is not need to
> install Bacularis on every Bacula FD and SD host until you want to work
> with its configuration on the web interface. The FDs and SDs will be
> available for administrative work on the interface anyway.
>
> The Bacularis API and Bacula component deployment on the remote hosts can
> be done via the web interface or manually. Here you can find example video
> guide with deploying Bacularis and Bacula client on a new host:
>
> https://www.youtube.com/watch?v=wsayzd7CsuU
>
> Good luck. In case questions or problems, please let us know.
>
> Best regards,
> Marcin Haba (gani)
>
> On Wed, 2 Aug 2023 at 05:01, Lorraine 
> wrote:
>
>> Hello Marcin,
>>
>> Thank you for your help.  Looks like bacularis needs to be installed
>> alongside bacula ( on the same machine ) is this assumption correct?  Also,
>> do you know if there is a bacularis release for linux 7.9?
>>
>> Regards
>> Lorraine
>>
>> On 1 Aug 2023, at 4:49 pm, Marcin Haba  wrote:
>>
>> Hello Lorraine,
>>
>> Great. For troubleshooting usually it is good to visit the Bacularis
>> documentation and the "Troubleshooting" chapter here:
>>
>> https://bacularis.app/doc/brief/troubleshooting.html
>>
>> Good luck.
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Tue, 1 Aug 2023 at 06:37, Lorraine 
>> wrote:
>>
>>> Thank you Marcin
>>>
>>> I am currently troubleshooting install of Bacularis so hopefully I can
>>> use this tool instead
>>>
>>> Regards
>>> Lorraine
>>>
>>> On 

Re: [Bacula-users] Update the bacula-dir.conf file

2023-08-01 Thread Marcin Haba
Hello Rocky,

You need to add these 10 clients to Bacula Director configuration (the
Client {} resource). After that you need to create new jobs for new
clients with specific schedule settings and others. I don't know if
there is a best way of doing it. 10 clients is not a big number so
maybe you can try to add them manually or by a web interface if you
are planning to work with it via the web.

Good luck.

Best regards,
Marcin Haba (gani)

On Tue, 1 Aug 2023 at 11:14, rocky  wrote:
>
> Hi Team,
>
> We have deployed the bacula master successfully and now, we have almost 
> installed 10 bacula clients.
> Can anyone suggest the best way to add these 10 clients in the bacula master 
> bacula-dir.conf file and each job of all servers should execute at different 
> intervals?
>
> Thanks
> Rocky
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users



-- 
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus


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


Re: [Bacula-users] Baculum with postgresql-15 SQLSTATE[42804]: Datatype mismatch

2023-08-01 Thread Marcin Haba
Hello Lorraine,

We don't provide rpm packages for CentOS 7 because in the system repos it
does not have PHP >= 7.4. There is an old PHP 5.4. If you will be able to
install on CentOS 7 host PHP >= 7.4 or greater (for example from REMI
repository) then you can install Bacularis by Composer and it will work.

For your question about installation, it depends on how you want to work
with remote Bacula hosts. Typical installation is with one Bacularis web
interface and many Bacularis API hosts. The web interface manages all the
API hosts. Each API host can be configured with the following capabilities:

1) catalog connection
2) bconsole connection
3) Bacula configuration settings
4) Actions (Bacula components start/stop/restart)
5) Bacula software management (install/upgrade/remove)

For hosts with Bacula clients and storage daemons useful is to have
installed the API instance with 3) and 4) (and also 5)) but it is not
mandatory if you are not going to change file daemon configuration via web.
For hosts with Directors 1) and 2), 3), 4) and/or 5) can be set. All the
API capabilities are independent and depends on what you would like to
share on each API host, for example a host with 2) (bconsole access) and 4)
(Actions).

For new Bacularis installations you can start simple - with the web
interface and API instance on the Director host. There is not need to
install Bacularis on every Bacula FD and SD host until you want to work
with its configuration on the web interface. The FDs and SDs will be
available for administrative work on the interface anyway.

The Bacularis API and Bacula component deployment on the remote hosts can
be done via the web interface or manually. Here you can find example video
guide with deploying Bacularis and Bacula client on a new host:

https://www.youtube.com/watch?v=wsayzd7CsuU

Good luck. In case questions or problems, please let us know.

Best regards,
Marcin Haba (gani)

On Wed, 2 Aug 2023 at 05:01, Lorraine 
wrote:

> Hello Marcin,
>
> Thank you for your help.  Looks like bacularis needs to be installed
> alongside bacula ( on the same machine ) is this assumption correct?  Also,
> do you know if there is a bacularis release for linux 7.9?
>
> Regards
> Lorraine
>
> On 1 Aug 2023, at 4:49 pm, Marcin Haba  wrote:
>
> Hello Lorraine,
>
> Great. For troubleshooting usually it is good to visit the Bacularis
> documentation and the "Troubleshooting" chapter here:
>
> https://bacularis.app/doc/brief/troubleshooting.html
>
> Good luck.
>
> Best regards,
> Marcin Haba (gani)
>
> On Tue, 1 Aug 2023 at 06:37, Lorraine 
> wrote:
>
>> Thank you Marcin
>>
>> I am currently troubleshooting install of Bacularis so hopefully I can
>> use this tool instead
>>
>> Regards
>> Lorraine
>>
>> On 31 Jul 2023, at 7:10 pm, Marcin Haba  wrote:
>>
>> Hello Lorraine,
>>
>> About a month ago I ported from Bacularis a change to enable PostgreSQL
>> 15 support in Baculum. Unfortunately there has not been released any
>> Baculum version with this change yet.
>>
>> So, please wait on the new Baculum release or use Bacularis.
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Mon, 31 Jul 2023 at 08:28, Lorraine via Bacula-users <
>> bacula-users@lists.sourceforge.net> wrote:
>>
>>> Hi, Does Baculum work with postgresql-15 ?
>>>
>>> I have the same issue as -
>>> https://sourceforge.net/p/bacula/mailman/bacula-users/thread/DB9P190MB1481FDBC055FEB2EDA24A7F8FD5EA%40DB9P190MB1481.EURP190.PROD.OUTLOOK.COM/#msg37859480
>>> <https://sourceforge.net/p/bacula/mailman/bacula-users/thread/db9p190mb1481fdbc055feb2eda24a7f8fd...@db9p190mb1481.eurp190.prod.outlook.com/#msg37859480>
>>>
>>> The outcome of that thread was to downgrade, this is not an option for
>>> me.  Will baculum be releasing a patch for this issue with postgresql-15?
>>>
>>> Regards
>>> Lorrain
>>>
>>> Burgess Systems Consulting
>>> e: lorra...@burgess-consulting.com.au
>>> w: http://www.burgess-consulting.com.au
>>> m: +64-21-988-950
>>> ddi: +61 2 8077 4296
>>> Suite 802, 210 Clarence St, Sydney 2000, NSW
>>>
>>>
>>> 
>>>
>>> ___
>>> Bacula-users mailing list
>>> Bacula-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>>
>>
>>
>> --
>> "Greater love hath no man than this, that a man lay down his life for his
>> friends." Jesus Christ
>>
>> "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za
>> p

Re: [Bacula-users] Baculum with postgresql-15 SQLSTATE[42804]: Datatype mismatch

2023-07-31 Thread Marcin Haba
Hello Lorraine,

Great. For troubleshooting usually it is good to visit the Bacularis
documentation and the "Troubleshooting" chapter here:

https://bacularis.app/doc/brief/troubleshooting.html

Good luck.

Best regards,
Marcin Haba (gani)

On Tue, 1 Aug 2023 at 06:37, Lorraine 
wrote:

> Thank you Marcin
>
> I am currently troubleshooting install of Bacularis so hopefully I can use
> this tool instead
>
> Regards
> Lorraine
>
> On 31 Jul 2023, at 7:10 pm, Marcin Haba  wrote:
>
> Hello Lorraine,
>
> About a month ago I ported from Bacularis a change to enable PostgreSQL 15
> support in Baculum. Unfortunately there has not been released any Baculum
> version with this change yet.
>
> So, please wait on the new Baculum release or use Bacularis.
>
> Best regards,
> Marcin Haba (gani)
>
> On Mon, 31 Jul 2023 at 08:28, Lorraine via Bacula-users <
> bacula-users@lists.sourceforge.net> wrote:
>
>> Hi, Does Baculum work with postgresql-15 ?
>>
>> I have the same issue as -
>> https://sourceforge.net/p/bacula/mailman/bacula-users/thread/DB9P190MB1481FDBC055FEB2EDA24A7F8FD5EA%40DB9P190MB1481.EURP190.PROD.OUTLOOK.COM/#msg37859480
>> <https://sourceforge.net/p/bacula/mailman/bacula-users/thread/db9p190mb1481fdbc055feb2eda24a7f8fd...@db9p190mb1481.eurp190.prod.outlook.com/#msg37859480>
>>
>> The outcome of that thread was to downgrade, this is not an option for
>> me.  Will baculum be releasing a patch for this issue with postgresql-15?
>>
>> Regards
>> Lorrain
>>
>> Burgess Systems Consulting
>> e: lorra...@burgess-consulting.com.au
>> w: http://www.burgess-consulting.com.au
>> m: +64-21-988-950
>> ddi: +61 2 8077 4296
>> Suite 802, 210 Clarence St, Sydney 2000, NSW
>>
>>
>> 
>>
>> ___
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
>
>
> --
> "Greater love hath no man than this, that a man lay down his life for his
> friends." Jesus Christ
>
> "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za
> przyjaciół swoich." Jezus Chrystus
>
>
> Burgess Systems Consulting
> e: lorra...@burgess-consulting.com.au
> w: http://www.burgess-consulting.com.au
> m: +64-21-988-950
> ddi: +61 2 8077 4296
> Suite 802, 210 Clarence St, Sydney 2000, NSW
>
>
>
>

-- 
"Greater love hath no man than this, that a man lay down his life for his
friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za
przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum with postgresql-15 SQLSTATE[42804]: Datatype mismatch

2023-07-31 Thread Marcin Haba
Hello Lorraine,

About a month ago I ported from Bacularis a change to enable PostgreSQL 15
support in Baculum. Unfortunately there has not been released any Baculum
version with this change yet.

So, please wait on the new Baculum release or use Bacularis.

Best regards,
Marcin Haba (gani)

On Mon, 31 Jul 2023 at 08:28, Lorraine via Bacula-users <
bacula-users@lists.sourceforge.net> wrote:

> Hi, Does Baculum work with postgresql-15 ?
>
> I have the same issue as -
> https://sourceforge.net/p/bacula/mailman/bacula-users/thread/DB9P190MB1481FDBC055FEB2EDA24A7F8FD5EA%40DB9P190MB1481.EURP190.PROD.OUTLOOK.COM/#msg37859480
> <https://sourceforge.net/p/bacula/mailman/bacula-users/thread/db9p190mb1481fdbc055feb2eda24a7f8fd...@db9p190mb1481.eurp190.prod.outlook.com/#msg37859480>
>
> The outcome of that thread was to downgrade, this is not an option for
> me.  Will baculum be releasing a patch for this issue with postgresql-15?
>
> Regards
> Lorrain
>
> Burgess Systems Consulting
> e: lorra...@burgess-consulting.com.au
> w: http://www.burgess-consulting.com.au
> m: +64-21-988-950
> ddi: +61 2 8077 4296
> Suite 802, 210 Clarence St, Sydney 2000, NSW
>
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


-- 
"Greater love hath no man than this, that a man lay down his life for his
friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za
przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


  1   2   3   4   5   6   >