New Plugin: Google Drive Sync

I just released my first plugin: Google Drive Sync

It allows you to sync to Google Drive with iOS, Windows, and Mac support (Android and Linux were not tested but they should also work) for free!

Features:

  • Syncing both ways (from Obsidian to Google Drive and back)
  • Cross-device support
  • Obsidian iOS app support
  • Local file prioritization (automatically resolves conflicts)
  • Multiple vaults per Google account
  • Configuration syncing (this includes plugins)

I created this because I wanted to sync my vaults using Google Drive, as it’s very cheap and has pretty good APIs, and using a traditional Google Drive sync with their desktop app wouldn’t work for iOS. There are two other plugins that allow for Google Drive syncing that I am aware of (Remotely Sync and an unsubmitted plugin by Stravo1). Remotely save is paid, and Stravo1’s implementation apparently has potential for data loss, so I decided to try my own hand at making one! I tried to make my documentation and instructions pretty thorough, and the setup process is pretty streamlined.

Hope you guys like it, cheers!

8 Likes

Ngl, I really don’t want to use this as I want to support the devs. However the restriction to 10 vaults and 10GB is really limiting, and it also appears to be 1GB per vault unless that’s changed. Since I already have a Drive account, this plugin would serve an incredibly useful and much needed service, but I am so pissed off that their pricing tiers suck as I want to support ongoing independent development.

To be clear, I am not fussed about $4-8/month. While relatively expensive for that type of service I understand that they aren’t VC subsidised, I can justify that cost. What I am annoyed with is the Vault limitation primarily as I use Vaults to separate concerns (projects, etc), and 10 just doesn’t cut it. I don’t want a limit at all. The 10GB could be worked around or buy 100GB, but why spend more on cloud storage when I already spend money on massive amounts of cloud storage elsewhere?

The devs really need to consider offering better pricing. And offer an official cloud sync plugin like this.

That said, thanks for going to the effort.

Yeah, I’d like to support the devs too because the product’s ungodly good and free, so I might end up buying a sync subscription when I actually have funds. I’m using obsidian to store everything, though, with pretty big images and assets sometimes, and I just can’t deal with the 100GB limitation with a $192 yearly price tag.

Hey, I might be missing something, but what is the benefit of using this plugin compared to having the googledrive application installed on my PC and opening my vault from the Google Drive folder?

The main benefits is syncing with your mobile device

1 Like

Hi @rx366 I’m figuring out how to get my existing notes to sync using your plugin.

I’ve managed to get my mac OS and iOS apps to sync, but only on newly created pages within each of the Apps.

If I copy existing content into the Google Drive vault folder, it doesn’t sync.

Any recommendations on what I’ve got wrong?

I’ve been wanting this for the year I’ve been using the app; Thank you very much! It works very well.

Thank you for this plugin. It can be handy. It is preferable to keep your data on your private cloud datastore on Google Drive rather than using an unverified one.

This plugin is great! But I’m having a bit of trouble.

I had it in my vault I use to prep and keep notes for D&D then tried to use it with a more personal vault I use for just everyday life stuff. The personal vault is giving me an error code 400 when trying to sync and just is stuck at 0%. I also now cannot sync my D&D vault because the auth token cleared out and I have to add it again. Meaning the vault has to be completely empty to sync.

  • Do NOT manually upload files into the generated Obsidian Google Drive folder or use some other method of Google Drive sync
    • Our plugin cannot see these files, and it will likely break functionality, potentially causing data loss
    • Instead, use this plugin on any device you wish to sync the vault between
  • Do NOT manually change files outside of the Obsidian app
    • Our plugin tracks file changes through the Obsidian API, and if you change files outside of the app, the plugin will not be able to track these changes

They mentioned in the note: [Preformatted text](https://github.com/RichardX366/obsidian-google-drive?tab=readme-ov-file#notes)

but how to get google drive folder on mobile. it is impossible as of now. please guide. Thanks

Hello! I just wanted to say I love your plugin! It’s been incredibly helpful and works great! Are you still maintaining/developing the plugin?

Why is no one talking about the security risk of potentially giving a third-party server access to your Drive through an access token? Even if the creator claims that they have no access to your data, the access token effectively allows access to your content. What if the server had a security flaw that could be exploited to retrieve users’ tokens?

1 Like

Hi, thanks for sharing this plugin — it looks really promising!

I’ve had some issues in the past using third-party sync methods Remotely Save plugin between Mac and Android (with Syncthing using Dropbox) where the creation and modification timestamps of my notes didn’t stay consistent between desktop and Android. It seems to be related to how Android handles file metadata, which caused some confusion for plugins that rely on those timestamps.

could you clarify:

  1. Does your plugin preserve the original file creation and modification dates when syncing across devices?
  2. Or does it rely on Google Drive’s API timestamps (which might reset creation dates on download)?
  3. In short, would this plugin avoid the typical timestamp mismatch issue seen with Android file sync tools like Syncthing?

Really appreciate your work on this — this plugin could solve a big gap.

Thanks in advance :folded_hands: