summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar binx <binx@web>2016-11-21 22:16:04 +0000
committerGravatar admin <admin@branchable.com>2016-11-21 22:16:04 +0000
commit37e9434ce486e0eea1bb100d78b9326e27c23c33 (patch)
treed6af9c58613050a41e55f3fffbce6c586641716a
parent7780a343dee96915bd488366c28f6f25dcbea4e7 (diff)
-rw-r--r--doc/forum/two-way_assistant_sync_with_ssh_special_remote.mdwn30
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/forum/two-way_assistant_sync_with_ssh_special_remote.mdwn b/doc/forum/two-way_assistant_sync_with_ssh_special_remote.mdwn
new file mode 100644
index 000000000..749a7937a
--- /dev/null
+++ b/doc/forum/two-way_assistant_sync_with_ssh_special_remote.mdwn
@@ -0,0 +1,30 @@
+I am attempting to set up automatic two-way synchronization between my laptop and a server via ssh by running assistant on both machines. I want to have both machines be non-bare and unlocked.
+
+On the server:
+
+ $ mkdir ~/annex
+ $ cd annex
+ $ git init
+ $ git annex init u --version=6
+ $ echo This is test file 1. >testfile1.txt
+ $ git annex add testfile1.txt
+ $ git annex sync
+ $ git annex adjust --unlock
+ $ git annex wanted . standard
+ $ git annex group . client
+
+On my laptop:
+
+ $ git clone ssh://server/home/username/annex
+ $ cd annex
+ $ git annex init ml2 --version=6
+ $ git annex sync
+ $ git annex adjust --unlock
+ $ git annex wanted . standard
+ $ git annex group . client
+
+Everything seems to work when I manually sync. When I run
+
+ $ git annex assistant
+
+on both machines, however, I only get one-way automatic synchronization. Changes on the laptop are immediately propagated to the server. But changes on the server do not show up on the laptop until I manually sync. What am I doing wrong?