To backup Piwik:

  1. Regularly backup the Mysql database containing Piwik tables (eg. using an existing Mysql backup script)
  2. Regularly backup the file piwik/config/config.ini.php

To restore a Piwik backup:

  1. Import the Mysql backup data in a new Mysql database you have created
  2. Download the latest version of Piwik, unzip and upload
  3. 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.
  4. Visit Piwik and check that everything is working correctly!