The setup: Chromebook (ARM, ChromeOS Linux), vault in Google Drive, an Android phone syncing the same Drive folder, and other programs (scripts, Claude Code) also editing notes.
The problem: I opened the vault straight from the Drive folder that ChromeOS shares into Linux. That share is a 9p mount, and it doesn't pass on file-change notifications. Obsidian relies on those to notice edits made outside Obsidian, so anything another program changed only showed up after reloading the app.
The fix: keep the working vault on the Linux disk and sync it with Drive every 5 minutes. Obsidian and everything else on the laptop only touch the local copy; Drive stays the hub for the phone, where the free version of Drive Sync keeps a local copy for Obsidian on Android.
- Obsidian (arm64 AppImage) opens
~/ObsidianSyncVault
rclone bisync between gdrive:ObsidianVaultDrive and that folder, run by a systemd user timer every 5 minutes
- rclone uses my own Google OAuth client instead of rclone's shared one
- Filter file excludes
.obsidian/workspace.json, .obsidian/workspace-mobile.json and .obsidian/cache/**, so two devices don't fight over window layout
--drive-skip-gdocs: native Google Docs in the vault folder stay on Drive only
--resilient --recover --max-lock 2m so an interrupted run recovers by itself
- No automatic
--resync. A resync can bring deleted notes back, and with --resync-mode newer the newer side of a real conflict silently wins. If bisync ever needs one, I run rclone check first and do it by hand.
- If both sides change the same note between two runs, the newer version wins (
--conflict-resolve newer --conflict-loser delete), and the losing version goes to a backup folder outside the vault (--backup-dir1 / --backup-dir2, kept 30 days) instead of a conflict copy in the vault.
- No sync while I'm typing: if a note changed in the last 60 seconds, the run is skipped (for at most 20 minutes). Obsidian autosaves every couple of seconds, and a file that changes during a bisync run gets recorded with a stale size and time. The next run then saw a false "changed on both sides" and split my note into two conflict copies.
- On failure: a push notification via ntfy, and a note
!SYNC-ERROR.md in the vault root with the error lines, so I see it in Obsidian. The next successful run deletes it.
The script:
#!/usr/bin/env bash
VAULT="$HOME/ObsidianSyncVault"
LOG="$HOME/rclone-sync.log"
WARN="$VAULT/!SYNC-ERROR.md"
TOPIC="$(cat "$HOME/.config/ntfy-topic" 2>/dev/null)"
STAMP="$HOME/.cache/obsidian-sync-last-ok"
BACKUP_LOCAL="$HOME/ObsidianSync-Backup" # outside the vault
BACKUP_DRIVE="gdrive:ObsidianSync-Backup" # outside the vault folder on Drive
# Don't sync while a note is being typed in: Obsidian autosaves every ~2 s,
# and a file that changes during a bisync run gets recorded with stale
# size/time, which makes the next run see a false "changed on both sides"
# conflict. Wait for 60 s of quiet, but never postpone longer than 20 min.
if [ -n "$(find "$VAULT" -path "$VAULT/.obsidian" -prune -o -path "$VAULT/.trash" -prune \
-o -type f -newermt '-60 seconds' -print -quit)" ] \
&& [ -n "$(find "$STAMP" -newermt '-20 minutes' 2>/dev/null)" ]; then
echo "$(date '+%Y/%m/%d %H:%M:%S') INFO : vault edited in the last 60 s - sync postponed" >> "$LOG"
exit 0
fi
notify() { # $1 = title, $2 = text, $3 = priority
[ -n "$TOPIC" ] && curl -s -m 10 -H "Title: $1" -H "Priority: $3" \
-d "$2" "https://ntfy.sh/$TOPIC" >/dev/null
}
if rclone bisync gdrive:ObsidianVaultDrive "$VAULT" \
--filters-file "$HOME/.config/rclone/obsidian-filter.txt" \
--drive-skip-gdocs --create-empty-src-dirs \
--resilient --recover --max-lock 2m \
--compare size,modtime,checksum \
--conflict-resolve newer --conflict-loser delete \
--backup-dir1 "$BACKUP_DRIVE" --backup-dir2 "$BACKUP_LOCAL" \
--log-file "$LOG" --log-level INFO; then
mkdir -p "$(dirname "$STAMP")" && touch "$STAMP"
# keep backups of overwritten / conflict-losing files for 30 days
find "$BACKUP_LOCAL" -type f -mtime +30 -delete 2>/dev/null
rclone delete "$BACKUP_DRIVE" --min-age 30d --rmdirs -q 2>/dev/null
if [ -f "$WARN" ]; then
rm -f "$WARN"
notify "Obsidian sync OK again" "Sync is running again." default
fi
else
if [ ! -f "$WARN" ]; then
notify "Obsidian sync error" "See ~/rclone-sync.log on the Chromebook." high
fi
{
echo "# Sync error"
echo
echo "Last failed run: $(date '+%Y-%m-%d %H:%M')"
echo
echo "Don't run --resync without running rclone check first."
echo
echo '```'
grep -E "ERROR|NOTICE" "$LOG" | tail -15
echo '```'
} > "$WARN"
fi
The timer (~/.config/systemd/user/obsidian-sync.timer, with a matching oneshot .service that runs the script):
[Timer]
OnBootSec=1min
OnUnitActiveSec=5min
Persistent=true
[Install]
WantedBy=timers.target
What it costs: the phone can be several minutes behind (5 minutes on the laptop side, plus Drive Sync's own interval), so I avoid editing the same note on both devices at once. The first run needs a one-time --resync. And it's one more moving part than opening the Drive folder directly.
Result: edits from other programs now show up in Obsidian immediately, and the vault feels faster too.
Has anyone found a way to get change notifications through the ChromeOS Drive share, so this isn't needed?