Snapshots are exact copies of Meilisearch databases. They are often useful for periodical backups.
--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:
/snapshots
route.--import-snapshot
:
--ignore-snapshot-if-db-exists=true
. This will cause Meilisearch to launch with the existing database and ignore the dump without throwing an error.