Re: [Bacula-users] Separation of bacula-dir and Catalog service

2022-11-21 Thread Bill Arlofski via Bacula-users

On 11/21/22 02:16, Yateen Shaligram Bhagat (Nokia) wrote:

Hi all,

We are using Bacula 9.4 on Centos.

At the moment the bacula-dir and the catalog service (PgSQL server) are 
co-located  on one single host.

For optimization reasons, we need to move the PgSQL server to another server 
(FreeBSD based).

Is that possible?

Thanks,

Yateen Bhagat


Hello Yateen,

Yes, it is quite possible, and very simple to do.

In your bacula-dir.conf configuration look for a resource called `Catalog`

Here you set the host, port, user, and password to connect to the catalog 
database server.

Just set these parameters to the correct ones for your new DB server, and on that DB server, make sure that the Director 
server is allowed to connect to the DB's port (ie firewall on db server), and also make sure to create the remote db user and 
grant it necessary permissions in the database.


Basic Steps:

- Stop Director
- Dump bacula database
- Stop the database server on the Director, and disable it from starting
- Import database dump into new DB host
- Create remote user in new db server
- Grant this user full permission on bacula db
- Create any needed firewall rules to allow director server to connect to DB
- Edit bacula-dir.conf file on Director and specify correct DB settings in 
Catalog resource
- Test from the command line with `psql cliednt toolto make sure connectivity to the bacula db on remote server is OK, 
correct any issues before moving on

- When all is OK from the command line on the Director, then start the Director 
and test.


Hope this helps!


Best regards,
Bill

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



signature.asc
Description: OpenPGP digital signature
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Notifications doesn't work

2022-11-21 Thread Richard Laysell
On Mon, 21 Nov 2022 12:16:24 +
Gina Costa  wrote:

> Hi,
> 
> I’m using bacula 9 over CentOS. I need receive notifications about
> job failures but this notifications doesn’t work. The configuration
> file bacula-dir.conf has the followup Messages directive:
> 
> ***
> Messages {
> Name = Standard
> mailcommand = "/usr/sbin/bsmtp -h 192.168.0.66 -f "(Bacula) <%r>" -s
> "Bacula: %t %e of %c %l" %r" operatorcommand = "/usr/sbin/bsmtp -h
> 192.168.0.66 -f "(Bacula) <%r>" -s "Bacula: Intervention needed for
> %j" %r" mail = gina.co...@uc.pt = all, !skipped operator =
> gina.co...@uc.pt = mount console = all, !skipped, !saved
> append = "/var/log/bacula/bacula.log" = all, !skipped
> catalog = all
> }
> ***
> 
> To test whether the mail sending is working as it should, I do the
> following command, and this works fine, I receive the test message :
> 
>   echo "This is test message." | /opt/bacula/bin/bsmtp -h
> 192.168.0.66 -f bac...@uc.pt -s "Test" gina.co...@uc.pt -d 50
> 
> 
> Can anyone help me?
> 
> 
> 
> Gina Costa

Hello Gina,

Your paths are different.  Your configuration file has /usr/sbin/bsmtp
but your test command has /opt/bacula/bin/bsmtp

I think you need to change the path in your configuration file (two
places)

Regards,

Richard



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


Re: [Bacula-users] Notifications doesn't work

2022-11-21 Thread Josip Deanovic

On 2022-11-21 13:16, Gina Costa wrote:

Hi,

I’m using bacula 9 over CentOS. I need receive notifications about job
failures but this notifications doesn’t work.
The configuration file bacula-dir.conf has the followup Messages 
directive:


***
Messages {
Name = Standard
mailcommand = "/usr/sbin/bsmtp -h 192.168.0.66 -f "(Bacula) <%r>" -s
"Bacula: %t %e of %c %l" %r"
operatorcommand = "/usr/sbin/bsmtp -h 192.168.0.66 -f "(Bacula) <%r>"
-s "Bacula: Intervention needed for %j" %r"
mail = gina.co...@uc.pt = all, !skipped
operator = gina.co...@uc.pt = mount
console = all, !skipped, !saved
append = "/var/log/bacula/bacula.log" = all, !skipped
catalog = all
}
***

To test whether the mail sending is working as it should, I do the
following command, and this works fine, I receive the test message :

echo "This is test message." | /opt/bacula/bin/bsmtp -h 192.168.0.66
-f bac...@uc.pt -s "Test" gina.co...@uc.pt -d 50


Can anyone help me?



Maybe you need to escape special characters like quotes.
For example:

mailcommand = "/usr/sbin/bsmtp -h 192.168.0.66 -f \"\(Bacula\) <%r>\" -s 
\"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/usr/sbin/bsmtp -h 192.168.0.66 -f \"\(Bacula\) 
<%r>\" -s \"Bacula: Intervention needed for %j\" %r"



Regards!

--
Josip Deanovic


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


[Bacula-users] Notifications doesn't work

2022-11-21 Thread Gina Costa
Hi,

I’m using bacula 9 over CentOS. I need receive notifications about job failures 
but this notifications doesn’t work.
The configuration file bacula-dir.conf has the followup Messages directive:

***
Messages {
Name = Standard
mailcommand = "/usr/sbin/bsmtp -h 192.168.0.66 -f "(Bacula) <%r>" -s "Bacula: 
%t %e of %c %l" %r"
operatorcommand = "/usr/sbin/bsmtp -h 192.168.0.66 -f "(Bacula) <%r>" -s 
"Bacula: Intervention needed for %j" %r"
mail = gina.co...@uc.pt = all, !skipped
operator = gina.co...@uc.pt = mount
console = all, !skipped, !saved
append = "/var/log/bacula/bacula.log" = all, !skipped
catalog = all
}
***

To test whether the mail sending is working as it should, I do the following 
command, and this works fine, I receive the test message :

echo "This is test message." | /opt/bacula/bin/bsmtp -h 192.168.0.66 -f 
bac...@uc.pt -s "Test" gina.co...@uc.pt -d 50


Can anyone help me?



Gina Costa

Universidade de Coimbra • Administração
SGSIIC-Serviço de Gestão de Sistemas e Infraestruturas de Informação e 
Comunicação
Divisão de Infraestruturas de TIC
Rua do Arco da Traição | 3000-056 COIMBRA • PORTUGAL 
Tel.: +351 239 242 870 
E-mail: gina.co...@uc.pt
www.uc.pt/administracao
 




Este e-mail pretende ser amigo do ambiente. Pondere antes de o imprimir! 
This e-mail is environment friendly. Please think twice before printing it!




smime.p7s
Description: S/MIME cryptographic signature
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Separation of bacula-dir and Catalog service

2022-11-21 Thread Yateen Shaligram Bhagat (Nokia)
Hi all,

We are using Bacula 9.4 on Centos.

At the moment the bacula-dir and the catalog service (PgSQL server) are 
co-located  on one single host.

For optimization reasons, we need to move the PgSQL server to another server 
(FreeBSD based).

Is that possible?

Thanks,
Yateen Bhagat


From: Davide F. 
Sent: Sunday, November 20, 2022 12:28 PM
To: d...@bornfree.org
Cc: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Upgrading from 11.0 to 13.0

Hello,

Actually, I have the same question.

Is there any documentation about supported versions ?

Also, why not building recent platform packages for 11.0.x ?

Best regards

Davide

On Sat, 19 Nov 2022 at 20:08 mailto:d...@bornfree.org>> 
wrote:

Where can I find documentation on how to upgrade (server, clients, and
Baculum) from version 11.0 to 13.0 ???  We do everything via your binary
packages.  Our server and Baculum run on el8.  Our clients are el8, el9,
Ubuntu 20.04 LTS and Ubuntu 22.04 LTS.

Also, how much longer will 13.0 be supported before a major upgrade is
required?

---


___
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