# Google Drive plugin: duplicate-safe workflow The older Google Drive plugin stores a path-to-ID mapping but can encounter multiple Drive objects carrying the same path. A pull can then apply objects in sequence; an empty or stale object may overwrite a valid local file. A push can also update the wrong ID when the path-to-ID map is ambiguous. ## Read-only inspection ```bash R=/opt/homebrew/bin/rclone TARGET='/.md' $R lsjson : --recursive --files-only $R copyto ":/$TARGET" /tmp/target-from-drive.md shasum -a 256 /path/to/local/vault/$TARGET /tmp/target-from-drive.md ``` Filter the JSON programmatically by exact `Path`; inspect `Size`, `ModTime`, and `ID`. Do not use a path-only result as proof of uniqueness. ## Narrow repair 1. Back up the local canonical file outside the vault. 2. Run `rclone delete ":/$TARGET" --dry-run` and confirm it lists only the duplicate target objects. 3. Delete only that exact remote path, re-upload the canonical local file with `rclone copyto`, and set a fresh modification time if the other client polls `modifiedTime`. 4. Re-list the exact path and download it again for hash verification. Do not use `rclone bisync --resync-mode path1` as a generic repair: it can reconcile unrelated remote-only changes toward the local side. Stop if dry-run reports broad directory deletes or unrelated files. ## Mobile and desktop Obsidian Mobile supports community plugins, but a custom plugin must be marked mobile-compatible and installed on each device. Keep plugin binaries and per-device authentication out of the synced vault configuration. Pull into the device first, reload Obsidian, verify the target is nonempty, and only then push.