Sync & Conflicts
Daylight stores tasks as files, which means you can sync them with any file synchronization tool. We recommend Syncthing for its privacy, reliability, and lack of cloud dependency.
Why it matters
Section titled “Why it matters”- Multi-device access. Work on tasks from your phone, laptop, or desktop.
- No account required. Syncthing connects devices directly—no server, no login.
- Conflict visibility. When edits collide, you see exactly what happened and can resolve it yourself.
Recommended sync setup
Section titled “Recommended sync setup”The model: one folder, multiple replicas
Section titled “The model: one folder, multiple replicas”┌─────────────┐ Syncthing ┌─────────────┐│ Phone │ ←───────────────→ │ Laptop ││ /Tasks/ │ │ ~/Tasks/ │└─────────────┘ └─────────────┘ ↑ ↑ │ Syncthing │ └───────────────────────────────┘ │ ┌───────────────┐ │ Desktop │ │ ~/Tasks/ │ └───────────────┘Each device has a complete copy of your tasks. Changes sync automatically when devices are connected.
Setup steps
Section titled “Setup steps”-
Install Syncthing on all devices
- Linux:
flatpak install syncthingor via package manager - Android: Install from F-Droid or Play Store
- See syncthing.net for other platforms
- Linux:
-
Create a shared folder for your tasks
- In Syncthing, add a new folder pointing to your task directory
- Give it a recognizable ID like
tasks
-
Connect your devices
- Each device has a unique Device ID (Settings → Show ID)
- Add each device to the others using this ID
- Share the tasks folder with all devices
-
Point Daylight to the synced folder on each device
- Open Daylight Settings
- Set the data path to your Syncthing folder
Recommended Syncthing settings
Section titled “Recommended Syncthing settings”| Setting | Recommendation | Why |
|---|---|---|
| Folder Type | Send & Receive | Full two-way sync |
| File Versioning | Simple, keep 5 versions | Recovery from mistakes |
| Sync Interval | 30-60 seconds | Balance between freshness and battery |
| Ignore Patterns | .DS_Store, Thumbs.db | Skip OS metadata files |
Understanding conflicts
Section titled “Understanding conflicts”A conflict happens when the same file is modified on two devices before they sync. This is normal and expected—not a bug.
What a conflict looks like
Section titled “What a conflict looks like”Syncthing creates a conflict file with a timestamp:
Tasks/├── weekly-review.md # Current version└── weekly-review.sync-conflict-20260128.md # Conflicting versionDaylight sees both files as separate tasks. You’ll notice a duplicate in your task list.
Why conflicts happen
Section titled “Why conflicts happen”Common scenarios:
-
Offline edits. You edit a task on your phone while your laptop is asleep, then edit the same task on your laptop before they sync.
-
Rapid edits. You make changes faster than Syncthing can sync them.
-
Completing on two devices. You mark a task complete on your phone, but your laptop (which hasn’t synced yet) also shows it as active.
[!note] Conflicts are more likely with recurring tasks because multiple devices might try to complete the same instance.
Resolving conflicts safely
Section titled “Resolving conflicts safely”Step-by-step resolution
Section titled “Step-by-step resolution”-
Identify the conflict files
- Look for files with
.sync-conflict-in the name - Or look for duplicate tasks in Daylight
- Look for files with
-
Compare the versions
- Open both files in a text editor
- Note what’s different (usually
status,scheduled, orrecurrence.instances)
-
Decide which version to keep
- Usually the most recent edits are what you want
- For recurring tasks, you may need to merge instance histories
-
Merge or replace
- Copy any needed changes to the main file
- Delete the conflict file
-
Wait for sync
- Give Syncthing time to propagate your changes
- Check that other devices show the resolved version
Conflict resolution checklist
Section titled “Conflict resolution checklist”- Found all conflict files (check for
.sync-conflict-pattern) - Compared versions side-by-side
- Preserved any completed instances from both versions
- Deleted conflict files after merging
- Verified resolution synced to other devices
Best practices
Section titled “Best practices”Preventing conflicts
Section titled “Preventing conflicts”- Pause before switching devices. Give Syncthing a moment to sync before editing on another device.
- Check sync status. Syncthing shows a green checkmark when folders are in sync.
- Complete tasks on one device. Pick your phone or laptop for checking off tasks, not both.
Folder structure
Section titled “Folder structure”Keep your task folder simple:
Tasks/├── task-1.md├── task-2.md└── task-3.mdAvoid nested folders unless you have a specific need—they add complexity without much benefit in Daylight.
Backups
Section titled “Backups”Even with Syncthing’s file versioning, keep backups:
- Enable Syncthing’s Simple File Versioning (keeps old versions)
- Periodically copy your task folder to a backup location
- Consider git for version history if you’re comfortable with it
Troubleshooting
Section titled “Troubleshooting”Tasks not syncing
Section titled “Tasks not syncing”- Check Syncthing is running on both devices
- Verify devices are connected (green status in Syncthing)
- Check the folder is shared and set to “Send & Receive”
- Look for errors in Syncthing’s log
Duplicate tasks appearing
Section titled “Duplicate tasks appearing”This usually means conflict files exist:
- Search your task folder for
.sync-conflict-files - Resolve each conflict as described above
- The duplicates will disappear after deleting conflict files
”Conflict storm” (many conflicts at once)
Section titled “”Conflict storm” (many conflicts at once)”If you see dozens of conflicts:
- Stop editing on all devices
- Pick one device as the “source of truth”
- On that device, resolve all conflicts
- Wait for full sync to complete
- Verify other devices match
[!warning] Don’t delete files during a conflict storm—you might lose data. Resolve conflicts one at a time, waiting for sync between each.
Sync is slow
Section titled “Sync is slow”- Large task files (with many time entries) sync slower
- Archive completed tasks periodically to reduce file count
- Check your network connection and Syncthing’s bandwidth limits
Glossary
Section titled “Glossary”| Term | Definition |
|---|---|
| Replica | A copy of your task folder on a specific device |
| Conflict file | A file created when Syncthing can’t automatically merge changes |
| Source of truth | The device you trust to have the correct version (during conflict resolution) |
| File versioning | Syncthing’s feature that keeps old versions of changed files |
Related
Section titled “Related”- Getting Started — Initial setup including sync
- Task File Format — Understanding what’s in your task files
- Limitations — Why there’s no built-in cloud sync