Skip to content

Commit 19b8f8d

Browse files
committed
Add create snapshot repository examples
1 parent ea0411c commit 19b8f8d

6 files changed

+42
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
summary: A shared file system repository
2+
# method_request: PUT /_snapshot/my_repository
3+
description: Run `PUT /_snapshot/my_repository` to create or update a shared file system snapshot repository.
4+
# type: request
5+
value:
6+
"{\n \"type\": \"fs\",\n \"settings\": {\n \"location\": \"my_backup_location\"\
7+
\n }\n}"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
summary: An Azure repository
2+
# method_request: PUT _snapshot/my_backup
3+
description: Run `PUT /_snapshot/my_repository` to create or update an Azure snapshot repository.
4+
# type: request
5+
value:
6+
"{\n \"type\": \"azure\",\n \"settings\": {\n \"client\": \"secondary\"\
7+
\n }\n}"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
summary: A Google Cloud Storage repository
2+
# method_request: PUT _snapshot/my_gcs_repository
3+
description: Run `PUT /_snapshot/my_gcs_repository` to create or update a Google Cloud Storage snapshot repository.
4+
# type: request
5+
value:
6+
"{\n \"type\": \"gcs\",\n \"settings\": {\n \"bucket\": \"my_other_bucket\"\
7+
,\n \"base_path\": \"dev\"\n }\n}"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
summary: An S3 repository
2+
# method_request: PUT _snapshot/my_s3_repository
3+
description: Run `PUT /_snapshot/my_s3_repository` to create or update an AWS S3 snapshot repository.
4+
# type: request
5+
value:
6+
"{\n \"type\": \"s3\",\n \"settings\": {\n \"bucket\": \"my-bucket\"\n\
7+
\ }\n}"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
summary: A source-only repository
2+
# method_request: PUT _snapshot/my_src_only_repository
3+
description: Run `PUT _snapshot/my_src_only_repository` to create or update a source-only snapshot repository.
4+
# type: request
5+
value:
6+
"{\n \"type\": \"source\",\n \"settings\": {\n \"delegate_type\": \"fs\"\
7+
,\n \"location\": \"my_backup_repository\"\n }\n}"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
summary: A read-only URL repository
2+
# method_request: PUT _snapshot/my_read_only_url_repository
3+
description: Run `PUT _snapshot/my_read_only_url_repository` to create or update a read-only URL snapshot repository.
4+
# type: request
5+
value:
6+
"{\n \"type\": \"url\",\n \"settings\": {\n \"url\": \"file:/mount/backups/my_fs_backup_location\"\
7+
\n }\n}"

0 commit comments

Comments
 (0)