aboutsummaryrefslogtreecommitdiff
path: root/doc/forum/Workflow_for_adding_files.mdwn
blob: cb631543fb0b0389b2442376ca6d7fd37b2f5648 (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
What is the correct way to add/modify files such that the changes are synchronized?

Suppose I have a server "server" and a windows client "client" (more after some time); everything direct mode.

I created the repos on the server:

     cd bin
     git init
     git annex init server
     git annex direct
     git annex add .
     git annex sync

On the (Windows) client using cygwin:

     git annex clone ssh://me@server:/srv/bin
     cd bin
     git annex init client

Then I want to add files on the client:

     git annex add tools
     git annex sync

At this point I wonder that the data is not copied to the server but only metadata!
I then used

     git annex sync --content

but then everything from the server is leeched as well (as if I could have called "git annex get .")

What is the intented workflow such that added/modified files on the client always go to the server, modified/new files from the server are always pulled but ONLY if I previously got the file/directory via "get annex get"?