⚙️ Obsidian + OneDrive Workflow
🧠 Goal
Keep Obsidian synced between Ubuntu and Windows using OneDrive — safely, cleanly, and without conflicts.
🪄 Daily Flow
On Ubuntu Boot:
-
System auto-syncs OneDrive → Documents (pulls Windows edits)
-
You edit your vault normally at:
~/Documents/obsidianVault
While Editing:
-
OneDrive waits ~2 minutes after last file change before syncing
-
You can write freely without worrying about conflicts
Before Ubuntu Shutdown:
-
Run manual sync to push latest changes:
sync-obsidian -
This syncs Documents → OneDrive (pushes Ubuntu edits)
On Windows Boot:
- Open Obsidian directly from OneDrive path — your latest edits are already there.
🧩 Commands Summary
| Action | Command |
|---|---|
| Manual sync | sync-obsidian |
| Check logs | tail -f ~/obsidian_sync.log |
| View backups | ls -lt ~/obsidian_backups/ |
| Monitor OneDrive | journalctl --user -u onedrive.service -f |
💡 Tips
-
Don’t edit from both OSes at the same time.
-
If you forget to sync before shutdown, no panic — OneDrive will back up your old version.
-
Keep your backup folder tidy (script auto-cleans to 5 recent copies).
✅ Result: Conflict-free Obsidian across Windows + Ubuntu. Simple, safe, and automated.