How do I backup Matomo data and files?
To backup Matomo:
- Regularly backup the Mysql database containing Matomo (Piwik) tables (eg. using an existing Mysql backup script)
- Regularly backup the file
piwik/config/config.ini.php
- Regularly backup any Plugin you may have installed from the Marketplace, stored in
piwik/plugins/*
folder
To restore a Matomo backup:
- Import the Mysql backup data in a new Mysql database you have created
- Download the latest version of Matomo, unzip and upload
- Copy the file config.ini.php from the backup into your new piwik setup. You might have to edit the database connection settings in the file if they have changed.
- Copy any Third party Plugin installed from the Marketplace from the backup (or download from the marketplace the latest version of these plugins) and copy them into your new piwik setup.
- Visit Matomo and check that everything is working correctly!