Logseq Notes Lost After Sync Conflict? Fix
In this article
If your Logseq notes appear missing after a sync conflict, the data is usually not gone—it is likely in a conflict file or a hidden backup. This article explains how to recover lost notes, how Logseq's sync and file system work, and how to prevent future conflicts.
How Logseq Stores Notes
Logseq stores all notes as plain text Markdown or Org-mode files on your local disk. Each block is a line in a file, and each page is a separate file (e.g., my page.md). This design means your notes are not locked inside a proprietary database—you can open them with any text editor. When you use Logseq Sync (the official paid service) or a third-party sync tool like Dropbox, Google Drive, or Syncthing, those files are synchronized across devices.
Because Logseq uses local files, sync conflicts happen when two devices edit the same file before syncing. The sync tool then creates a conflict copy, often with a name like page (conflicted copy 2024-03-15).md. Your original edits are not deleted; they are just split into separate files.
Why Sync Conflicts Happen
Conflicts occur when the sync tool cannot merge two different versions of the same file. Common triggers include:
- Editing the same page on two devices while offline or with sync paused.
- Using a sync tool that does not support real-time file locking (most do not).
- Having Logseq open on two devices at the same time and making changes before sync finishes.
- Using a network drive (like a NAS) with delayed write caching.
Even with Logseq's official sync, conflicts can occur if you use the app on mobile and desktop simultaneously without giving sync time to complete.
How to Recover Lost Notes After a Conflict
If you suspect notes are missing after a sync conflict, follow these steps in order:
- Check for conflict files – In your Logseq folder (usually
~/Logseqor the folder you chose), look for files with "conflicted" or "conflict" in the name. Open them in a text editor to find your missing content. - Search the entire folder – Use your operating system's file search (or
grepon Linux/macOS) for a unique phrase from the missing note. The content may be in a file with a different name. - Check the trash – Some sync tools move conflicting files to a trash or archive folder. Look in the trash of your sync tool (e.g., Dropbox's trash on the web).
- Look for backup files – Logseq itself does not create automatic backups by default, but if you have a backup service (Time Machine, File History, etc.), restore the entire Logseq folder from a point before the conflict.
- Use the built-in undo – If you have Logseq open, try
Ctrl+Z(orCmd+Z) immediately after noticing the loss. This only works if the change is recent.
Once you find the conflict file, manually merge the content into your main file. Copy the missing blocks and paste them where they belong. Then delete the conflict file to avoid confusion.
Preventing Future Conflicts
To reduce the chance of sync conflicts:
- Close Logseq on one device before editing on another. Wait for sync to finish (check the sync icon) before switching.
- Avoid editing the same page on two devices within a short time window. If you must, make small edits and let sync complete between them.
- Use Logseq's official sync if you need real-time collaboration. It is designed for Logseq's file structure and handles conflicts better than generic file sync.
- Disable sync on mobile when not needed – Mobile sync can be aggressive and cause conflicts if the app is left open.
- Set up regular backups – Use a tool that keeps version history (like Dropbox's version history or a local backup script). This gives you a safety net even if a conflict deletes a file.
What to Do If Notes Are Truly Gone
If you cannot find any conflict file or backup, the notes may be permanently lost. However, before giving up:
- Check if your sync tool has version history (e.g., Dropbox's "Version history" on the web). You can restore an earlier version of the entire folder.
- If you use GitHub or Git for your Logseq folder, check the commit history for the missing content.
- If you use Logseq Sync, check the web version of your graph (logseq.com) – it may have an older copy.
If nothing works, you may need to recreate the notes from memory. To avoid this in the future, set up an automated backup (e.g., a cron job that copies the folder to an external drive) and test it regularly.
Common Misconceptions About Logseq Sync
"Logseq Sync deletes my notes." – Logseq Sync does not delete notes by itself. However, if you log out or clear local data, the local files may be removed before sync finishes. Always ensure sync is complete before logging out.
"Conflict files are safe to delete." – Only delete a conflict file after you have verified that the main file contains all the content. Otherwise, you lose the conflicting edits.
"Using a NAS or network drive is safe." – Network drives can cause conflicts because they do not always support file locking. It is better to use a local folder and sync it with a tool that handles conflicts well.
Frequently Asked Questions
Where are Logseq conflict files stored?
Conflict files are stored in the same folder as the original file, usually in your Logseq graph's pages and journals folders. They are named with "conflicted" or "conflict" in the filename, e.g., 2024-03-15 (conflicted copy 2024-03-16).md.
Can I recover a deleted Logseq page?
Yes, if you have a backup or version history. Check your sync tool's trash or version history. If you use Git, you can restore from a previous commit. Without any backup, recovery is unlikely.
Does Logseq have a built-in backup?
No, Logseq does not have a built-in backup feature. You must set up your own backup, either manually or with a third-party tool.
Why does Logseq create conflict files so often?
Conflicts are more likely when you use generic file sync (like Dropbox) with Logseq because Logseq saves files frequently. The more often you edit, the higher the chance of a conflict if sync is delayed.
Is it safe to use iCloud Drive with Logseq?
iCloud Drive can work, but it has known issues with file locking and may cause conflicts. Many users report problems. If you use iCloud, make sure to wait for sync to finish and avoid editing on multiple devices simultaneously.
Can I use Logseq Sync and a third-party sync at the same time?
It is not recommended. Using two sync tools on the same folder can cause conflicts and corruption. Stick to one sync method.