Beta version: The Migration feature is currently in beta. As such it may contain bugs, or may not work as expected. Please report any issues you encounter or any other feedback back to us.
Lets you copy a Matomo Measurable (Website, Mobile App, ...) including all tracked raw data and generated reports from one Matomo instance to another Matomo instance.
Before executing the migration command we always recommend to make a backup of the target database and ideally also test
it first with the
dry-run flag (dry-run can take a long time as well and will give you an idea of how long migration
To start a migration execute the
migration:measurable command, example:
./console migration:measurable --source-idsite=1 --target-db-host=192.168.1.1 --target-db-username=root --target-db-password=secure --target-db-name=piwik2
Optional parameters are:
--target-db-prefix=piwik_ --target-db-port=3306 --skip-logs --skip-archives --dry-run --disable-db-transactions
Please note that the migration can take a while depending on the amount of data that needs to be copied.
No data from the original Matomo instance will be deleted, only new data will be added to the new Matomo instance.
No premium feature data is currently being migrated.