Obsidian Sync

Posted by Munish Mehta on Mon, Sep 12, 2022

Obsidian-sync is a three part series describing a setup for automated push to remote git repository. Although the subject is obsidian automated push to remote repository, it can be applied, in general, to any other place where automated push may be required.

What is Obsidian

Obsidian is a note-taking app with a focus on privacy and flexibility. All your notes live on your machine (or wherever you choose to sync them to). Notes are written in markdown, meaning they can be easily converted to other formats or moved to another app. As of writing, it is free for personal use but not open-source. It works cross-platform on Windows, macOS, Linux, iOS and Android.

Obsidian is not only an extremely useful text editing tool, but also a powerful knowledge base ; however, I will not discuss the knowledge base here, mainly based on its extreme text editing experience, combined with my short practical experience, to Share the advantages of Obsidian with your friends:

  • Default WYSIWYG (wysiwyg) editing mode;
  • Support pasting HTML to automatically convert to Markdown;
  • All operations have shortcut keys by default, and it is easy to change by yourself;
  • The application opens very quickly, operates smoothly, and occupies very little memory;
  • 100% free for personal use, no account or registration required;
  • Support expansion , the community has contributed nearly 600 plug-ins
  • custom theme and a plugin for virtually everything

Why Obsidian

Until upto now i have been using sublime text for making any kind of notes, wheather be personal or official. I was pretty happy except for a feature i always wanted. It should be version controlled and i could have the backup and restore functionality. I also wanted to access my notes anywhere and anytime and in same format as i store them. And for this reason i started out looking out. I came across an article by jeffjade and must say i was pretty much impressed by the hype make and decided to give a try and adming that i wasn’t disappointed after try.

I love Obsidian for its command palette, customizable hotkeys, vim key bindings and versatile community plugins. Together, these features make the user experience similar to that of Visual Studio Code, the source code editor I use daily as a software engineer.

I am going to focus on remote state management feature of Obsidian here.

Remote state management for obsidian

With obsidian you can manage remote state in a git repository and get back your contents by doing git pull. This means this you can get your notes anywhere and anytime. I have installed the git plugin and can do the push of obsidian-vault to my private git repo. The instructions on the plugin page are self explantory and you can set this up for yourself. After setup you can open command palate and execute git push to push your notes to remote git repository. It works good in my experience however, i am such as lazy person and often forget to commit/push and therefore i wanted an automated way to push all my changes at the end of the day by itself.

I have setup my system for automated push at 5 pm everyday and you can tweek this as per your liking. part-2 below

comments powered by Disqus