Re: [Bacula-users] Bacula Client Behind NAT

2022-10-17 Thread Rodrigo Reimberg via Bacula-users
Telnet from FD to SD on port 9103 -> it’s OK

 

Telnet from FD to DIR on port 9101 -> It’s OK

 

Telnet from DIR to FD on port 9102 not ok, I’m using ConnectToDirector 
parameter.

 

 

 

 

 

From: Josh Fisher via Bacula-users  
Sent: segunda-feira, 17 de outubro de 2022 09:01
To: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Bacula Client Behind NAT

 

 

On 10/16/22 11:44, Rodrigo Reimberg via Bacula-users wrote:

Hello,

 

Can someone help me?

 

I did the configuration of the client behind nat.

 

The client is communicating with the director as there is no error in the 
"working" directory.

 

When I access bconsole in the director and run the status client command, the 
timeout error occurs.

 

Because the status client command is the opposite direction, director 
contacting client.

 

 

 

I have a question, does the storage need to be public too?

 

Below the configuration files:

 

 

bacula-fd.conf

 

Director {

  Name = man-ind-1004-dir

  Password = "  "# Director must know this password

  Address = public-IP  # Director address to connect

  Connect To Director = yes   # FD will call the Director

}

 

 

bacula-dir.conf

 

Client {

  Name = "gfwv-brerpsql01-fd"

  Password = ""

  Catalog = "MyCatalog"

  AllowFDConnections = yes

}

 

 

 

 

From: Jose Alberto  <mailto:j.se...@gmail.com>  
Sent: domingo, 5 de dezembro de 2021 11:20
To: Wanderlei Huttel  <mailto:wanderleihut...@gmail.com> 

Cc: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Bacula Client Behind NAT

 

 When Run JOB:

 

Bacula-dir  >>>>>>>>>>>> FD   9102

 

and 

 

FD >>>>>>>>>>>>>>>>>>   SD   9103 (NAT)   with  DNS   or  IP Public.  

 

 

try  telnet from client fd to IP or DNS   port  9103  ,connect?  

 

 

 

 

 

 

 

 

 

 

 

 

 

On Thu, Dec 2, 2021 at 10:59 AM Wanderlei Huttel mailto:wanderleihut...@gmail.com> > 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#SECTION00230
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

}

 

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

  Snap

Re: [Bacula-users] Bacula Client Behind NAT

2022-10-16 Thread Rodrigo Reimberg via Bacula-users
Hello,

 

Can someone help me?

 

I did the configuration of the client behind nat.

 

The client is communicating with the director as there is no error in the 
"working" directory.

 

When I access bconsole in the director and run the status client command, the 
timeout error occurs.

 

 

I have a question, does the storage need to be public too?

 

Below the configuration files:

 

 

bacula-fd.conf

 

Director {

  Name = man-ind-1004-dir

  Password = "  "# Director must know this password

  Address = public-IP  # Director address to connect

  Connect To Director = yes   # FD will call the Director

}

 

 

bacula-dir.conf

 

Client {

  Name = "gfwv-brerpsql01-fd"

  Password = ""

  Catalog = "MyCatalog"

  AllowFDConnections = yes

}

 

 

 

 

From: Jose Alberto  
Sent: domingo, 5 de dezembro de 2021 11:20
To: Wanderlei Huttel 
Cc: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Bacula Client Behind NAT

 

 When Run JOB:

 

Bacula-dir   FD   9102

 

and 

 

FD >>   SD   9103 (NAT)   with  DNS   or  IP Public.  

 

 

try  telnet from client fd to IP or DNS   port  9103  ,connect?  

 

 

 

 

 

 

 

 

 

 

 

 

 

On Thu, Dec 2, 2021 at 10:59 AM Wanderlei Huttel mailto:wanderleihut...@gmail.com> > 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#SECTION00230
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  

  Connect To Director = yes

}

 

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  "  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

 


Re: [Bacula-users] STORAGE DEVICES

2021-09-14 Thread Rodrigo Reimberg via Bacula-users
Hello, Heitor.

 

“Just use the storage as cache, then you don't need to copy anything to nowhere.
BTW: the directive name is CacheRetention.”

 

 

 

I need cloud backup, network storage and external disks.

 

So, I wanted to automate this process, is it possible to do it through bacula? 
Or I disable truncate and copy the data to my destination (Storage and External 
Disks) via a script outside bacula.

 

