Hi everyone. Today I opened Obsidian and the vault was completely gone. Plugins were also gone. I had the .obsidian map on my Mac and I can’t seem to find it anymore anywhere.
No idea of what I could have done to cause this, I really never touch installation files. A couple of days ago I deleted some iCloud files, I’m not sure if Obsidian files were there as well. As read in other topics, I tried restoring them from iCloud, but they were not there, neither in the thrash bin.
Things I have tried: iCloud restoring data, thrash bin, looking in the Finder
Reading this thread, I am very confused whether you are using iCloud or not. Almost everything you are saying suggests that you are, except this one line where you said you aren’t.
→ → → So things can be very clear, can you please share the exact path where you are storing your vault? (Hide your username or any sensitive info if you prefer.) ← ← ←
What do you mean you can’t open the files that are in it? How exactly are you trying to open the files? In what app? If you use Quick Look (space bar) can you see contents inside those .json files?
But those json files are your vault settings. They have nothing to do with the contents of your notes. If you deleted the .obsidian folder, the next time you opened your vault, Obsidian would create a new .obsidian folder. Your vault wouldn’t have your old settings, but your notes would still be there. So finding the settings folder isn’t going to find your notes. We still have to figure out what happened there.
In the screenshot you can see the path: Documents → Obsidianvault. Here I stored another vault, called MoreDrums. That one has disappeared. I tried searching for it on the Finder and in the thrash bin without finding it.
I logged in to iCloud.com and checked the restore files section. There was no trace of the file(s)
In System Preferences → Internet Accounts → iCloud → “Options…”
Is “Desktop & Documents Folders” checked (or whatever it is in Dutch)? If yes, then your Documenten folder is syncing to iCloud. Which might explain how this glitch happened. But I have no idea why you can’t see or restore your files from iCloud.
You have Google Drive. Make sure you don’t have your Documenten folder synced into Google Drive. If I recall correctly, Google Drive offers to sync some of those default folders for you. (Or if you do want to sync to Google Drive, make sure you do NOT have it also synced with iCloud.
If you do have both checked, that could very probably be what caused this data loss.
Also if you do have Google Drive syncing your Documenten folder, there is a chance you can find files to restore in Google Drive. But who knows.
I checked both, they’re not synchronized neither with iCloud or Drive.
What weird is, is that if I right-click on the Obsidian icon, I get to see the missing vault (MoreDrums, see screenshot) but when I click on it, I get nothing. It’s evidently removed, but I sure as hell didn’t do it.
That’s just the history. It’s just displaying the name of a previously opened [thing an app opens]. Even if you moved or renamed a vault, I think that old name would still be there.
At this point, I’m sorry. I have no ideas or clues as to what has happened.
If you open your empty vault, can you try to go to Settings → File Recovery → Snapshots → View. When you click “View”, you have to search for the name a particular file. Can you search for a known note name, and see if anything comes up? Maybe you’ll get lucky and this plugin saved something.
Do you have any apps that are designed to clean your Mac? CleanMyMac, Disk Doctor, Gemini, etc. If so, inspect them carefully. Maybe check their logs too.
I never store important documents inside Mac’s Documents or Windows My Documents folders. I don’t trust them not to have fancy automatic features, or unwanted syncing. I make my own folders in the ~/ directory on Mac, or on a separate D:/ drive on Windows.
Please please please consider keeping good incremental backups in the future. These mistakes happen. Disks fail. Lightning hits homes. Keep backups!
I was going to link to worldbackupday, but the site is reporting that the security certificate expired. There are lots of options, and you should research what’s best for you.
Syncing tools are not backup. They are better than nothing, but they also sync problems to all of your devices.
There are online tools like Backblaze that copy your HD to a cloud image.
There are tools like rsync that help automate some of that.
Git and other version control software let you keep snapshots of work. There is an Obsidian Git plugin that can automatically commit and push your git repo to Github every N minutes. (Having local version control isn’t enough if the entire folder gets deleted somehow.)
Occasionally copy your files to an external drive, or location.
Some people use RAID arrays so the data is spread across multiple hard drives.
MacOS has Time Machine.
Or even at the very least, occasionally .zip up your files and put them in a different folder. That’s not enough if your hard drive fails, or your computer is damaged. But it’s a start.