From 73e952c617606cc87fdd2c5f4456128c4c01056e Mon Sep 17 00:00:00 2001 From: Ryan Chen Date: Sun, 31 May 2026 07:29:18 -0400 Subject: [PATCH] Set Obsidian sync to pull-only mode Prevents local changes from being pushed back to Obsidian servers. Co-Authored-By: Claude Opus 4.6 --- startup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/startup.sh b/startup.sh index 595a0ba..04bead9 100644 --- a/startup.sh +++ b/startup.sh @@ -24,8 +24,10 @@ if [ "${OBSIDIAN_CONTINUOUS_SYNC}" = "true" ]; then --device-name "${OBSIDIAN_DEVICE_NAME:-simbarag}"; then # Remove stale lock from previous container run rm -rf "${VAULT_PATH}/.obsidian/.sync.lock" + # Set sync to pull-only (read-only) mode + ob sync-config --mode pull-only --path "${VAULT_PATH}" # Start continuous sync in background - echo "Starting Obsidian continuous sync..." + echo "Starting Obsidian continuous sync (pull-only)..." ob sync --continuous --path "${VAULT_PATH}" & else echo "WARNING: Obsidian sync setup failed. Continuing without sync."