Operations

Backups & recovery

iDentiCal Sync is unusually forgiving about being wiped and reinstalled — almost everything can be re-derived from OpenDental and Google. This page covers what's actually worth backing up, what's safe to lose, and the exact steps for the two scenarios you'll most likely face.

Data path: C:\ProgramData\iDentiCalSync\

What to back up

The only iDentiCal-specific file worth backing up is your licence key. Everything else is either re-derivable or, in the case of OAuth tokens, deliberately bound to the machine it was created on and therefore not restorable.

File / dataWorth backing up?Why
Licence key Yes Activates the Software. Lose it and you'll need to email sales@identicalsync.com to retrieve it.
C:\ProgramData\iDentiCalSync\config\ (clinic config) Optional Saves five minutes of redoing target setup. Cannot be restored to a different machine — see DPAPI.
C:\ProgramData\iDentiCalSync\logs\ Only if asked by support Useful for diagnosing a specific incident; otherwise rotated automatically.
OAuth refresh tokens No Encrypted with a key derived from the machine and the LOCAL SYSTEM account. Not portable. Re-authorise on the new install.
Storing the licence key in your password manager alongside the practice's other software keys is the simplest backup strategy. The cloud-sync your password manager already does covers it.

What's safe to lose

If the entire iDentiCal data directory is wiped — by a Windows reinstall, ransomware, a disk failure — what you lose is exactly:

  • Five minutes of setup time (re-running the target wizard, signing in to each Google account).
  • Historical logs from before the wipe.

What you do not lose:

  • Calendar events. They live in Google Calendar; iDentiCal re-discovers events it created by their extendedProperties.private.identical_managed tag.
  • OpenDental data. iDentiCal never modifies OpenDental.
  • Patient data of any kind. iDentiCal stores none locally beyond the live appointment data it reads each cycle.

After a Windows reinstall (same machine)

This is the most common recovery path — Windows is reinstalled but the hardware is the same.

  1. Run the iDentiCal Sync installer from the downloads page.
  2. Enter your licence key when prompted.
  3. Run the setup wizard. Use the same MySQL connection details as before (these don't change).
  4. Add each sync target back, picking the same Google account and the same destination calendar for each.
  5. On the first sync cycle (within five minutes), iDentiCal re-discovers existing events. Future events stay in place, the next ~90 days are re-validated, and any drift between OpenDental and the calendar is corrected.

No duplicate events are created. The identical_managed tag plus a stable clinic-and-target ID let iDentiCal recognise its own past work.

Migrating to a new server

Same as a reinstall, with one extra consideration. If the new machine has a different name or hostname, the encrypted clinic configuration from the old machine won't decrypt on the new one — DPAPI ties the key to the machine. The recovery path is the same as for a fresh install:

  1. Move the OpenDental MySQL database to the new server as part of the OpenDental migration (this is an OpenDental operation, not an iDentiCal one).
  2. Install iDentiCal Sync on the new server.
  3. Enter your licence key.
  4. Run the setup wizard, point at the new MySQL location (usually still localhost:3306).
  5. Re-add sync targets.
  6. On the first sync, iDentiCal recognises existing calendar events and continues from there.
Don't run both old and new in parallel. If the old server is still up, pause sync on it before turning on the new one. Two iDentiCal installs writing to the same calendars at the same time will not duplicate events (they detect each other's events by tag), but the logs become much harder to reason about.

What iDentiCal touches on first run

Useful to know if you're configuring antivirus, EDR, or backup-exclusion rules. iDentiCal's file footprint:

C:\Program Files\iDentiCal Sync\        (program files, read-only after install)
C:\ProgramData\iDentiCalSync\
  ├── config\                            (clinic config, encrypted with DPAPI)
  ├── logs\                              (rolling daily logs)
  └── state\                             (sync cursors — re-derivable)

Windows Registry:
  HKLM\SYSTEM\CurrentControlSet\Services\iDentiCalSync   (Service definition)
  HKCU\Software\Microsoft\Windows\CurrentVersion\Run     (Tray app autostart per user)

The only directory you'd ever need in a backup is config\, and even that is optional — see the table at the top.

A note on DPAPI

iDentiCal encrypts on-disk secrets with the Windows Data Protection API. DPAPI's key is derived from the machine and, for the Service-side bits, the LOCAL SYSTEM account on that machine. This is good for security — an attacker who copies the config file off the disk cannot decrypt it elsewhere — and explains why you can't restore the config to a different machine: the encryption key isn't portable.

This is also why iDentiCal does not offer a "cloud backup" feature for clinic config. A cloud-restorable backup would require us to hold a portable key, which would weaken the at-rest story we currently have. Re-running the five-minute target wizard is the correct trade-off.

For any recovery scenario more complex than the two above, email support@identicalsync.com before you start — we can usually save you time by talking through the order of operations.