-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #146 from jkaninda/feature/azure-blob
feat: add Azure Blob storage
- Loading branch information
Showing
29 changed files
with
1,374 additions
and
603 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
run: | ||
timeout: 5m | ||
allow-parallel-runners: true | ||
|
||
issues: | ||
# don't skip warning about doc comments | ||
# don't exclude the default set of lint | ||
exclude-use-default: false | ||
# restore some of the defaults | ||
# (fill in the rest as needed) | ||
exclude-rules: | ||
- path: "internal/*" | ||
linters: | ||
- dupl | ||
- lll | ||
- goimports | ||
linters: | ||
disable-all: true | ||
enable: | ||
- dupl | ||
- errcheck | ||
- copyloopvar | ||
- ginkgolinter | ||
- goconst | ||
- gocyclo | ||
- gofmt | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- misspell | ||
- nakedret | ||
- prealloc | ||
- revive | ||
- staticcheck | ||
- typecheck | ||
- unconvert | ||
- unparam | ||
- unused | ||
|
||
linters-settings: | ||
revive: | ||
rules: | ||
- name: comment-spacings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
title: Azure Blob storage | ||
layout: default | ||
parent: How Tos | ||
nav_order: 5 | ||
--- | ||
# Azure Blob storage | ||
|
||
{: .note } | ||
As described on local backup section, to change the storage of you backup and use Azure Blob as storage. You need to add `--storage azure` (-s azure). | ||
You can also specify a folder where you want to save you data by adding `--path my-custom-path` flag. | ||
|
||
|
||
## Backup to S3 | ||
|
||
```yml | ||
services: | ||
mysql-bkup: | ||
# In production, it is advised to lock your image tag to a proper | ||
# release version instead of using `latest`. | ||
# Check https://github.com/jkaninda/mysql-bkup/releases | ||
# for a list of available releases. | ||
image: jkaninda/mysql-bkup | ||
container_name: mysql-bkup | ||
command: backup --storage s3 -d database --path /my-custom-path | ||
environment: | ||
- DB_PORT=3306 | ||
- DB_HOST=mysql | ||
- DB_NAME=database | ||
- DB_USERNAME=username | ||
- DB_PASSWORD=password | ||
## Azure Blob configurations | ||
- AZURE_STORAGE_CONTAINER_NAME=backup-container | ||
- AZURE_STORAGE_ACCOUNT_NAME=account-name | ||
- AZURE_STORAGE_ACCOUNT_KEY=Ppby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw== | ||
## In case you are using S3 alternative such as Minio and your Minio instance is not secured, you change it to true | ||
- AWS_DISABLE_SSL="false" | ||
- AWS_FORCE_PATH_STYLE=true # true for S3 alternative such as Minio | ||
|
||
# mysql-bkup container must be connected to the same network with your database | ||
networks: | ||
- web | ||
networks: | ||
web: | ||
``` | ||
Oops, something went wrong.