[id='migrating-cache-stores_{context}']
= Migrating {brandname} cache stores
Run `StoreMigrator` to migrate data from one cache store to another.

.Prerequisites

* Get `infinispan-tools.jar`.
* Create a `migrator.properties` file that configures the source and target
cache stores.

.Procedure

* If you build `infinispan-tools.jar` from source, do the following:
+
. Add `infinispan-tools.jar` and dependencies for your source and target
databases, such as JDBC drivers, to your classpath.
. Specify `migrator.properties` file as an argument for `StoreMigrator`.

* If you pull `infinispan-tools.jar` from the Maven
repository, run the following command:
+
`mvn exec:java`
