Dumps are data backups containing all data related to a Meilisearch instance. They are often useful when migrating to a new Meilisearch release.
A dump is a compressed file containing an export of your Meilisearch instance. Use dumps to migrate to new Meilisearch versions. This tutorial shows you how to create and import dumps.Creating a dump is also referred to as exporting it. Launching Meilisearch with a dump is referred to as importing it.
If you need to create a dump for reasons other than upgrading, contact the support team via the Meilisearch Cloud interface or the official Meilisearch Discord server.
The dump creation process is an asynchronous task that takes time proportional to the size of your database. Replace 1 with the taskUid returned by the previous command:
Copy
curl \ -X GET 'MEILISEARCH_URL/tasks/1'
This should return an object with detailed information about the dump operation:
All indexes of the current instance are exported along with their documents and settings and saved as a single .dump file. The dump also includes any tasks registered before Meilisearch starts processing the dump creation task.Once the task status changes to succeeded, find the dump file in the dump directory. By default, this folder is named dumps and can be found in the same directory where you launched Meilisearch.If a dump file is visible in the file system, the dump process was successfully completed. Meilisearch will never create a partial dump file, even if you interrupt an instance while it is generating a dump.
Since the key field depends on the master key, it is not propagated to dumps. If a malicious user ever gets access to your dumps, they will not have access to your instance’s API keys.
Depending on the size of your dump file, importing it might take a significant amount of time. You will only be able to access Meilisearch and its API once this process is complete.Meilisearch imports all data in the dump file. If you have already added data to your instance, existing indexes with the same uid as an index in the dump file will be overwritten.
Do not use dumps to migrate from a new Meilisearch version to an older release. Doing so might lead to unexpected behavior.