Skip to main content

How Sync Keeps Your Files Safe

Last updated 2026-11-13 · 5 min

Overview

Garnet Sync is built so that it never has to guess which of your files matters. When sync is about to replace or remove a file on your device, it keeps the old one first. When two devices changed different paragraphs of one note, it combines them. When they disagree about the same part, it keeps both.

This page covers paid Garnet Sync. Local-only use needs none of it.

What sync does before it changes a local file

  1. It reads the file again and checks that it is still what it scanned. If you edited it in the meantime, your edit stays. For a download, the other device's version is written beside it as a Conflict Copy. For a removal, your file stays and uploads again.
  2. It moves or copies the old file, of any type, into this device's Space Trash, marked "Replaced by sync" or "Deleted by sync". For notes and other items, it also keeps a Version.
  3. Only then does it replace or remove the file.

Every downloaded file is checked against what the other device uploaded before anything local is written from it. If it does not match, sync skips that file and tries again on the next run.

When sync cannot keep a copy

If the copy or the write fails, for example because the disk is full, sync leaves that file as it is. The Sync page shows "N files held back", Sync history says which files and why, and Sync tries again next time. Nothing is uploaded over the newer copy in the meantime.

When two devices changed the same file

For a Markdown note, sync compares both versions with the last version the two devices agreed on, paragraph by paragraph and property by property. If each device changed different paragraphs or properties, sync combines both edits into the note and writes no Conflict Copy. The note's last-edited time takes the later of the two. A merged note only ever holds text one of the devices wrote.

Before it saves the combined note, sync keeps this device's version in the Space Trash and as a "Saved before sync" version. The Sync page says how many notes it merged, Sync history lists each one as "Merged automatically", and Doctor's Sync section lists recent automatic merges (last 30 days). If the combined note is the same as this device's version, nothing changes on this device, so nothing is listed here. A merge never raises a conflict notification.

In every other case, sync keeps your file in place and writes the other device's version beside it as a Conflict Copy. It does not pick a winner. A Conflict Copy still appears when:

  • both devices changed the same paragraph or the same property, or added different text at the same place
  • sync can't find or check the last agreed version. Each device keeps its own copy of it, so this happens only when that copy is gone and the server no longer has the version either, for example because it was replaced more than 30 days ago
  • the device is on its first sync or in a Repair sync state pass
  • you edited the note while sync was running, or Garnet could not save your latest typing before sync started
  • the note has unusual formatting, such as the same paragraph written twice, a code block both devices edited, or properties sync can't read
  • the file is not a Markdown note

What sync never turns into a delete

A missing server record or a lost connection never deletes files on your device, and if a key cannot be unlocked, sync stops and leaves your files as they are. A file the server merely lacks stays on your device and uploads again. Only an explicit deletion from another device removes a file here, and the old copy goes to the Space Trash first.

Sync also checks this device's own file list before it acts on it. If Garnet can't read the Space folder, the list comes back empty, or more than half of the files in a Space of more than 20 synced files are missing, sync stops before it deletes anything and says why, instead of deleting those files on your other devices. Put the folder back, or delete files in smaller batches, then sync again. A file or folder Garnet can't read is left as it is and never synced away.

Sync ignore patterns

On the Sync page you can list patterns for files sync should leave alone. A pattern is part of your Space settings, and those settings sync, so your other devices pick it up on their next sync and then leave those files alone too. A device that has not received it yet keeps syncing the file.

An ignored file is left alone on the device that ignores it: sync does not upload it, download it, or delete it. Adding a pattern deletes nothing on any device, and the copy on the server stays as it was.

If you remove the pattern later, the side that changed in the meantime wins, and a change on both sides becomes a Conflict Copy. A file that was deleted on another device while you ignored it comes back, because Garnet keeps a file rather than delete it over a pattern change.

Connecting a device for the first time

The first sync of a device that has never synced its folder is Sync recovery mode. Garnet starts it by itself. It uploads nothing and deletes nothing. Every server file that does not match what the device holds, including a file the device lacks, arrives as a Conflict Copy beside your files instead of replacing them. A Collection's records file is the exception: its records are merged by record ID, and the old file on this device goes to the Space Trash first. Normal syncing follows once the device has a trusted starting point.

Repair sync state

Choose Repair sync state on the Sync page when Sync or Doctor asks for it, for example when a device's sync starting point is missing or no longer trusted. Repair adopts the server's record of your Space as the starting point, then runs one careful pass first. That pass downloads missing files, keeps your differing files in place with the other version beside them, uploads files only you have, and deletes nothing. Two kinds of file differ: Space settings take the other version, and a Collection's records file is merged by record ID. In both cases this device's old file goes to the Space Trash first. Normal syncing resumes after it.

If this device's key no longer opens your synced files

If you changed your passphrase or recovered access on another device, this device may still hold the old key. When its key cannot open the synced copy of your Space, sync stops before it changes anything and the Sync page says sync is paused. Your files on this device stay exactly as they were: nothing is uploaded, deleted, or replaced. Unlock your sync key again, or recover access with your recovery key, then choose Sync now.

Where to see what sync did

After each run the Sync page shows a result line with the number uploaded, downloaded, deleted, and in conflict. A merged note counts as downloaded, and a line below says how many notes were merged automatically. Recent sync conflicts lists the copies it wrote. When sync leaves files as they were, the status names them ("Left as they were: …"), up to five, and Doctor's Sync section lists every one.

For the full picture, open Settings, then Sync, scroll to Sync history, and choose Show history. It lists what sync replaced, deleted, or kept aside on this device, why, and where the old version went, with an "Old version in the Trash" button that opens the Trash page, and the path of the Conflict Copy as plain text. It also names the files sync left as they were, and says why: "Could not be read on this device", "Could not be downloaded", "Could not be verified", "Safety copy could not be saved", and similar. A folder Garnet can't read appears once a month as "Folder could not be read on this device" rather than once for every file in it. When another device deleted a file and you edited it on this device while sync was running, the line reads "Kept this device's edit" (reason "Edited on this device during sync"): your file stays and the same sync uploads it again, with the copy it kept in the Trash.

Sync history is kept as plain files in .garnet/sync-log/ on this device and never syncs. When it grows large, Garnet removes the oldest months, but not while the Trash still holds an old version one of those months points to. Doctor's Sync section keeps conflicts and held-back downloads for later. Doctor's Sync section also lists the files the last sync left as they were, as "Files sync keeps leaving as they were", so a hold that repeats does not go unnoticed.

Still need help?

Email support for private account or Space questions. Use Reddit only for public community discussion.

Contact support