Utility program to backup changes in my Obsidian vault automatically using a git repository
Go to file
2025-02-17 23:17:34 +01:00
src Changed paths to match dragonfly laptop and disable push temporarily 2025-02-17 23:17:34 +01:00
.gitignore Implement file change watching and tray menu to trigger backup 2025-01-30 23:15:01 +01:00
Cargo.lock Implement git commit and push using credentials stored in credential manager 2025-02-02 16:52:28 +01:00
Cargo.toml Implement git commit and push using credentials stored in credential manager 2025-02-02 16:52:28 +01:00
README.md Make more options constants and protect git files by prefix 2025-02-05 21:55:52 +01:00
sync.ico Implement file change watching and tray menu to trigger backup 2025-01-30 23:15:01 +01:00

Obsidian Git Backup

This script automates the process of backing up your Obsidian vault to a Git repository. It ensures that all changes are tracked automatically and can be easily restored if needed.

Features

  • Trigger backup after file changes with delay
  • Maintain git repo in a seperate folder to not have the repo synced by syncthing (copy changed files over)
  • Push changes to remote repository
  • Tray Menu
    • Exit
    • Backup now
    • See current changed files
    • See time after last file change
  • Easy configuration of paths and delay

Installation

  • Create target repo folder and initialize an empty git repository
  • Set up git lfs for attachments
    • $ git lfs install
    • .gitattributes
      *.pdf filter=lfs diff=lfs merge=lfs -text
      *.png filter=lfs diff=lfs merge=lfs -text
      *.jpg filter=lfs diff=lfs merge=lfs -text
      *.jpeg filter=lfs diff=lfs merge=lfs -text
      *.webp filter=lfs diff=lfs merge=lfs -text
      *.avif filter=lfs diff=lfs merge=lfs -text
      *.svg filter=lfs diff=lfs merge=lfs -text
      
  • Link repository to origin as remote