Search...apshot(3pm)
π Search::Elasticsearch::Client::1_0::Direct::Snapshot π
okay so. bestie. this is a Perl module β a client for managing snapshot/restore, from the Search::Elasticsearch::Client::1_0::Direct family. it lives in the User Contributed Perl Documentation section of your man pages, so that's the manual we're vibing in. π«Ά
β¨ VERSION β¨
version 6.81 β yes she's got a version number, she's official. π
πΈ 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.
so likeβ¦ it's the backup bestie. it makes repos, it inspects them, it yeets them, and it does the same for snapshots of your whole cluster or just some lil indices. everything is organized. everything is cute. nothing is lost. π
also it does Search::Elasticsearch::Role::Client::Direct β that's the role it's consuming, iykyk. π
π METHODS π
π create_repository()
$e->snapshot->create_repository(
repository => 'repository', # required
body => { defn } # required
);
Create a repository for backups. π¦β¨
Query string parameters:
master_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. like, show me what repos I already have, bestie π΅οΈβοΈ
Query string parameters:
localmaster_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 repo, basically β¨
Query string parameters:
master_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. goodbye, repo ππ
Query string parameters:
master_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. πΈ main character moment fr fr
Query string parameters:
master_timeoutwait_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" <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. ποΈ
Query string parameters:
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. bringing it BACK, the comeback era π¦π₯
Query string parameters:
master_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. β³ cute lil progress report
Query string parameters:
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> β ty king π«Ά
π 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
okay that's the whole page, bestie, no skips no skimming. π this gem is perl v5.36.0, dated 2022-08-28, from the User Contributed Perl Documentation section. slay, go make some backups, periodt. β¨ππ¦
π¦ where this page comes from
- ubuntu noble: libsearch-elasticsearch-client-1-0-perl 6.81-2 Β· Apache-2.0
- ubuntu resolute: libsearch-elasticsearch-client-1-0-perl 6.81-2 Β· Apache-2.0
- ubuntu stonking: libsearch-elasticsearch-client-1-0-perl 6.81-2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms