-
-
26 Jun 2020 11:22:31 UTC
- Distribution: Search-Elasticsearch-Client-1_0
- Module version: 6.81
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (20)
- Testers (141 / 0 / 0)
- Kwalitee
Bus factor: 1- % Coverage
- License: apache_2_0
- Activity
24 month- Tools
- Download (49.92KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors-
Enrico Zimuel
- Dependencies
- Devel::GlobalDestruction
- Moo
- Moo::Role
- Search::Elasticsearch
- Search::Elasticsearch::Role::API
- Search::Elasticsearch::Role::Client::Direct
- Search::Elasticsearch::Role::Is_Sync
- Search::Elasticsearch::Util
- Try::Tiny
- namespace::clean
- strict
- warnings
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Search::Elasticsearch::Client::1_0::Direct::Snapshot - A client for managing snapshot/restore
VERSION
version 6.81
DESCRIPTION
This module provides methods to manage snapshot/restore, or backups. It can create, get and delete configured backup repositories, and create, get, delete and restore snapshots of your cluster or indices.
It does Search::Elasticsearch::Role::Client::Direct.
METHODS
create_repository()
$e->snapshot->create_repository( repository => 'repository', # required body => { defn } # required );
Create a repository for backups.
Query string parameters:
master_timeout
,timeout
,verify
See the "snapshot/restore docs" for more information.
get_repository()
$e->snapshot->get_repository( repository => 'repository' | \@repositories # optional );
Retrieve existing repositories.
Query string parameters:
local
,master_timeout
See the "snapshot/restore docs" for more information.
verify_repository()
$e->snapshot->verify_repository( repository => 'repository' # required );
Verify existing repository.
Query string parameters:
master_timeout
,timeout
See the "snapshot/restore docs" for more information.
delete_repository()
$e->snapshot->delete_repository( repository => 'repository' | \@repositories # required );
Delete repositories by name.
Query string parameters:
master_timeout
,timeout
See the "snapshot/restore docs" for more information.
create()
$e->snapshot->create( repository => 'repository', # required snapshot => 'snapshot', # required, body => { snapshot defn } # optional );
Create a snapshot of the whole cluster or individual indices in the named repository.
Query string parameters:
master_timeout
,wait_for_completion
get()
$e->snapshot->get( repository => 'repository' # required snapshot => 'snapshot' | \@snapshots # required );
Retrieve snapshots in the named repository.
Query string parameters:
master_timeout
See the "snapshot/restore docs" for more information.
delete()
$e->snapshot->delete( repository => 'repository', # required snapshot => 'snapshot' # required );
Delete snapshot in the named repository.
Query string parameters:
master_timeout
See the "snapshot/restore docs" for more information.
restore()
$e->snapshot->restore( repository => 'repository', # required snapshot => 'snapshot' # required body => { what to restore } # optional );
Restore a named snapshot.
Query string parameters:
master_timeout
,wait_for_completion
See the "snapshot/restore docs" for more information.
status()
$result = $e->snapshot->status( repository => 'repository', # optional snapshot => 'snapshot' | \@snapshots # optional );
Returns status information about the specified snapshots.
Query string parameters:
master_timeout
See the "snapshot/restore docs" for more information.
AUTHOR
Enrico Zimuel <enrico.zimuel@elastic.co>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2020 by Elasticsearch BV.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
Module Install Instructions
To install Search::Elasticsearch::Client::1_0, copy and paste the appropriate command in to your terminal.
cpanm Search::Elasticsearch::Client::1_0
perl -MCPAN -e shell install Search::Elasticsearch::Client::1_0
For more information on module installation, please visit the detailed CPAN module installation guide.