# Roll back to Lotus markets service process

{% hint style="warning" %}
Before you begin migration from Lotus markets service process to Boost, make sure you have a backup of your Lotus repository, by following the [Lotus documentation](https://lotus.filecoin.io/storage-providers/operate/backup-and-restore/).\
\
You can also do a full backup of the Lotus markets repository directory.
{% endhint %}

1. If you haven't made any legacy deals with Boost:
   1. Stop `boostd`&#x20;
   2. Run your `lotus-miner` `markets` service process as you previously did<br>
2. If you have made new legacy deals with Boost, and want to migrate them back:
   1. Stop `boostd`
   2. Copy the `dagstore` directory from `boost` repository to `markets` repository.
   3. Export Boost deals datastore keys/values:\
      `lotus-shed market export-datastore --repo <repo> --backup-dir <backup-dir>`\
      \
      `Wrote backup file to <backup-dir>/markets.datastore.backup`
   4. Import the exported deals datastore keys/values from `boost` to `lotus markets`:\
      `lotus-shed market import-datastore --repo <repo> --backup-path <backup-path>`\
      \
      `Completed importing from backup file <backup-path>`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://boost.filecoin.io/v1/upgrade-from-lotus-to-boost/roll-back-to-legacy-markets.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
