• Obsidian Sync अब डेस्कटॉप ऐप के बिना भी command line environment में sync करने के लिए headless client प्रदान करता है
  • CI pipeline, server, automation script जैसी non-interactive environments में vault sync किया जा सकता है
  • ob sync कमांड से one-time या continuous sync चलाया जा सकता है, और OBSIDIAN_AUTH_TOKEN environment variable के जरिए automatic authentication support मिलता है
  • Remote vault बनाना, local connection setup, status check, settings change जैसी सुविधाओं के लिए विस्तृत command set शामिल है
  • Windows और macOS पर file creation time (birthtime) को बनाए रखने वाला native module दिया गया है, जिससे data integrity बेहतर होती है

अवलोकन

  • Obsidian Sync का Headless Client डेस्कटॉप ऐप के बिना vault को sync करने का एक tool है
    • CI, automation agent, server environment आदि में उपयोगी
    • नवीनतम बदलाव लाए जा सकते हैं या files को लगातार up to date रखा जा सकता है
  • एक ही device पर desktop Sync और Headless Sync को साथ में उपयोग नहीं करना चाहिए, क्योंकि data conflict का जोखिम है
  • Installation npm install -g obsidian-headless कमांड से किया जाता है

बुनियादी उपयोग

  • Login: ob login
  • Remote vault list देखें: ob sync-list-remote
  • Local vault setup: ob sync-setup --vault "My Vault"
  • One-time sync: ob sync
  • Continuous sync: ob sync --continuous
  • Non-interactive environment में OBSIDIAN_AUTH_TOKEN environment variable सेट करके authentication को automate किया जा सकता है

मुख्य कमांड

  • ob sync-list-remote: अकाउंट के सभी remote vault की list दिखाता है, shared vault सहित
  • ob sync-list-local: local में configured vault और उनके path दिखाता है
  • ob sync-create-remote: नया remote vault बनाता है
    • Options: --name, --encryption(standard या e2ee), --password, --region
  • ob sync-setup: local और remote vault के बीच connection setup करता है
    • Options: --vault, --path, --password, --device-name, --config-dir
  • ob sync: configured vault का sync चलाता है
    • --continuous option के साथ change monitoring और continuous sync support
  • ob sync-config: vault की sync settings को देखता या बदलता है
    • Conflict strategy (merge/conflict), file types, sync की जाने वाली settings categories, excluded folders आदि specify किए जा सकते हैं
  • ob sync-status: vault की sync status और settings दिखाता है
  • ob sync-unlink: vault को sync से अलग करता है और saved credentials हटाता है

Native module

  • Windows और macOS के लिए file creation time (birthtime) सेट करने वाला native addon शामिल है
    • Server से file download करते समय original creation time बनाए रखता है
    • N-API version 3 को target करता है और Node.js versions के बीच ABI compatibility बनाए रखता है
  • Linux में birthtime support नहीं है, इसलिए addon शामिल नहीं है, लेकिन sync सामान्य रूप से काम करता है
  • Prebuilt binary targets:
    • win32-x64, win32-arm64, win32-ia32, darwin-x64, darwin-arm64

अभी कोई टिप्पणी नहीं है.

अभी कोई टिप्पणी नहीं है.