Google

Since the Google CLI installation already requests credentials, and buckets created with gsutil already specify the default localization, Bacula will detect them automatically.

Note

The only mandatory parameters are Name, Driver and the BucketName.

If you have configured gcloud init with the HOME=/opt/bacula/etc/google parameter, Bacula will search for Google credentials automatically in /opt/bacula/etc/google.

Cloud {
  Name = MyCloud
  Driver = "Google"
  BucketName = "MyBucket"
}

If your Google credentials are stored elsewhere, you can specify a custom gcloud configuration path through the HostName attribute:

Cloud {
  Name = MyCloud
  Driver = "Google"
  BucketName = "MyBucket"
  HostName = "/path/to/google-config/folder/"
}

See also

Previous articles:

Next articles:

Go back to: Cloud Resource Examples.