Snapshots

    The /snapshot route allows you to create database snapshots. Snapshots are .snapshot files that can be used to make quick backups of Meilisearch data.

    Learn more about snapshots.

    Meilisearch Cloud and dumps

    Meilisearch Cloud does not support the /snapshots route.

    Create a snapshot

    POST/snapshots

    Triggers a snapshot creation task. Once the process is complete, Meilisearch creates a snapshot in the snapshot directory. If the snapshot directory does not exist yet, it will be created.

    Snapshot tasks take priority over other tasks in the queue.

    Learn more about asynchronous operations.

    Example

    curl \
      -X POST 'http://localhost:7700/snapshots'

    Response: 202 Accepted

    {
      "taskUid": 1,
      "indexUid": null,
      "status": "enqueued",
      "type": "snapshotCreation",
      "enqueuedAt": "2023-06-21T11:09:36.417758Z"
    }
    

    You can use this taskUid to get more details on the status of the task