# Dumps

The dumps route allows the creation of database dumps. Dumps are .tar.gz files that can be used to launch MeiliSearch. Dumps are compatible between MeiliSearch versions.

Creating a dump is also referred to as exporting it, whereas launching MeiliSearch with a dump is referred to as importing it.

During a dump export, all indexes of the current instance are exported—together with their documents and settings—and saved as a single .tar.gz file.

During a dump import, all indexes contained in the indicated .tar.gz file are imported along with their associated documents and settings. Any existing index with the same uid as an index in the dump file will be overwritten.

Dump imports are performed at launch using an option. Batch size can also be set at this time.

# Create a Dump

POST
/dumps

Triggers a dump creation process. Once the process is complete, a dump is created in the dumps folder. If the dumps folder does not exist yet, it will be created.

# Example

# Response: 202 Accepted

{
  "uid": "20200929-114144097",
  "status": "processing"
}

# Get dump status

GET
/dumps/:dump_uid/status

Get the status of a dump creation process using the uid returned after calling the dump creation route.
The returned status could be:

  • processing: Dump creation is in progress.
  • dump_process_failed: An error occured during dump process, and the task was aborted.
  • done: Dump creation is finished and was successful.

# Example

# Response: 200 Ok

{
  "uid": "20200929-114144097",
  "status": "done"
}