Skip to content

4. Migration

LightJack05 edited this page Oct 13, 2024 · 1 revision

Migrating your data to a new Server

To migrate your data to a new server, it isn't enough to just move the database over. The encryption keys are stored separately, in the settings.json file.

To migrate your server installation, first install AnonKey on the new server following the installation guide, but dont start the server yet. Following that, move the following files form /opt/AnonKey on the old server to the new server, overwriting those on the new server in the process:

  • database.db - This contians the actual data you stored in AnonKey, including your Password hash etc.
  • settings.json - This contains the server configuration, including the signature key for current tokens and the server-wide pepper that is required for user signin.

Once you have moved the files over, start the AnonKey Service on the new server, and update your client configuration accordingly.

Clone this wiki locally