Search...apshot(3pm)

πŸ“¦
version 6.81 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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_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. like, show me what repos I already have, bestie πŸ•΅οΈβ™€οΈ

Query string parameters:

  • 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 repo, basically ✨

Query string parameters:

  • 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. goodbye, repo πŸ’€πŸ‘‹

Query string parameters:

  • 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 fr fr

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" <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_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. ⏳ 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 🫢


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