On 2020-07-02 15:53, r0...@nxlplyx.com wrote:

> I have compiled Bacula 9.6.5 on Debian 10, with a lot of help from the folks 
> here. 
> 
> Now I cannot get S3 to work, probably my own lack of knowledge. 
> 
> I can back up and restore to local directories, that is no problem. 
> 
> However I am unable to get th S3 module to backup to an S3 server.  I can use 
> Fuse S3 to mount the S3 storage and move files back and forth.
> 
> ======================= 
> 
> From ./bconsole
> 
> The defined Storage resources are:
> 1: storage_dev_S3_nd1
> 2: File1
> 3: File2
> Select Storage resource (1-3): 1
> Connecting to Storage daemon storage_dev_S3_nd1 at debian:9103 ...
> 
> (hangs and no log is produced) 
> 
> I can't figure out what else to do. Can anyone help?
> 
> =========================
> 
> bacula_sd.conf
> 
> Device {
> Name = dev_S3_nd1
> Device Type = Cloud
> Cloud = S3Cloud
> Archive Device = /home/user1/dirNFS/bu/bacula_cloudstorage_test
> Maximum Part Size = 10000000
> Media Type = CloudType
> LabelMedia = yes;
> Random Access = Yes;
> AutomaticMount = yes
> RemovableMedia = no
> AlwaysOpen = no
> }
> 
> Cloud {
> Name = S3Cloud
> Driver = "S3"
> HostName = <redacted but pings, and can mount and move files back and forth 
> with Fuse S3)
> BucketName = "test_bucket"
> Access Key = <redacted>
> Secret Key = <redacted>
> Protocol = HTTPS
> UriStyle = VirtualHost
> Truncate Cache = No
> Upload = EachPart
> Region = "us-central-1"
> MaximumUploadBandwidth = 5MB/s
> }
> 
> ==========================
> 
> bacula_dir.conf
> 
> Storage {
> Name = storage_dev_S3_nd1
> Address = debian
> SD Port = 9103
> Password = <redacted - bacula_sd.conf password>
> Device = dev_S3_nd1
> Media Type = CloudType
> }
> 
> Job {
> Name = "BackupClient1-to-Cloud"
> JobDefs = "DefaultJob"
> Storage = storage_dev_S3_nd1
> Client = debian-fd
> }

Here is what I have configured -- 

baculda-sd-conf 

Cloud {
Name = BackBlaze-AWS
Driver = "S3"
HostName = "somehost.com"
BucketName = "somebucket"
AccessKey = "AccessKey"
SecretKey = "SecretKey"
Protocol = HTTPS
Region = "someregion"
Upload = EachPart
} 

Device {
Name = B2-AWS
Device Type = Cloud
Cloud = BackBlaze-AWS
Archive Device = /path/to/local/backup/directory
Maximum Part Size = 10485760
Media Type = B2-AWS-Type
LabelMedia = yes
Random Access = Yes;
AutomaticMount = yes
RemovableMedia = no
AlwaysOpen = no
} 

bacula-dir.conf 

Autochanger {
Name = B2-AWS
Address = fqdn.directory
SDPort = 9103
Password = "mypassword"
Device = B2-AWS
Media Type = B2-AWS-Type
Maximum Concurrent Jobs = 10
Autochanger = B2-AWS
} 

Pool {
Name = B2-AWS-Pool
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 365 days
Maximum Volume Bytes = 268435456
Maximum Volumes = 8192
Storage = B2-AWS
CacheRetention = 30 days
LabelFormat = "B2-AWS-Vol-"
}
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to