Search::Elasticsearch::Client::7_0::Direct::Snapshot - A client for managing snapshot/restore
version 8.00
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.
create_repository()
$e->snapshot->create_repository( repository => 'repository', # required body => { defn } # required );
Create a repository for backups.
Query string parameters: error_trace, human, master_timeout, timeout, verify
error_trace
human
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: error_trace, human, local, master_timeout
local
verify_repository()
$e->snapshot->verify_repository( repository => 'repository' # required );
Verify existing repository.
Query string parameters: error_trace, human, master_timeout, timeout
delete_repository()
$e->snapshot->delete_repository( repository => 'repository' | \@repositories # required );
Delete repositories by name.
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: error_trace, human, master_timeout, wait_for_completion
wait_for_completion
get()
$e->snapshot->get( repository => 'repository' # required snapshot => 'snapshot' | \@snapshots # required );
Retrieve snapshots in the named repository.
Query string parameters: error_trace, human, ignore_unavailable, master_timeout, verbose
ignore_unavailable
verbose
delete()
$e->snapshot->delete( repository => 'repository', # required snapshot => 'snapshot' # required );
Delete snapshot in the named repository.
Query string parameters: error_trace, human, master_timeout
restore()
$e->snapshot->restore( repository => 'repository', # required snapshot => 'snapshot' # required body => { what to restore } # optional );
Restore a named snapshot.
status()
$result = $e->snapshot->status( repository => 'repository', # optional snapshot => 'snapshot' | \@snapshots # optional );
Returns status information about the specified snapshots.
Query string parameters: error_trace, human, ignore_unavailable, master_timeout
Enrico Zimuel <enrico.zimuel@elastic.co>
This software is Copyright (c) 2022 by Elasticsearch BV.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
To install Search::Elasticsearch::Client::7_0, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Search::Elasticsearch::Client::7_0
CPAN shell
perl -MCPAN -e shell install Search::Elasticsearch::Client::7_0
For more information on module installation, please visit the detailed CPAN module installation guide.