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

2021-06-17 Thread Josip Deanovic
On Thursday 2021-06-17 08:01:59 Wanderlei Huttel wrote:
> Hi Josip,
> 
> I forgot to mention it before.
> I'm running Debian 10 Buster

Interesting.

I just tested it on new Debian 10 installation.
I tested it by putting a path in /etc/ld.so.conf before and after the 
include line.
I have also tested it with the separate config file in the
/etc/ld.so.conf.d directory.

In all cases it worked as expected and the cache was properly updated.
I checked the content of the cache file with "ldconfig -p" command.

-- 
Josip Deanovic


___
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-17 Thread Josip Deanovic
On Thursday 2021-06-17 07:25:35 Wanderlei Huttel wrote:
> Hello Josip
> 
> I don't know why, but I've run ldconfig several time and didn't worked,
> only when I remove the /etc/ld.so.cache that s3 worked.


Hi Wanderlei

I am curious what operating system are you using?


Regards!

-- 
Josip Deanovic


___
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-17 Thread Wanderlei Huttel
Hello Josip

I don't know why, but I've run ldconfig several time and didn't worked,
only when I remove the /etc/ld.so.cache that s3 worked.

Best regards

*Wanderlei Hüttel*



Em qui., 17 de jun. de 2021 às 07:04, Josip Deanovic <
djosip+n...@linuxpages.net> escreveu:

> On Wednesday 2021-06-16 16:44:34 Wanderlei Huttel wrote:
> > Hello Erick
> >
> > I guess I've discovered the problem.
> > I had to remove the libs cache "rm /etc/ld.so.cache" and just
> > run "ldconfig" to create a new cache and then running command "s3"
> > worked fine.
> >
> > I guess my bacula configuration (director and storage are OK), I've made
> > a backup and it worked.
>
>
> Hello!
>
> You don't have to remove /etc/ld.so.cache file. Just run ldconfig.
>
> By default only libraries found in /lib and /usr/lib will be cached.
> Recent Linux distributions removed lib directory and replaced it with a
> symlink pointing to usr/lib in the root directory.
>
> Suse 9 and probably 10 and later, used to run ldconfig with a specific
> config file with every package install or update thus ignoring
> /etc/ld.so.conf file which is just one of many bad decisions they did.
>
>
> Regards!
>
> --
> Josip Deanovic
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


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

2021-06-17 Thread Josip Deanovic
On Wednesday 2021-06-16 16:44:34 Wanderlei Huttel wrote:
> Hello Erick
> 
> I guess I've discovered the problem.
> I had to remove the libs cache "rm /etc/ld.so.cache" and just
> run "ldconfig" to create a new cache and then running command "s3"
> worked fine.
> 
> I guess my bacula configuration (director and storage are OK), I've made
> a backup and it worked.


Hello!

You don't have to remove /etc/ld.so.cache file. Just run ldconfig.

By default only libraries found in /lib and /usr/lib will be cached.
Recent Linux distributions removed lib directory and replaced it with a
symlink pointing to usr/lib in the root directory.

Suse 9 and probably 10 and later, used to run ldconfig with a specific
config file with every package install or update thus ignoring
/etc/ld.so.conf file which is just one of many bad decisions they did.


Regards!

-- 
Josip Deanovic


___
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 Wanderlei Huttel
Hello Erick

I guess I've discovered the problem.
I had to remove the libs cache "rm /etc/ld.so.cache" and just
run "ldconfig" to create a new cache and then running command "s3" worked
fine.

I guess my bacula configuration (director and storage are OK), I've made a
backup and it worked.

Thanks

Best regards

*Wanderlei Hüttel*



Em qua., 16 de jun. de 2021 às 12:02, Eric Bollengier via Bacula-users <
bacula-users@lists.sourceforge.net> escreveu:

> Hello,
>
> I would suggest to play with ld.so.conf and LD_LIBRARY_PATH, it seems that
> new
> systems are not very fan of having things in /usr/local.
>
> Best Regards,
>
> Eric
>
> On 16.06.21 14:01, Wanderlei Huttel wrote:
> > 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
> > 

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

2021-06-16 Thread Elias Pereira
I installed and configured the plugin as follows:

wget www.bacula.org/downloads/libs3-20200523.tar.gz
tar -xvzf libs3-20200523.tar.gz
cd libs3-20200523
make
make install

*compile **plugin cloud s3*
root@bacula:~/bkp-bacula/bacula-x.x.x/src# cd stored/
make install-cloud


On Wed, Jun 16, 2021 at 12:02 PM Eric Bollengier via Bacula-users <
bacula-users@lists.sourceforge.net> wrote:

> Hello,
>
> I would suggest to play with ld.so.conf and LD_LIBRARY_PATH, it seems that
> new
> systems are not very fan of having things in /usr/local.
>
> Best Regards,
>
> Eric
>
> On 16.06.21 14:01, Wanderlei Huttel wrote:
> > 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 = 

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

2021-06-16 Thread Eric Bollengier via Bacula-users

Hello,

I would suggest to play with ld.so.conf and LD_LIBRARY_PATH, it seems that new 
systems are not very fan of having things in /usr/local.


Best Regards,

Eric

On 16.06.21 14:01, Wanderlei Huttel wrote:

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



___
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 <http://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


[Bacula-users] How to configure Bacula with S3

2021-06-16 Thread Wanderlei Huttel
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