Spontaneous deletion of the currently edited `.md` file (Windows 11 + iCloud)

Good morning,
I am experiencing a serious issue while working in Obsidian.

1. Issue A – Critical (for the past several weeks)

While editing any note (e.g., Name.md), the file:

  • disappears from the editor,
  • ceases to exist in its original form,
  • and is replaced by three numbered copies:
Name(1).md  
Name 2.md  
Name 3.md

Each subsequent version contains slightly more content than the previous one; however, even the latest version (Name_3.md) is missing the last few words I typed, which I then have to re-enter manually.
This occurs every few minutes.
It is highly disruptive and poses a serious risk of data loss.

2. Issue B – Persistent (for approximately 2 years)

System files are being duplicated repeatedly:

  • \.obsidian\workspace.json
    → over 1000 copies existed last week (no new duplicates in the past week)
  • \.obsidian\plugins\recent-files-obsidian\data.json
    → currently approximately 300 copies
    I regularly delete the redundant files to prevent the accumulation of thousands of duplicates.

3. Additional Symptoms (for approximately 1 year)

Upon launching Obsidian:

  • notes that were open at the time of closing display “File not found,”
  • after approximately one minute, they become accessible again.

4. Environment

  • Synchronization via iCloud
  • Windows 11 (Obsidian running nearly continuously)
  • iPad (used few times per week – main vault)
  • iPhone (used occasionally – separate vault)
  • “Always keep on this device” enabled in Windows

5. Tests Performed

  1. Created a new, clean vault on iCloud (approximately 10 notes)
    → Issue A still occurs.
  2. Created a clean vault on OneDrive
    → Issue A has not occurred so far (limited usage).

6. Possible Causes

I suspect a conflict between:

  • iCloud for Windows,
  • file synchronization and file locking mechanisms,
  • Obsidian’s file change handling logic.

7. Questions

  1. Is this a known issue?
  2. Is it possible to migrate from iCloud to OneDrive (or Google Drive) and safely use a single main vault across Windows, iPad, and iPhone?

iCloud isn’t a great option to sync a vault on Windows :grimacing: :

iCloud

Recommended systems: macOS, iOS, iPadOS

iCloud can be used to sync vaults between iOS and macOS. However, iCloud Drive on Windows may lead to file duplication or corruption.

See: Obsidian Help > Sync your notes across devices > iCloud

I don’t really have informations about syncing a vault between Windows, iPad and iPhone using OneDrive or Google Drive though :pensive_face: .

Thank you for the information.
Unfortunately, I need to work on Windows.

I sincerely hope there is a viable solution to my issue.

Well, if you really have to, how about syncing your notes at the very end of your work session? Eg between breaks and last 10 minutes

Otherwise, try to find another cloud service. Cant suggest one because I don’t use cloud service anymore.