File: Workflow_for_adding_files.mdwn

package info (click to toggle)
git-annex 7.20190129-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 56,292 kB
  • sloc: haskell: 59,105; sh: 1,255; makefile: 225; perl: 136; ansic: 44
file content (32 lines) | stat: -rw-r--r-- 1,014 bytes parent folder | download | duplicates (11)
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"?