The AWS SDK for Java can be leveraged for use with Backblaze B2 S3 Compatible API by a few small configuration changes. Here is an example of doing so for an account with an S3 Endpoint of s3.us-west-002.backblazeb2.com:
Region region = Region.US_WEST_002;
final String END_POINT = "https://s3.us-west-002.backblazeb2.com";
AwsSessionCredentials awsCreds = AwsSessionCredentials.create(ACCESS_KEY, SECRET_ACCESS_KEY, "");
S3Client s3 = S3Client.builder().credentialsProvider(
StaticCredentialsProvider.create(awsCreds))
.endpointOverride(URI.create(END_POINT)).region(region).build();
The S3 Compatible API for Backblaze B2 Cloud Storage allows 1000’s of integrations to work with B2 natively. If you’re new to the S3 Compatible API, please see our Getting Started Guide. If you have any trouble using the AWS SDK for Java (v2) with B2, please let us know by emailing us at b2feedback@backblaze.com
Articles in this section
- Relinking MSP360 Backups After a Cloud to B2 Migration
- How to use Synology Hyper Backup with Backblaze B2 Cloud Storage and B2 Fireball Rapid Ingest
- Veeam Cloud Repository Recovery from Backblaze B2
- Configuring Filezilla Pro to use Backblaze B2 Cloud Storage
- Configuring QNAP HybridMount to use Backblaze B2 Cloud Storage
- How to use SimpleBackups with Backblaze B2 Cloud Storage
- How to transfer your photos and videos from Facebook to Backblaze B2
- Copying Active Backup data to Backblaze B2 with Hyper Backup
- Quickstart Guide using S5cmd with B2 Cloud Storage
- Using Arcserve UDP with B2 Cloud Storage