aboutsummaryrefslogtreecommitdiff
path: root/doc/forum/two-way_assistant_sync_with_ssh_special_remote.mdwn
blob: ca04e442ce35a275243919d07645f58d404552d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 rhel 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 remote add ml2 ssh://laptop/Users/username/annex
    $ git annex adjust --unlock
    $ git annex wanted . standard
    $ git annex group . client

On my mac laptop:

    $ cd ~/
    $ 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. But when I run

    $ git annex assistant

on both machines, 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?