.. | ||
change_remote_to_google_drive.png | ||
google_drive_auth_allow.png | ||
google_drive_auth_code_show.png | ||
google_drive_auth_link.png | ||
google_drive_code_submit.png | ||
README.md |
Google Drive (PRO)
Intro
- It's a PRO feature of Remotely Save plugin.
- This plugin is NOT an official Google product, and just uses Google Drive's public api.
Steps
Steps of Remotely Save subscription
- Please sign up and sign in an online account, connect your plugin to your online account firstly. See the PRO tutorial firstly.
- Subscribe to "sync with Google Drive" feature online.
- Go back to your Remotely Save plugin inside Obsidian, click "Check again" button in PRO settings. So that the plugin knows some features are enabled. In this case, sync with Google Drive should be detected.
Steps of Connecting to your Google Drive
After you enabled the PRO feature in your Remotely Save plugin, you can connect to your Google Drive account now.
- In Remotely Save settings, change your sync service to Google Drive.
- Click Auth, visit the link, go to Remotely Save website to start.
- On the website, click the link to go to Google Drive auth page.
- Follow the instruction on Google website, and allow (continue) Remotely Save to connect.
- You will be redirected to Remotely Save website, and you will get a code. Copy it...
- ... And paste the code back to the plugin inside Obsidian. Click submit.
- A notice will tell you that you've connected or not.
- Sync! The plugin will create a vault folder in the root of your Google Drive and upload notes into that folder.
- Read the caveats below.
Why so complicated?
Because Google Drive's api doesn't fit into the special envorinment of Obsidian plugin. So we need a website.
The credential
The website does NOT store or save the credential (the code you obtian in the end of the flow). The website is just a "bridge" to help you obtain that code, and just manage your subscription to PRO features.
But please be aware that the code is saved locally in your Obsidian. It works like a special password. So that the plugin can upload or download or modify the files for you.
The caveats
-
As of June 2024, this feature is in beta stage. Back up your vault before using this feature.
-
The plugin can only sees, reads or writes the files and folders created by itself!
It means that, you CANNOT manually create the vault folder in your Google Drive account. And if you manually upload any files using Google's official website, the plugin does NOT see them. All operations must go through Obsidian and uploaded by the plugin.
You can, however, view, and download the files on Google Drive official web page.
Precisely speaking, the plugin applies for the
drive.file
scope recommended by Google. See the doc by Google for the scope's benefits. Basically the plugin will never (is unable to) mess up your other files or folders.Moreover, this scope is "not-sensitive", so that the plugin doesn't need to go through Google's complicated verification process while applying for it.
-
Google Drive, unlike other cloud storage, allows files of same name co-existing in the same folder! (hmmmmm...) It may or may not make the plugin stop working. Users might need to remove the duplicated file manually on Google's official website.