Re: setting up an autochange in the cloud

"Stefan G. Weichinger" <[email protected]>
Newsgroups gmane.comp.bacula.user
Message-ID <[email protected]>
Am 11.10.24 um 19:16 schrieb Marcin Haba:
> On Fri, 11 Oct 2024 at 17:23, Stefan G. Weichinger <[email protected]> wrote:
>> Trying to set up an autochanger using a S3-compatible bucket in "the
>> cloud" (in my case at Contabo in germany).
>>
>> Fresh installation of Bacula-15.0.2, Bacularis-4.0.0 on a Debian-12.7
>> machine.
> 
> Hello Stefan,
> 
>> Added the packages:  bacula-cloud-storage-s3 plus
>> bacula-cloud-storage-common
> 
> This is OK.
> 
>> Restarted all the daemons.
>>
>> Looked at https://www.youtube.com/watch?v=MRdM2uKlHSI ... I don't get
>> that "Add cloud storage" button to begin with ...
> 
> The "Add cloud storage" wizard is a function available since the
> latest Bacularis 4.3.0. Your Bacularis 4.0.0 does not have it.

ok

> This is almost correct. You need to change:
> 
>   ChangerCommand = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d"
> 
> into:
> 
>   ChangerCommand = "/dev/null"
> 
> and restart the storage daemon.

did that

>> The changer doesn't show up in bacularis, I add it in the API menu and
>> get things like "/dev/null is not an sg device, or old sg driver". Sure.
> 
> To see this autochanger in Bacularis you need to add the Storage
> resource with the Autochanger for that in the Director configuration.

Sorry, I don't get it right now. pls advise in more detail. I have:

# sd

Device {
   Name = "CloudStorage1"
   MediaType = "cloudS3-media"
   DeviceType = "Cloud"
   ArchiveDevice = "/tmp"
   RemovableMedia = no
   RandomAccess = yes
   AutomaticMount = yes
   LabelMedia = yes
   AlwaysOpen = no
   MaximumPartSize = 10000000
   Cloud = "contabo-bucket1"
}
Autochanger {
   Name = "CloudAutoChanger1"
   Device = "CloudStorage1"
   ChangerDevice = "/dev/null"
   ChangerCommand = "/dev/null"
}

# dir

Storage {
   Name = "Cloud1"
   SdPort = 9103
   Address = "tx100.loc.oops.co.at"
   Password = "_swXHSgGzxxxxxxxx0"
   MediaType = "cloud1"
   Autochanger = "CloudAutoChanger1"
   Device = "CloudStorage1"
   MaximumConcurrentJobs = 4
}

what is wrong, what is missing?

I lose track here ... getting tired already, sry ;-)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.