Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2021-11-29 23:42:59 +0300
committerToon Claes <toon@gitlab.com>2021-11-29 23:42:59 +0300
commita7c94e172a36b791fa4c94a46ece58ac81a79250 (patch)
tree5a44d5987e39426a117e2cdb0e8d6735bc524175
parentddcedf01b9d73991f70c8b8fc2f25beae779b898 (diff)
parentfed7a2e35c2083aa195a455ed7d3e33195011799 (diff)
Merge branch 'docs-backup-object' into 'master'
Document object storage support in gitaly-backup See merge request gitlab-org/gitaly!4133
-rw-r--r--doc/gitaly-backup.md25
1 files changed, 23 insertions, 2 deletions
diff --git a/doc/gitaly-backup.md b/doc/gitaly-backup.md
index cf2f1651c..b50bfeedb 100644
--- a/doc/gitaly-backup.md
+++ b/doc/gitaly-backup.md
@@ -101,9 +101,30 @@ Gitaly and Gitaly Cluster.
| `-parallel-storage` | integer | no | Maximum number of parallel restores per storage. |
| `-layout` | string | no | Determines the file-system layout. Any of `legacy`, `pointer` (default `legacy`). Note: The feature is not ready for production use. |
-## How Git repository backups work
+## Path
-The way backup files are arranged on the filesystem or on object storages is determined by the layout.
+Path determines where on the local filesystem or in object storage backup files
+are created on or restored from. The path is set using the `-path` flag.
+
+### Local Filesystem
+
+If `-path` specifies a local filesystem, it is the root of where all backup
+files are created.
+
+### Object Storage
+
+`gitaly-backup` supports streaming backup files directly to object storage
+using the [`gocloud.dev/blob`](https://pkg.go.dev/gocloud.dev/blob) library.
+`-path` can be used with:
+
+- [Amazon S3](https://pkg.go.dev/gocloud.dev/blob/s3blob). For example `-path=s3://my-bucket?region=us-west-1`.
+- [Azure Blob Storage](https://pkg.go.dev/gocloud.dev/blob/azureblob). For example `-path=azblob://my-container`.
+- [Google Cloud Storage](https://pkg.go.dev/gocloud.dev/blob/gcsblob). For example `-path=gs//my-bucket`.
+
+## Layouts
+
+The way backup files are arranged on the filesystem or on object storage is
+determined by the layout. The layout is set using the `-layout` flag.
### Legacy layout