βοΈ 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.