File: git_annex_sync_update_remote.mdwn

package info (click to toggle)
git-annex 10.20250721-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 74,484 kB
  • sloc: haskell: 90,982; javascript: 9,103; sh: 1,469; makefile: 213; perl: 137; ansic: 44
file content (50 lines) | stat: -rw-r--r-- 1,283 bytes parent folder | download | duplicates (3)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
I have a repo on my cluster. On my system I cloned it by

```
[my_system] $ git clone ssh://jed//home/tdegeus/tmp/mydata cluster
```

This works fine to get files from the cluster. 

However, I also want to send files from my system to the cluster and to be able to drop files on the cluster. The problem is, however, that I have no stable IP to SSH to my system, so I don't have a good way to add my system as remote on the cluster. I thought that running 

```
[my_system] $ git annex sync
```

from my laptop would be enough. But that does not seems to sufficiently update the repo on the cluster.

From example on the cluster adding some files

```
[ssh->jed] $ git annex add foo.h5
[ssh->jed] $ git commit -m "my message"
```

and then downloading on my system

```
[my_system] $ git annex sync
[my_system] $ git annex get foo.h5
[my_system] $ git annex sync
```

works fine.

But then back on the cluster running

```
[ssh->jed] $ git annex drop foo.h5
```

results, erroneously, in 

```
foo.h5 a.h5 (unsafe)
  Could only verify the existence of 0 out of 1 necessary copy

  Maybe add some of these git remotes (git remote add ...):
  	ee3f4fc7-db8f-4c45-8c40-92e96d046999 -- tdegeus:~/Downloads/annex/cluster

  (Use --force to override this check, or adjust numcopies.)
```