What is the best practice?

 

 

 

From: Heitor Faria  
Sent: sábado, 11 de setembro de 2021 07:57
To: rodrigo.reimb...@terra.com.br; ph...@caerllewys.net; 
bacula-users@lists.sourceforge.net
Subject: RE: [Bacula-users] STORAGE DEVICES

 

"I need the backup on local network for a while, and these copies on another 
storage are automatically.
If I set the option "TruncateCache" to "No", I can create a script to copy the 
volume files to another storage, this is an solution, but I wanted to do this 
inside bacula to be able to have a catalog."

Just use the storage as cache, then you don't need to copy anything to nowhere.
BTW: the directive name is CacheRetention.

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

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

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


Re: [Bacula-users] STORAGE DEVICES

2021-09-10 Thread Rodrigo Reimberg via Bacula-users
Hello, 

 

Phil,

 

If I use copy to cloud storage and I don't have the data cached and the volume 
is no longer on my primary storage, bacula can automatically identify that the 
data is in the cloud when I need to restore my backup.

 

Most likely I won't have disk space on the local network for that long.

 

Heitor,

 

I need the backup on local network for a while, and these copies on another 
storage are automatically.

If I set the option "TruncateCache" to "No", I can create a script to copy the 
volume files to another storage, this is an solution, but I wanted to do this 
inside bacula to be able to have a catalog.

 

 

Tks,

 

Rodrigo

 

From: Heitor Faria  
Sent: sexta-feira, 10 de setembro de 2021 13:38
To: ph...@caerllewys.net; bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] STORAGE DEVICES

 

IMHO the Bacula Cloud Storage runs more efficiently as single Bacula Storage 
for this scenario, where you just use the "TruncateRetention" option to retain 
your local NAS stored cache for the desired time frame. More practical.

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

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

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


[Bacula-users] STORAGE DEVICES

2021-09-10 Thread Rodrigo Reimberg via Bacula-users
Hello,

 

Can anyone help me to solve a problem?

 

I need to copy my jobs of backup in other device.

 

Today, the backup storage is cloud only. So i want mantain this backups in a
local network storage too.

 

Is it possible to do this with automatic jobs?

 

Tks,

 

Rodrigo

 

 

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


[Bacula-users] Command to download CLOUD volumes

2021-09-02 Thread Rodrigo Reimberg via Bacula-users
Hello,

 

Does anyone know what's the command what the bacula use to download the
files in cloud.

 

I'm asking because, the download transfer rate with aws cli it's e much
faster than the restore command in bacula console.

 

I've made the tests with:

 

aws s3 cp s3://bucket/folder/file local/directory
--endpoint-url=https://s3.us-east-1.wasabisys.com

 

Best Regards,

 

Rodrigo Reimberg

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


Re: [Bacula-users] How to configure Bacula with S3

2021-06-16 Thread Rodrigo Reimberg via Bacula-users
Olá, Wanderlei.

 

Qual versão está utilizando?

 

Eu segui esse mesmo link e funcionou, porém, precisei fazer alguns ajustes.

 

Att.

 

From: Wanderlei Huttel  
Sent: quarta-feira, 16 de junho de 2021 09:02
To: bacula-users@lists.sourceforge.net
Subject: [Bacula-users] How to configure Bacula with S3

 

Hello

Finally I'm trying to run Bacula with S3 Cloud (Wasabi), but I'm not getting to 
configure.
In the Whitepaper and Manual is not so clear (would be interesting have more 
information  and examples about it).

What I'm doing wrong?

I followed this bacula video:
https://www.youtube.com/watch?v=WCsgtl--ZHA

root@debian:/usr/src/libs3-20200523# DESTDIR=/usr/local make clean

build: Cleaning

 

root@debian:/usr/src/libs3-20200523# DESTDIR=/usr/local make

build/obj/bucket.do: Compiling dynamic object

build/obj/bucket_metadata.do: Compiling dynamic object

build/obj/error_parser.do: Compiling dynamic object

build/obj/general.do: Compiling dynamic object

build/obj/object.do: Compiling dynamic object

build/obj/request.do: Compiling dynamic object

build/obj/request_context.do: Compiling dynamic object

build/obj/response_headers_handler.do: Compiling dynamic object

build/obj/service_access_logging.do: Compiling dynamic object

build/obj/service.do: Compiling dynamic object

build/obj/simplexml.do: Compiling dynamic object

