Multi-device sync
Using TraceTime on several machines and getting one unified view, with no account and no third party cloud, end to end encrypted: sync stays faithful to the local first principle of the rest of the app.
Work in progress. Sync works; it is the part I am reworking right now: the screens below and the pairing flow will still move before the final version. The merge model itself is stable. If something in the wizard looks confusing to you, this is exactly the moment to tell me.
Three states, not to be confused
Most questions about sync come from the same place: three distinct things taken for one. You go through them in this order.
- A channel is chosen. That is the means of transport. It does not yet mean two machines are talking to each other.
- This machine belongs to a group. You can perfectly well be in a group on your own: issuing an invitation creates the group, even if nobody has joined it yet.
- There is another machine. Only from there do "Connected" and "Reconnect" mean anything.
How it works, screen by screen
Everything happens in Settings → Sync, in a three step wizard: choose how the machines talk to each other, add the machines, done. You can link up to 4 machines, Macs and PCs mixed.
Step 1: how the machines talk to each other
Three channels, only one active at a time, and every machine in a group must use the same one: they only talk on the same channel. This is the choice that matters most, because it decides what you need for sync to run at all:
Only one channel active. Changeable later through "Change".
| Channel | Both machines on at the same time? | When to pick it |
|---|---|---|
| Server | No | The general case, and the one I recommend. The only one that works when the other machine is switched off. The relay only ever sees encrypted blocks. |
| Folder | No | If you already have a OneDrive, iCloud, Dropbox or NAS folder running, synced on both sides. Sync drops encrypted files in it, and your usual service carries them. |
| LAN | Yes, required, on the same network | If everything happens at home or in the office and you want nothing to leave the building. It is also the fastest. |
When you add a machine to an existing group, the wizard reuses the channel already in place and tells you so. The choice stays changeable afterwards, through "Change". On the Folder channel, "Continue" also waits until you have picked a folder: a "Choose a folder to continue" line stays there until you do.
Step 2, Server channel: the invitation
This is the simplest route, and the only one where nobody has to be present at the same time. You issue a code on one machine, you type it on the other whenever you like, within 24 hours. The inviting machine can be switched off in between.
Once only, to encrypt sync end to end
A single use code, valid for 24 h. The group is created now, and the other machine joins whenever it likes, with no need to switch it on at the same time.
From a machine that is already linked: Settings → Sync → "Invite a machine".
Two symmetrical actions: I invite, or I have received an invitation. This is now the only route on this channel: the old rendezvous requiring two machines switched on has been removed from it, since it demanded a lot and brought nothing extra.
- On the first machine: Settings → Sync → Server channel → Invite a machine.
- A code appears. Write it down straight away, it is never shown again.
- On the second machine: same channel, paste the code, Join.
- Switch the first machine back on if it was off. It recognises the newcomer on its own and sends the data over.
Write it down now: it cannot be shown again. You can close this window: the other machine will join whenever it likes, then switch this one back on so it recognises it.
The code is shown only once. That is deliberate: for 24 hours, it is a key into your group. If you lose it, issue another one. If somebody read it over your shoulder, cancel it.
Issued invitations stay visible until they expire, and that is the only way to close the door before the deadline:
Cancelling closes the door for good: the code will no longer work, even if somebody wrote it down.
Step 2, LAN and Folder channels: the rendezvous
On those two channels, one machine creates the group and the other one joins it. On LAN, both must be switched on at the same time: with no machine facing you, there is nowhere to drop anything. On the Folder channel the folder plays postman, so waiting is allowed.
Once only, to encrypt sync end to end
192.168.1.33:52123
Still nothing? On the other machine: Settings → Sync → "Link", or type the address above.
On LAN, the wizard finds the machine on the other side by itself: no address to type in the normal case. Both machines search and announce themselves at the same time, so pairing succeeds as soon as one of the two directions works. If discovery fails anyway (VPN, corporate network, virtual adapters), the address shown on this screen can be typed by hand on the other machine. The port changes at every start: you have to read it there, it cannot be guessed.
Step 3: checking that it really is your other machine
On the LAN and Folder channels, both screens then show the same code. You compare, and you confirm on both sides:
The same picture on both sides?
Twenty characters in five groups, computed from the keys of both machines. This is not a formality: it is the gesture that proves your machine is talking to your second machine, and that nobody has stepped in between. If the two codes differ, do not confirm. Until the other machine has confirmed on its side, "Continue" stays inactive.
Known typo in the application. The question still says "The same picture on both sides?" while what is shown is a code. There is no picture, no image and no emoji: it really is the string of characters you have to compare. The wording will be fixed.
Once confirmed, keys are exchanged, the group is formed, and nothing is ever transmitted in clear again. The last screen of the wizard sums up the linked devices and the state of encryption.
The Sync section in Settings
This is the screen you will see most often, and it only shows what actually exists. As long as nothing is configured, there is no "Last sync", no "Sync now" and no "Leave sync": there is nothing to sync and nothing to leave.
Share your days between your machines. End to end encryption.
Once two machines are linked, the section lists the devices, their state, and the date of the last reconciliation:
Share your days between your machines. End to end encryption.
| Button | What it does |
|---|---|
| Reconnect | Restarts network listening and lifts the back off delay. It never asks you to pair again. |
| Sync now | Forces a full reconciliation: sends the whole state again and repairs any drift. |
| rename | Changes the displayed name of a machine, so you can tell them apart. |
| revoke | Removes the other machine from the group, after confirmation. It is final: it can never come back with this identity. |
Between the two there is an in between state that surprises people: in a group, but alone. That is what you see after issuing an invitation nobody has used yet. "Connected" and "Reconnect" do not appear there, simply because there is nobody on the other side.
The three things that surprise people
Joining is not yet having your data
After typing a code, the new machine announces that it has joined the group. Its screen nevertheless stays empty until a machine that is already a member comes back online:
Your projects and your history will arrive as soon as one of your other machines is online. Nothing to do here. To give it a push: Settings → Sync → "Sync now".
That is normal, and it is the whole point of this route: the inviting machine was allowed to be switched off. Your projects and your history arrive as soon as it comes back on. Nothing to do in the meantime.
Totals from two machines do not add up
When two machines run in parallel, every minute belongs to only one of them: the one where the real activity happened. TraceTime measures the person, not the machines.
Visible consequence: a machine can show 20 minutes while it "recorded" 57. The difference is the minutes where both were on and the other one won. Without that arbitration, a 2 h 30 day worked on two machines side by side would be invoiced as 3 h 30. The aggregated total is correct, and it is the only figure that counts.
Leaving sync asks two questions
The first leaves the group: this device will no longer send or receive anything, but your days and your history stay intact.
The second additionally offers to delete the time recorded by the other machines. It is irreversible, and a backup is taken automatically beforehand. Answering "Cancel" to that second question still leaves sync: only the deletion is refused.
What has not been proven in the field yet
Beta honesty: the points below are written and tested in the lab, but never yet exercised in real conditions. If you try them, your feedback is worth its weight in gold.
- The invitation end to end: issue it, switch the machine off, join from the other one, switch back on.
- Reconnecting after a network adapter change or waking from sleep.
- Pairing through a shared folder asynchronously, with the two machines at different moments.
What is validated in real conditions: pairing over the local network, with automatic discovery.
The model: merging, never overwriting
Each machine has its own identity, and every write is stamped. Merging between machines combines three mechanisms:
- Union for recorded time: two machines never record the same segment, so merging means adding without ever overwriting.
- Last writer wins (LWW) for master data: projects, rules, clients, invoices, shared settings, icons. Private mode, launch at startup and the title bar stay specific to each machine. The reference time zone is merged with nothing lost.
- Tombstones for deletions (see below).
Merging is idempotent: replaying the same sync changes nothing further. You end up, on both sides, with exactly the same projects, rules, prices and invoices. Since two machines never record the same segment, merging stays a pure union: no double counting is possible.
End to end encryption
- Explicit pairing: both machines compare a code (SAS) shown on their two respective screens, to confirm that they really are talking to each other.
- Per device keys and a signed group directory: each machine has its own key pair, and the group of paired machines is described by a directory that is itself signed.
- Every data capsule leaves encrypted per recipient and signed: even a relay carrying the capsules can read nothing from them.
- Once the group is formed, clear text is refused: no silent fallback to unencrypted transport.
A validated day is never altered by sync: if time arrives afterwards on a day that has already been validated, it is inserted without overwriting what is there (lossless merge), together with a recap on the very first link between two machines.
What each channel really does
- Shared folder. Each machine drops its encrypted packets in the folder, and the other one picks them up whenever it likes. Your usual service (OneDrive, iCloud, Dropbox, NAS) does the transport of those packets.
- LAN. Automatic discovery of the machines on your network, with a choice of network adapter if several are detected (which avoids binding to the VPN by mistake). The first sync is paginated: it never freezes, even with a large history. The connection state is explicit (connected, searching, offline), and the link rights itself when the machine comes back on the network or wakes from sleep.
- Server. The relay is blind: it only sees encrypted blocks, never the content, and it exists only to pass them along. A beat every 60 seconds, complemented by live coordination. The "Sync now" button in Settings forces a full reconciliation, which makes it a self repairing safety net.
Live coordination
On the Server and Folder channels, as soon as the group has another machine, TraceTime also opens an outgoing connection to a small coordination service. Your machines use it to signal a return, ask each other whether the other one worked during a gap, and request a sync without waiting for the next beat. It is off on the LAN channel: there, nothing leaves your place.
- End to end encrypted. Each message is encrypted for its recipients and signed, like the capsules. The service passes them along without being able to read them and writes nothing to disk. It sees the identifier of the sending machine, not what it says.
- Your data does not go through it. It keeps travelling over your channel.
- If it does not answer, everything works as before. Settings say so ("Real-time coordination: unavailable"), and your data keeps syncing.
Settings can also show "Your MacBook said it was in use at 14:32; its data has not arrived yet.", or report a clock more than 30 seconds off, naming the machine concerned. Both lines come from this coordination.
Breakdown and peer status
As soon as there are at least two machines, the "Today" card gains more: it shows the time breakdown per machine, the state of each peer (current, connected, asleep since a given time) and a dot showing how long ago sync happened. The three actions on the card do not change: Sort my day, End my day, Private mode. A banner warns you if a day was closed from the other machine.
When the connection comes back
A machine can lose contact: network down, computer asleep, WiFi change, back at the office on a cable. TraceTime goes looking for the link on its own, with nothing to click, in five situations:
- you arrive on the current day;
- you come back to the window after leaving it aside;
- the computer wakes from sleep;
- you unlock your session;
- the network adapter changes address, on the LAN channel.
The Reconnect button is still there to force the search by hand, but it is no longer the only way to find your machines again.
Why this mattered. A machine that could not be reached was only retried once every five minutes. Changing screen and coming back triggered no search at all: the "offline" display was accurate, but nothing went looking for the connection. You had to click.
A clean ending
A machine that locks, goes to sleep or shuts down cleanly pushes a marker into its data. On the other machines it then shows as "asleep since HH:MM" ✓ (neutral), rather than a worrying amber "last data…", and the closing recap and the freshness banner are skipped.
Careful. An abrupt shutdown (power cut, crash) does not lay that marker: the uncertainty stays honestly on display, rather than wrongly claiming everything is in sync.
The "Sync" button returns a verdict
Never again a click with no visible effect:
- during: "Syncing…";
- done: a green ✓ message ("everything is here", or "X has sent nothing more recent, probably switched off or asleep") followed by "Carry on sorting";
- sync point unreachable: it says so honestly, with a Retry button;
- on the local network, no other machine found: "Nothing was exchanged", the search goes on, and it is not presented as a success;
- send refused by the server: that is something other than an unreachable server, and it is worded differently. No Retry button is offered, because the same attempt would fail identically.
Late time on a validated day
Unfiled time can turn up after the fact on a day that has already been validated. The "New time has arrived…" banner only fires if two conditions are met at once: that time comes from another device, and the day can still be reopened. It then offers two buttons:
- Ignore this time: sets it aside, whatever its origin;
- Reopen to sort →: reopens the day, as from the Summary (see Validating a day).
Everything else is set aside silently by a self healing sweep (an excluded marker, kept in the database but never displayed): a day erased by retention, or a local leftover from a recalculation artefact (single machine only, on a segment recorded before validation). On several machines, TraceTime never sets anything aside silently: unsorted time from another machine would otherwise be destroyed with no recourse. A validated day stays correct: it is never counted again, and time set aside also leaves the "Active time" on display.
Breaks across machines (the single human model)
A break is only real where no machine is active: the ghost breaks of a machine left idle are eclipsed by the activity of the other one. Fragments under 60 seconds are set aside, so that micro gaps in sampling create neither 0 minute breaks nor false breaks straddling real work. And a gap bitten into by another machine's activity is only a break from your detection delay upward, except for a decision to stop: locking a machine or putting it to sleep right after working on it counts from 60 seconds.
The break question belongs to the machine you come back to, and goes out within two minutes of your return. Otherwise, the break waits for you in Sorting.
Synchronised deletions
Deleting a rule, an exclusion, an invoice or a blank entity (see archive vs delete) lays a tombstone: the row stays in the database, marked deleted, and travels like any normal update. The deletion crosses sync instead of the entity coming back to life from another machine at the next reconciliation.
Importing also tolerates unknown columns sent by a newer peer: mixed versions of the app can coexist while an auto update rolls out across machines.
See also: Detected breaks for the single machine logic, and Updates for version management.