daniel17 downloadsSync your vault with a folder in Google Drive using one command.
Sync an Obsidian vault with a folder in your Google Drive using one command, Sync. Works on desktop and mobile.
My Drive/obsidian/<vault name>/.<name> (conflict YYYY-MM-DD HHmm).md.Status: 1.0.0, submitted to the Obsidian community directory. Tested with a simulated Google Drive (100+ automated tests); real-world testing is ongoing, so back up your vault before the first sync. Report problems in GitHub issues.
This plugin needs a Google account and a Google Cloud OAuth client that you create yourself. It connects only to Google: oauth2.googleapis.com (to get access tokens) and www.googleapis.com (Google Drive API). It sends your vault files to your own Google Drive and nothing anywhere else. It collects no telemetry.
The refresh token gives full access to your Google Drive. The client secret and refresh token are kept in Obsidian's secret storage, not in the plugin's data file, and are never synced or logged.
Requires Obsidian 1.13.2 or later.
danielzangene/obsidian-sync.main.js and manifest.json from the latest release into <vault>/.obsidian/plugins/drive-sync/, then enable Drive Sync in Settings → Community plugins.https://developers.google.com/oauthplayground. Copy the client ID and client secret.https://www.googleapis.com/auth/drive, and exchange the authorization code for tokens. Copy the refresh token.While the consent screen is in Testing, Google expires refresh tokens after 7 days. Set it to In production for a long-lived token; Google then shows an "unverified app" warning in step 4, which is expected for a personal client.
Run Drive Sync: Sync from the command palette, or click the ribbon icon. Progress shows in the status bar (desktop) or a notice (mobile), and a summary notice appears at the end. The last 500 actions are logged in .obsidian/plugins/drive-sync/sync.log.
What is synced: every file in the vault except names starting with . (including the config folder, .trash and .git), Thumbs.db, files over 100 MB, Google Docs/Sheets, and remote files whose names Obsidian can't use.
Settings: Remote folder name chooses the folder inside obsidian/ (default: the vault name). Devices that should share a vault must use the same remote folder name.
Full list: PRD §10.
npm install
npm run dev # watch build to main.js
npm run check # typecheck, lint, format check, tests
npm run build # production build
| Document | Answers |
|---|---|
| PRD | What the plugin does and why: requirements, acceptance criteria, limitations |
| Technical design | How it works: architecture, data model, sync algorithm, Drive integration |
| Execution plan | Status, remaining work, risks, conventions |
License: MIT.