Migrating ManicTime Server

Before migration
Install OS on the new machine. If you are using MS SQL or PostgreSQL and you will also migrate the database server, then also install the database server.

1. Stop the server


Windows
Go to where ManicTime Server is installed (on Windows by default in Program files (x86)/ManicTime Server), open command prompt and type:
ManicTimeServer stop
Linux/Mac
stop ManicTimeServer process

2. Migrating the database (skip if you are using SQLite)


MS SQL or PostgreSQL
If database is on another machine and you would still like to use the same database, you can skip this step. The new server will continue using the same databases.

If you will setup a new database server as well:
2.1 make a backup of both ManicTimeCore and ManicTimeReports database.
2.2 restore them on the new machine
2.3 create a user on the database server which has owner access for both databases. This user will be used in connection string.

3. Migrating the server


3.1 Install ManicTime Server on the new machine.
3.2 Copy ManicTime Server data folder from the old machine to the new one.
On Windows this folder by default is in
c:\ProgramData\ManicTime\Server\Data\
On other OSs or if you used .zip on Windows, this folder should be where ManicTimeServer.exe is, subfolder Data.

Copy it to the same location on the new machine.

3.3 Copy data folder
In Data folder, there is a file ManicTimeServerSettings.json. If you are using MS SQL or PostgreSQL, open it and check if connection strings are ok.
Do they point to the correct database?
Does the user used in connection string have sufficient rights on the server (access to ManicTimeCore and ManicTimeReports database)?

3.4 Start the server
Windows
Go to where ManicTime Server is installed (on Windows by default in Program files (x86)/ManicTime Server), open command prompt and type:
ManicTimeServer start

Linux/Mac
run ManicTimeServer in folder where you installed ManicTime

Feedback and Knowledge Base