Viewing Backup Files List

About this task

You can view the list of backup files in a repository using the _all endpoint.

To view the list of backup files

Procedure

  1. Ensure your Elasticsearch cluster is up and running.
  2. View the backup files list using the following command:
    GET http://es-host:es-port/_snapshot/repo-name/_all

    In this command, replace es-host and es-port with the hostname and port of your Elasticsearch cluster. Replace repo-name with the name of your backup repository.

    A sample command to view the backup files list is as follows:
    curl -s -X GET http://es-host:es-port/_snapshot/repo-name/_all

    In this example:

    • The Elasticsearch cluster is assumed to be running on es-host with port es-port.
    • The command retrieves the list of snapshots stored in the repo-name respository.

    Review the list of backups to understand which snapshots exist in the repository. Use this information to manage and monitor your backups effectively, such as verifying completion status, checking indices included, and identifying any failed backups that may require attention.