Skip to content

Commit

Permalink
Add create snapshot repository examples
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl committed Jan 8, 2025
1 parent ea0411c commit 19b8f8d
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
summary: A shared file system repository
# method_request: PUT /_snapshot/my_repository
description: Run `PUT /_snapshot/my_repository` to create or update a shared file system snapshot repository.
# type: request
value:
"{\n \"type\": \"fs\",\n \"settings\": {\n \"location\": \"my_backup_location\"\
\n }\n}"
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
summary: An Azure repository
# method_request: PUT _snapshot/my_backup
description: Run `PUT /_snapshot/my_repository` to create or update an Azure snapshot repository.
# type: request
value:
"{\n \"type\": \"azure\",\n \"settings\": {\n \"client\": \"secondary\"\
\n }\n}"
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
summary: A Google Cloud Storage repository
# method_request: PUT _snapshot/my_gcs_repository
description: Run `PUT /_snapshot/my_gcs_repository` to create or update a Google Cloud Storage snapshot repository.
# type: request
value:
"{\n \"type\": \"gcs\",\n \"settings\": {\n \"bucket\": \"my_other_bucket\"\
,\n \"base_path\": \"dev\"\n }\n}"
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
summary: An S3 repository
# method_request: PUT _snapshot/my_s3_repository
description: Run `PUT /_snapshot/my_s3_repository` to create or update an AWS S3 snapshot repository.
# type: request
value:
"{\n \"type\": \"s3\",\n \"settings\": {\n \"bucket\": \"my-bucket\"\n\
\ }\n}"
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
summary: A source-only repository
# method_request: PUT _snapshot/my_src_only_repository
description: Run `PUT _snapshot/my_src_only_repository` to create or update a source-only snapshot repository.
# type: request
value:
"{\n \"type\": \"source\",\n \"settings\": {\n \"delegate_type\": \"fs\"\
,\n \"location\": \"my_backup_repository\"\n }\n}"
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
summary: A read-only URL repository
# method_request: PUT _snapshot/my_read_only_url_repository
description: Run `PUT _snapshot/my_read_only_url_repository` to create or update a read-only URL snapshot repository.
# type: request
value:
"{\n \"type\": \"url\",\n \"settings\": {\n \"url\": \"file:/mount/backups/my_fs_backup_location\"\
\n }\n}"

0 comments on commit 19b8f8d

Please sign in to comment.