build/obj/util.do: Compiling dynamic object

build/obj/multipart.do: Compiling dynamic object

build/lib/libs3.so.4: Building shared library

build/obj/bucket.o: Compiling object

build/obj/bucket_metadata.o: Compiling object

build/obj/error_parser.o: Compiling object

build/obj/general.o: Compiling object

build/obj/object.o: Compiling object

build/obj/request.o: Compiling object

build/obj/request_context.o: Compiling object

build/obj/response_headers_handler.o: Compiling object

build/obj/service_access_logging.o: Compiling object

build/obj/service.o: Compiling object

build/obj/simplexml.o: Compiling object

build/obj/util.o: Compiling object

build/obj/multipart.o: Compiling object

build/lib/libs3.a: Building static library

build/obj/s3.o: Compiling object

build/bin/s3: Building executable

build/include/libs3.h: Linking header

build/obj/testsimplexml.o: Compiling object

build/bin/testsimplexml: Building executable

 

 

root@debian:/usr/src/libs3-20200523# DESTDIR=/usr/local make install

/usr/local/bin/s3: Installing executable

/usr/local/lib/libs3.so.4.1.bac: Installing shared library

/usr/local/lib/libs3.so.4: Linking shared library

/usr/local/lib/libs3.so: Linking shared library

/usr/local/lib/libs3.a: Installing static library

install: AVISO: ignorando a opção --strip-program, pois a opção -s não foi 
especificada

/usr/local/include/libs3.h: Installing header

install: AVISO: ignorando a opção --strip-program, pois a opção -s não foi 
especificada

 

 

When I run S3 I've receive this error.

root@debian:/usr/src/libs3-20200523# s3

s3: error while loading shared libraries: libs3.so.4: cannot open shared object 
file: No such file or directory

 

 



bacula-sd.conf



Storage{

  Name = bacula-sd

  SDPort = 9103

  WorkingDirectory = "/etc/bacula/working"

  Pid Directory = "/etc/bacula/working"

  Maximum Concurrent Jobs = 50

  Heartbeat Interval = 300 seconds

  PluginDirectory = "/etc/bacula/plugins"

}

 

Cloud {

  Name = "Wasabi"

  Driver = "S3"

  HostName = "s3.wasabisys.com  "

  Region = "us-east-1"

  BucketName = "my-bucket-name"

  AccessKey = "MY_KEY"

  SecretKey = "MY_SECRET_KEY"

  Protocol = HTTPS

  UriStyle = path

  Truncate Cache = No #AfterUpload

  Upload = EachPart

  # MaximumUploadBandwidth = 5MB/s # Optional

}

 

Device {

  Name = "RemoteBucket"

  Device Type = Cloud

  Cloud = "Wasabi"

  Archive Device = "/backup/wasabi" # local volume cache

  Maximum Part Size = 500 MB # important: it is the object upload granularity

  Media Type = Cloud

  LabelMedia = yes

  Random Access = yes

  AutomaticMount = yes

  RemovableMedia = no

  AlwaysOpen = no

}

 

 



bacula-dir.conf



Storage {

  Name = "Wasabi"

  Address = 192.168.1.87

  SDPort = 9103

  Password = "XXX"

  Device = "RemoteBucket"

  Media Type = Cloud

  Maximum Concurrent Jobs = 1

  Heartbeat Interval = 300 seconds

#  Autochanger = "Wasabi"

}

 




Best regards

 

Wanderlei Hüttel

 

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


Re: [Bacula-users] S3 "Driver" Doesn't Work 11.0.2

2021-04-28 Thread Rodrigo Reimberg via Bacula-users
Hello,

I’m with the same problem in this version.


Sent from my iPhone

> On 28 Apr 2021, at 01:02, Jim Joyce  wrote:
> 
> 
> Has anyone​ had success loading the S3 "Driver" ?? I'm running the latest 
> version 11.0.2 (Debian Buster) and all I get is "Driver not properly loaded" 
> --
> 
> Apr 27 20:59:59 backup bacula-sd[498]: cloud_dev.c:1001 Could not open Cloud 
> driver type=1 for Device=CloudStorage.
> Apr 27 20:59:59 backup bacula-sd[498]: cloud_dev.c:1032 Cloud driver 
> initialization error Cloud driver not properly loaded
> 
> Are there any tips/tricks/whitepapers or workarounds to get this darn thing 
> loaded??
> ___
> 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