(no commit message)
authortom@b87e4336a0d0785eb7d5853e390835a18797402f <tom@web>
Sat, 29 Apr 2023 14:34:27 +0000 (14:34 +0000)
committeradmin <admin@branchable.com>
Sat, 29 Apr 2023 14:34:27 +0000 (14:34 +0000)
doc/forum/git_annex_sync_update_remote.mdwn [new file with mode: 0644]

diff --git a/doc/forum/git_annex_sync_update_remote.mdwn b/doc/forum/git_annex_sync_update_remote.mdwn
new file mode 100644 (file)
index 0000000..d6aa2ff
--- /dev/null
@@ -0,0 +1,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.)
+```