Don't store your vaults directly on google drive [!] (Content from inside my notes were deleted)

Hi guys, I’ve been an Obsidian user for about 4 years… I love the app, the customizability, and the connectivity. The app was vital in the development of my final paper/research during my bachelor’s.

I also use Obsidian for my own ‘biblekasten’ inspired by Joschua’s Bible Study Kit

Recently I migrated all my local files to my Google Drive (I have a Google One Account) because I desperately needed to clear my local storage. But (Thank God) I left 2 copies of both of my main vaults stored locally.

So I was using my Biblekasten exclusively on the cloud and I was using Google Drive’s streaming sync… I thought that this would be safer for my files and my notes… (silly little me I know)

However, yesterday… I was just opening my vault to do my daily devotion notes and I realized something was wrong while Obsidian was again indexing my vault… And then I noticed a bunch of google drive notifications reporting that they couldn’t recover/sync certain files… and the errors that were reported didn’t make any sense… (it was reporting that I didn’t have the authorization to edit certain files and that I needed to talk to the google workspace adm… I’m the adm… and it’s not a workspace account it’s a google one account)

I was trying to figure out what was happening and discovered that it was probably a Google Drive problem (Also this happened after I used CCleaner, so I probably did something wrong or maybe it was just my Google Drive acting out - I know that Obsidian is not at fault here🙏)

It couldn’t sync for whatever reason:

Then - following these steps, I found all my unsynced files from my obsidian vault that had disappeared from my vault and also from my google drive directory

All my lost files were in the lost and found folder… I was momentarily relieved, but then when I was about to recover my files… I realized that the files were there but all of my content inside of the md notes was lost - all of my files were empty… all of them…

Well… I was very very upset… and I realized that I probably will not be able to recover those notes…

I use Joschua’s WEB md bible, I lost entire bible books and I lost 2 weeks worth of notes and also all the notes that I had for a specific christian book…

Thankfully… It was just two weeks… and thank heaven I had the slightly older version of that vault stored locally…

So I will just pick up from where I left off and redo some of my notes… and also for my Obsidian vault, I will use my previous backup method… Don’t store your Obsidian vaults and files directly on google drive!!! Store them locally and then just choose the folder to be backed up and synced to your google drive as a precaution

It should be backed up to Computers:
image

Then it’s local first and backup later - instead of working directly from “My Drive” and the cloud. I used this backup method for my academic vault and it never presented any problems and never lost or corrupted any files.

Anyways - Maybe it was obvious information and I just learned the hard way, but don’t store your vault directly on google drive. I hope that info and what happened to me helps new users (or maybe seasoned users) to not make the same mistake I did and lose a bunch of precious notes.

I suspect your CCleaner step must have deleted the AppData files. I’ve had a few mishaps since I started using Obsidian, lost a little bit of work, and each time have made improvements to reduce my future risk. I do run my vault off Google Drive, which is necessary to me as I use Google Apps Script to modify journal files. To help mitigate risk, I use the Obsidian Git plugin to back everything up to Git. This has come in handy numerous times as it’s easy to go to the website and copy the source of one note from any point in time, or download a folder or the entire vault if needed. I also ran into a situation where there was a problem with Git, and I couldn’t rely on it to restore the vault so I also have a script that keeps a mirror of my vault on a Synology NAS that has file versioning turned on. This allows me to easily restore one or more files from any point in time (depending on how often you set the indexing). I’ve used this a couple times as well (especially useful if I need to restore the Obsidian Git plugin folder, which isn’t backed up by itself!). So far these two backups have been invaluable, and I highly recommend everyone consider similar options. Imagine your vault being corrupted, and then imagine how you are going to recover, and what problems you might run into. Belt and suspenders!!

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.