Dumps

    To create a dump of your dataset, you need to use the appropriate HTTP route: . Using that route will trigger a dump creation process. Creating a dump is an asynchronous task that takes time based on the size of your dataset. A dump uid (unique identifier) is returned to help you track the process.

    1. client.createDump()
      1. $client->createDump();
      1. client.create_dump

      The above code triggers a dump creation process.

      1. curl -X GET 'http://localhost:7700/dumps/20201101-110357260/status'
        1. client.get_dump_status('20201101-110357260')
        1. results, error := client.Dumps().GetStatus("dump-uid")
        1. client.get_dump_status("20201101-110357260").await.unwrap();

        After your dump creation process is done, the dump file is created and added in the dump folder. By default, this folder is /dumps at the root of your MeiliSearch binary, but this can be customized. Note that if your dump folder does not already exist when the dump creation process is called, MeiliSearch will create it.

        Once you have exported a dump, which is a .dump file, you are now able to use that dump to launch MeiliSearch. As the data contained in the dump needs to be indexed, the process will take some time to complete. Only when the dump has been fully imported will the MeiliSearch server start, after which you can begin searching through your data.

          See here for more dumps options

          Dumps are used to restore your database after MeiliSearch updates or to communicate your database to other instances of MeiliSearch (e.g. running on different servers) without having to worry about their respective versions.