Meilisearch Cloud does not support snapshots.
Scheduling periodic snapshots
It is good practice to create regular backups of your Meilisearch data. This ensures that you can recover from critical failures quickly in case your Meilisearch instance becomes compromised. Use the--schedule-snapshot
configuration option to create snapshots at regular time intervals:
/snapshots
. Meilisearch will then create a new snapshot every 24 hours until you terminate your instance.
Meilisearch automatically overwrites old snapshots during snapshot creation. Only the most recent snapshot will be present in the folder at any given time.
In cases where your database is updated several times a day, it might be better to modify the interval between each new snapshot:
If you need to generate a single snapshot without relaunching your instance, use the
/snapshots
route.Starting from a snapshot
To import snapshot data into your instance, launch Meilisearch using--import-snapshot
:
For security reasons, Meilisearch will never overwrite an existing database. By default, Meilisearch will throw an error when importing a snapshot if there is any data in your instance.You can change this behavior by specifying
--ignore-snapshot-if-db-exists=true
. This will cause Meilisearch to launch with the existing database and ignore the dump without throwing an error.