Azure Blob Storage
Since: v1.4.0
Storage backup file to Microsoft Azure Blob Storage (opens in a new tab).
You must visit Azure Portal (opens in a new tab) to create a storage account and a container.
And then visit Azure Active Directory / App registrations (opens in a new tab), and go to Certificates & secrets, click New Client secret to get a client_secret
.
Config keys
type: azure
account
- Azure Storage Account name, alias:bucket
container
- Container nametenant_id
- Azure Tenant ID, you can find in Azure Active Directory - Overview (opens in a new tab) page, e.g.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
client_id
- Azure Client ID, you can find in Azure Active Directory - App registrations (opens in a new tab) list (The column named Application (client) ID) after you have created a App registration, e.g.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
client_secret
- Azure Client Secrettimeout
- Timeout in seconds, default:300
, keep0
to no limit.
Example
models:
my_backup:
storages:
azure:
type: azure
account: gobackup-test
container: backups
tenant_id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
client_id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
client_secret: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
timeout: 300