Logo

dev-resources.site

for different kinds of informations.

Free Obsidian PC Android sync

Published at
1/2/2025
Categories
github
obsidian
android
syncthing
Author
matsch1
Categories
4 categories in total
github
open
obsidian
open
android
open
syncthing
open
Author
7 person written this
matsch1
open
Free Obsidian PC Android sync

Obsidian is a great tool for collecting ideas.

I use it mainly for the following reasons:

  • Research
  • Collecting information
  • Saving some spontaneous ideas

Depending on my actual situation I prefer to use my laptop or my phone.
To always have access to my vaults, regardless of the device I am using, I need to sync the data between my devices. For that purpose Obsidian provides the Sync Plugin. But for this plugin they charge you 4$ a month, which I don't want to spend, if there is another option.

I found a solution which meets my requirements:

  • Crossplatform availability: Linux, Windows and Android
  • No manual work: no downloads, no copies, no nothing
  • free to use

What I use now:

  • Syncthing-fork on my android phone
  • Syncthing on my windows and linux machine
  • Shell script to backup the data in a git repository

Setup:

  • Install syncthing on the devices you want to use Obsidian
  • Create folders on every device to store the Obsidian files locally
  • Linking the devices using the QR code
  • Share the folders (also using QR code)
  • Copy your vault into the new directory and open it in Obsidian
  • optional:
    • create a git repository in your Obsidian directory and backup the files to your github account

Obsidian Git autobackup

#!/bin/bash

git-autopush() {
  REPO_DIR = $1
  cd "$REPO_DIR" || {
    echo "Repository not found: $REPO_DIR"
    exit 1
  }

  # Check if the repository has changes
  if [[ -n $(git status --porcelain) ]]; then
    git add .
    git status

    TIMESTAMP=$(date +"%Y-%m-%d %H:%M:%S")
    git commit -m "Auto-commit: $TIMESTAMP"

    git push origin "$(git rev-parse --abbrev-ref HEAD)" || {
      echo "Failed to push changes."
      exit 1
    }

    echo "Changes pushed successfully."
  else
    # Check if there are committed changes to push
    LOCAL_BRANCH=$(git rev-parse --abbrev-ref HEAD)
    if [[ -n $(git rev-list origin/"$LOCAL_BRANCH"..HEAD) ]]; then

      # Push changes
      git push origin "$LOCAL_BRANCH" || {
        echo "Failed to push changes."
        exit 1
      }
      echo "Changes pushed successfully."
    fi

  fi
}

git-autopush $1
Enter fullscreen mode Exit fullscreen mode
obsidian Article's
30 articles in total
Favicon
Exporting Mac OSX Book Highlights into an Obsidian Vault or Markdown Files
Favicon
Mi plugin de Obsidian para facilitar el estudio de AWS!
Favicon
How Smart Notes with Obsidian Helped Me
Favicon
Obsidian 101: How to Get Started and Stay Organized!
Favicon
TIL: Styling Obsidian text paragraphs
Favicon
Journey Developing an Obsidian Plugin Part 2 - Improving the Architecture, Basic Error Handling and more!
Favicon
Free Obsidian PC Android sync
Favicon
Atomic Note-Taking Guide
Favicon
✍️ Obsidian: Journaling
Favicon
✍️ Obsidian: Journaling
Favicon
How to Install, Activate, and Update Obsidian Plugins
Favicon
Obsidian's New Web Clipper - You'll Want to Try It
Favicon
How to Sync Obsidian Across All Your Devices (Including Free Methods)
Favicon
How to sync your Obsidian vault using GitHub: A complete guide
Favicon
Create a New Note for Your Obsidian Vault from the Terminal
Favicon
Project Planning
Favicon
Obsidian - How to create Daily note every day, even if I don't open it
Favicon
Deploy obsidian as container
Favicon
ovm (Obsidian Vaults Manager)
Favicon
Obsidian: The All-in-One Knowledge Management Tool for Efficient Information Organization
Favicon
Information flow - how I capture the notes
Favicon
How to install latest Obsidian on Ubuntu 24.04 or older versions
Favicon
Migrating From DokuWiki to Obsidian
Favicon
My Obsidian + Hugo blogging setup
Favicon
Leaving the Comfort Zone Behind: The Journey to Developing a Plugin for Obsidian.md
Favicon
Journey: Developing an Obsidian Plugin Part 1 - Getting Started
Favicon
Why Obsidian Falls Short as a Note-Taking Tool
Favicon
Plugins de Obsidian para Programadores
Favicon
Building A SimpleNote to Obsidian notes converter
Favicon
don't know the title yet

Featured ones: