Search...apshot(3pm)
πΎ Search::Elasticsearch::Client::7_0::Direct::Snapshot
okay bestie, you know that page you keep landing on in the 3pm section β yes, the one with the truncated name that looks like Search...apshot(3pm)? That's this one. Say hi to the module that handles all your backup business. π
β¨ NAME β¨
Search::Elasticsearch::Client::7_0::Direct::Snapshot β literally a whole client for managing snapshot/restore. Backups, bestie. The "oh no I deleted production" insurance. π«Ά
πΈ VERSION πΈ
version 7.715
π¦ DESCRIPTION π¦
This module hands you methods to manage snapshot/restore, aka backups. It can:
- create, get and delete your configured backup repositories
- create, get, delete and restore snapshots of your whole cluster or of individual indices
It does Search::Elasticsearch::Role::Client::Direct. slay.
π METHODS π
π
create_repository()
$e->snapshot->create_repository(
repository => 'repository', # required
body => { defn } # required
);
Create a repository for backups. Your little storage closet, but make it official. β¨
Query string parameters:
"error_trace""human""master_timeout""timeout""verify"
See the "snapshot/restore docs" <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshot.html> for more information.
π get_repository()
$e->snapshot->get_repository(
repository => 'repository' | \@repositories # optional
);
Retrieve existing repositories. It's giving "let me see what we're working with". π
Query string parameters:
"error_trace""human""local""master_timeout"
See the "snapshot/restore docs" <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshot.html> for more information.
π§ verify_repository()
$e->snapshot->verify_repository(
repository => 'repository' # required
);
Verify existing repository. vibe check on your backup closet, no cap. β
Query string parameters:
"error_trace""human""master_timeout""timeout"
See the "snapshot/restore docs" <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshot.html> for more information.
π delete_repository()
$e->snapshot->delete_repository(
repository => 'repository' | \@repositories # required
);
Delete repositories by name. okay so this one removes them β be so serious when you call it, bestie. π
Query string parameters:
"error_trace""human""master_timeout""timeout"
See the "snapshot/restore docs" <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshot.html> 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. main character moment for your data. π
Query string parameters:
"error_trace""human""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:
"error_trace""human""ignore_unavailable""master_timeout""verbose"
See the "snapshot/restore docs" <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshot.html> for more information.
π delete()
$e->snapshot->delete(
repository => 'repository', # required
snapshot => 'snapshot' # required
);
Delete snapshot in the named repository. gone, reduced to atoms. π (fr fr, there's no undo button here.)
Query string parameters:
"error_trace""human""master_timeout"
See the "snapshot/restore docs" <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshot.html> for more information.
π₯ restore()
$e->snapshot->restore(
repository => 'repository', # required
snapshot => 'snapshot' # required
body => { what to restore } # optional
);
Restore a named snapshot. the comeback arc we've all been waiting for. π«Ά
Query string parameters:
"error_trace""human""master_timeout""wait_for_completion"
See the "snapshot/restore docs" <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshot.html> for more information.
π¦ status()
$result = $e->snapshot->status(
repository => 'repository', # optional
snapshot => 'snapshot' | \@snapshots # optional
);
Returns status information about the specified snapshots. the "are we there yet" method. π
Query string parameters:
"error_trace""human""ignore_unavailable""master_timeout"
See the "snapshot/restore docs" <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshot.html> for more information.
π AUTHOR π
Enrico Zimuel <enrico.zimuel@elastic.co>
π COPYRIGHT AND LICENSE π
This software is Copyright (c) 2021 by Elasticsearch BV.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
and that's the whole page, bestie! π this little icon was built againstperl v5.32.1and last got its glow-up on2021-10-23β mwah, go back up your cluster now. β¨π«Ά
π¦ where this page comes from
- ubuntu jammy: libsearch-elasticsearch-perl 7.715-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms