Data loss with Google Drive

Any particular reason you feel alternatives like Box or Dropbox are safer?

As stated previously, there are known issues with Google Drive and other software like Scrivener. As you don’t definitively know what caused the data loss and reproduction seems unlikely, eliminating variables seems like the next step.

  • verify there aren’t any other processes modifying your vault files (on OS X, use lsof)
  • maybe there is an accidental shortcut for the ‘Delete current file’ pallet action
  • try running a local vault
  • try a different approach for sync and backup (git, dropbox, etc)
1 Like

My own experience is that Apple, Google and Microsoft Drives are at their best with their own programs. And I’ve had many irritations with all of them. OK for pure storage, but their syncs for other files can intrude. Box and Dropbox have to make it on their own and I’ve always found it a smoother experience. And reviewers seem to concur most of the time. But they all have their own idiosyncracies.

So Obsidian back up 2 seconds after you stop typing. Assuming that must have happened a few times, the Google sync can’t have been functioning correctly else there would be saved versions online.

Sync programs clashing with autosave can result in problems. A safer approach would be having the working files in a local only folder; using a local backup program to backup (one way only, not sync) that folder regularly (2 minutes, 5 minutes - whatever works best for you) into your Google Drive folder which then manages its own schedule for online sync.

2 Likes

Thought I’d do quick test using a (Windows) laptop. Involved setting up a local Backup and Sync folder since I didn’t even have it installed on this computer.
I did 4 saves. Checked manage versions on local file and it told me there were no previous versions! Checked online Drive and they were all there.

The limited configurability reminded me of why I don’t generally use it.

1 Like

What Happened:

I was using Obsidian for only one vault but recently I started using another vault. After 2 weeks, I went back to my first vault and found out that about 1 to 2 weeks of data from the vault was vanished.

What was removed:

Links and notes were removed from the vault that I wrote about 1 to 2 weeks since I left the vault dormant.

Additional Information:

I was using Calendar Plugin in the vault. I am not using any other plugins. I am also using google drive for syncing my vault.

Why I posted this:

I know it might be because of something with the plugin or sync. But it will be really helpful if someone could guide me how to get my data back. I really need those notes!

Check versions in your online Google Drive.
There should be one with the data, but be aware that it deletes old versions more than 30 days old unless you have specifically marked the file to keep all versions.

Does this thread help? Unfortunately I don’t have a good solution to your problem.

They suggest that Google Drive is the likely culprit. You could try:

  • Recovering your notes from the Google Drive trash or history
  • Alternative syncing methods (other than Drive)

I tried, but there is no note history of the vanished notes. it’s like the never existed. it’s very confusing.
I should try another syncing solution as @schemar suggested.

Wait, IF I open Google sync after sometime, will it override the files or something like that?

The online file should have all versions saved in the last 30 days. Should be able to right click and go to manage versions.

If there’s nothing there then the sync isn’t working if there were file changes within those 30 days.

I’d advise doing a quick test with your new vault to see what is actually there online.

If a file is empty locally, then sync ought save that to the cloud when it’s a change.

It’s very odd that they don’t appear at all in Gdrive. Something is going on.

Does this help?

https://support.google.com/drive/answer/2375102?co=GENIE.Platform%3DAndroid&hl=en#zippy=%2Cyou-cant-find-something-you-dont-think-you-deleted-it

The new vault is not synced to the drive, if you are asking about that.

But I have put the new vault in totally different location.
The Activity panel is not showing any latest change I made to the vault.

No, No files were deleted in the GDrive, so trash is empty. The sync was not doing it’s job for some reason. It didn’t even catch the changes( I think ). But how did the local files got manipulated? I don’t know about that.

In your vault that is currently on google drive, can you test if you create a new file if it gets recognised and uploaded on gdrive?

Yes it is now recognizing the new files. Could you suggest an alternative. I don’t want this to happen again even if it is fixed for now. As Obsidian is not officially supporting the Plugins till v1.0. One more thing, will Github be suitable for this?

I don’t think this is a plugins problem. I am very baffled that there is no history at all in Gdrive for these files.

If you keep gdrive off, create a new file, and then turn on grive what happens?

Are these files in gdrive you own or are these files in shared google drive ?

I own the Account.
About your Question. Yes it takes some time but eventually it detects the notes and syncs now.

And I am convinced that something out of the ordinary happened ( with plugin or sync ). you see:


The side panel doesn’t have the core plugins enabled, my hotkeys are set to default and workspaces are not there.

I don’t use Google Sync because I dislike it, so my ability to comment is limited, but I wouldn’t expect it to produce problems like these.

I use Dropbox for my Obsidian vaults. I will copy that to another online drive, sometimes GDrive, every 28 days to give me extra online backups. I also have other local backups on different disks. Belt and multiple braces for all active files.

I will try doing something similar.

For what it’s worth, I’ve been using Google Drive Backup & Sync for over a year across 5 devices with no data loss of any kind, including Obsidian.

Well! I hope it never happens. I myself have started using GitHub.