I’m considering moving Piwik to a new server without losing any visit data. Here is the process that I plan to use:
Install Piwik on the new server.
Export the MySQL database from the old server (users and permissions and site tables).
Import the database records into the new server.
Change the Piwik JavaScript on tracked websites.
Export the MySQL database from the old server (statistics logger tables).
Import the database records into the new server.
If the primary keys (piwik_log_visit.idvisit, piwik_log_action.idaction, piwik_log_link_visit_action.idlink_va) on the new server are set to begin at a value higher than the highest values of those keys on the old server, should this process be expected to work? Are there any other issues that should be of concern?