On 12/2/21 09:56, Wanderlei Huttel wrote:
I'm trying to configure the new feature in in Bacula, but manual is not clear about it.
https://www.bacula.org/11.0.x-manuals/en/main/New_Features_in_11_0_0.html#SECTION002300000000000000000
In the company have some employees that sometimes are working at home with their laptops and the most of time are working internal

So, I've thought include "Client Behind Nat" to backup their laptops when they are remote

1) I've create 2 rules in Firewall to forward ports 9101 and 9103 from FW Server to Bacula Server (The connection it looks OK)

2) I've configured the laptop client (bacula-fd.conf)
Director {
  Name = bacula-dir
  Password = "mypassword"
  Address = mydomain.com <http://mydomain.com>
  Connect To Director = yes
}


The director cannot connect to the client, so there is a way to tell the client to connect to the director. The director starts its job on its own schedule exactly as for a local client. The difference is in the client. The client must also have a schedule of when it should connect to the director. The client must (I think) already be connected to the director when the director starts the job. The client connects to the director and just waits for the director to start a job. The director's schedule for the job should start the job a few minutes after the client is scheduled to connect to account for system clock differences in the client, etc.

To do this, you have to set a schedule in the client config, like:

# bacula-fd.conf
Director {
  Name = bacula-dir
  Password = "mypassword"
  Address = mydomain.com
  Connect to Director = yes
  Schedule = myschedule
}

Schedule {
  Name = myschedule
  # Connect to director between 12:00 and 14:00 on weekdays
  Connect = MaxConnectTime=2h on mon-fri at 12:00
}



3) In bacula-dir.conf on client-XXX I've configured the option:
Allow FD Connections = yes
Should I include "FD Storage Address = mydomain.com <http://mydomain.com>" to backup when the employee is remote?

4) If I want to modify the ports from client behind NAT connect, how to do? Is possible?

5) This Kind of configuration will work when the employee is in the local network or in remote network?

I've made a test and didn't worked using the configuration like manual and didn't worked.
==================
2021-12-02 11:45:02   bacula-dir JobId 28304: Start Backup JobId 28304, Job=Backup_Maquina_Remota.2021-12-02_11.45.00_03 2021-12-02 11:45:02   bacula-dir JobId 28304: Using Device "DiscoLocal1" to write. 2021-12-02 11:48:02   bacula-dir JobId 28304: Fatal error: No Job status returned from FD. 2021-12-02 11:48:02   bacula-dir JobId 28304: Error: Bacula bacula-dir 11.0.5 (03Jun21):
  Build OS:  x86_64-pc-linux-gnu debian 9.13
  JobId:                  28304
  Job: Backup_Maquina_Remota.2021-12-02_11.45.00_03
  Backup Level:  Incremental, since=2021-12-01 17:30:01
  Client:  "remota-fd" 11.0.5 (03Jun21) Microsoft Windows 8 Professional (build 9200), 64-bit,Cross-compile,Win64
  FileSet: "FileSet_Remota" 2015-03-12 16:05:45
  Pool:                   "Diaria" (From Run Pool override)
  Catalog: "MyCatalog" (From Client resource)
  Storage: "StorageLocal1" (From Pool resource)
  Scheduled time:  02-Dec-2021 11:45:00
  Start time:  02-Dec-2021 11:45:02
  End time:  02-Dec-2021 11:48:02
  Elapsed time:           3 mins
  Priority:               10
  FD Files Written:       0
  SD Files Written:       0
  FD Bytes Written:       0 (0 B)
  SD Bytes Written:       0 (0 B)
  Rate:                   0.0 KB/s
  Software Compression:   None
  Comm Line Compression:  None
  Snapshot/VSS:           no
  Encryption:             no
  Accurate:               yes
  Volume name(s):
  Volume Session Id:      80
  Volume Session Time: 1637867221
  Last Volume Bytes: 2,064,348,469 (2.064 GB)
  Non-fatal FD errors:    1
  SD Errors:              0
  FD termination status:  Error
  SD termination status:  Waiting on FD
  Termination:            *** Backup Error ***
2021-12-02 11:48:02   bacula-dir JobId 28304: shell command: run AfterJob "/etc/bacula/scripts/_webacula_update_filesize.sh 28304 Backup Error" 2021-12-02 11:48:02   bacula-dir JobId 28304: AfterJob: The JobSize and FileSize of JobId 28304 were updated successfully! 2021-12-02 11:48:02   bacula-dir JobId 28304: shell command: run AfterJob "/etc/bacula/scripts/_send_telegram.sh 28304"==================

Best regards

*Wanderlei Hüttel*



_______________________________________________
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

Reply via email to