Search...apshot(3pm)
πΎ Search::Elasticsearch::Client::8_0::Direct::Snapshot πΎ
okay so bestie, welcome to the Search...apshot(3pm) page β that's the manpage name, yes it's abbreviated like that, don't @ me β straight out of the User Contributed Perl Documentation. grab a snack, we're talking about backups. π
β¨ VERSION β¨
version 8.12 β that's the vibe check, and she passed. π
πΈ DESCRIPTION πΈ
This module is your girl for managing snapshot/restore, which is just a fancy way of saying backups, bestie. She can:
- create, get and delete configured backup repositories
- create, get, delete and restore snapshots of your whole cluster or individual indices
It does Search::Elasticsearch::Role::Client::Direct. iconic behavior honestly. π
π¦ METHODS π¦
create_repository()
$e->snapshot->create_repository(
repository => 'repository', # required
body => { defn } # required
);
Create a repository for backups. that's the little home where your snapshots live, no cap. π
Query string parameters:
error_tracehumanmaster_timeouttimeoutverify
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. peek at what's already there. π
Query string parameters:
error_tracehumanlocalmaster_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. like a vibe check but for your backup home. β
Query string parameters:
error_tracehumanmaster_timeouttimeout
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. bye bestie, you won't be missed (jk, please double check this one π«£).
Query string parameters:
error_tracehumanmaster_timeouttimeout
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. this is the moment. the main character moment. πΈβ¨
Query string parameters:
error_tracehumanmaster_timeoutwait_for_completion
get()
$e->snapshot->get(
repository => 'repository' # required
snapshot => 'snapshot' | \@snapshots # required
);
Retrieve snapshots in the named repository. so you can see all your little babies. π₯Ή
Query string parameters:
error_tracehumanignore_unavailablemaster_timeoutverbose
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. poof. gone. π
Query string parameters:
error_tracehumanmaster_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. bringing it BACK, glow-up edition. π
Query string parameters:
error_tracehumanmaster_timeoutwait_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. notice how this one returns a result β she's giving, and she's taking. π
Query string parameters:
error_tracehumanignore_unavailablemaster_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> β the icon, the legend, the moment. π«Ά
π COPYRIGHT AND LICENSE π
This software is Copyright (c) 2024 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 beauty ships with perl v5.38.2, dated 2024-02-04 β so go forth, back up your stuff, and slay. β¨πΈ no cap, fr fr. π¦
π¦ where this page comes from
- debian trixie: libsearch-elasticsearch-perl 8.12-1 Β· Apache-2.0
- ubuntu noble: libsearch-elasticsearch-perl 8.12-1 Β· Apache-2.0
- ubuntu resolute: libsearch-elasticsearch-perl 8.12-1 Β· Apache-2.0
- ubuntu stonking: libsearch-elasticsearch-perl 8.12-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms