summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-06-01 18:53:25 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-06-01 18:53:25 -0400
commitfcf2121de2757b6b33b239858e0d7d4e0e1e3542 (patch)
tree0301f5b3b5326872b8db9799a58f8193c7159c95
parent0a4ed0fab7c6216f9dc2a382dd98e0aeeeed4953 (diff)
parent1d01b52c24175eca791436f2a3604e695e9e4a9e (diff)
Merge branch 'master' of ssh://git-annex.branchable.com
-rw-r--r--doc/forum/Always_sync_all_content_to_remote/comment_3_45cd9caa6000e13f0bc5b98433c92f4f._comment62
-rw-r--r--doc/forum/Always_sync_all_content_to_remote/comment_3_80748d5a7c7d30ca1cad96c20cf2a4aa._comment8
2 files changed, 70 insertions, 0 deletions
diff --git a/doc/forum/Always_sync_all_content_to_remote/comment_3_45cd9caa6000e13f0bc5b98433c92f4f._comment b/doc/forum/Always_sync_all_content_to_remote/comment_3_45cd9caa6000e13f0bc5b98433c92f4f._comment
new file mode 100644
index 000000000..df96ea916
--- /dev/null
+++ b/doc/forum/Always_sync_all_content_to_remote/comment_3_45cd9caa6000e13f0bc5b98433c92f4f._comment
@@ -0,0 +1,62 @@
+[[!comment format=mdwn
+ username="wsha.code+ga@b38779424f41c5701bbe5937340be43ff1474b2d"
+ nickname="wsha.code+ga"
+ subject="comment 3"
+ date="2015-06-01T19:47:10Z"
+ content="""
+In order to be specific, I started over from scratch and issued the following commands on the server and laptop:
+
+laptop
+------
+*start in a folder with some files*
+
+ git init
+ git annex init
+ git annex add .
+ git commit -m 'first'
+ git remote add server user@server:/path/to/server
+ git annex group . manual
+ git annex wanted . standard
+
+server
+------
+*start in an empty folder named server*
+
+ git init
+ git annex init
+ git annex group . backup
+ git annex wanted . standard
+
+laptop
+------
+
+ git annex sync --content
+
+*messages indicating files copied to server appear*
+
+*new branches git-annex -> server/git-annex, git-annex -> synced/git-annex, master -> synced/master created*
+
+server
+------
+
+ git annex sync --content
+
+*commit ok displayed; no files appear in working tree; looking inside .git/annex/objects shows that the laptop contents are present*
+
+server
+------
+*test a second local repo*
+
+ mkdir ../server2
+ cd ../server2
+ git init
+ git annex init
+ git remote add server ../server
+ git annex sync --content
+
+*All of the content is sync'ed into the working tree*
+
+If possible, I want all of the symlinks to appear and be updated on the server after the second laptop block or at least the second server block. Is this possible without using the second repo on the server? Also, when I sync on the laptop, I want it to push everything to the server, but not pull everything back.
+
+So far, I have been issuing all of the laptop commands via the runshell shell on the laptop and I have added the git-annex directory to path on the server. On both the laptop and the server, I am using a version of Linux without a prepackaged version of git annex. Is it problematic for me to add the git-annex.linux directory from the prebuilt Linux tarball to the end of my path? I haven't noticed any issues so far. I'd prefer not to supersede the system git on my path. On the server, I tried symlink'ing everything from the git-annex.linux directory into my path but I got the error \"bash: git-annex-shell: command not found\" when I tried \"git annex copy . --to server\" on the laptop (I was hoping to try symlinking everything but the git command if that had worked). I tried copying just the git-annex-shell binary into a directory on my path, but I got the same error.
+"""]]
diff --git a/doc/forum/Always_sync_all_content_to_remote/comment_3_80748d5a7c7d30ca1cad96c20cf2a4aa._comment b/doc/forum/Always_sync_all_content_to_remote/comment_3_80748d5a7c7d30ca1cad96c20cf2a4aa._comment
new file mode 100644
index 000000000..feb49ba5e
--- /dev/null
+++ b/doc/forum/Always_sync_all_content_to_remote/comment_3_80748d5a7c7d30ca1cad96c20cf2a4aa._comment
@@ -0,0 +1,8 @@
+[[!comment format=mdwn
+ username="wsha.code+ga@b38779424f41c5701bbe5937340be43ff1474b2d"
+ nickname="wsha.code+ga"
+ subject="comment 3"
+ date="2015-06-01T21:41:51Z"
+ content="""
+Sorry, please ignore the last paragraph of the last post. I think I have straightened out my issues with symlinks after more trial and error (and using .zshenv). My remaining question along those lines is just this: if I symlink git-annex and git-annex-shell onto my path, will git annex function normally? By that, I mean do those executables know how to look up their location and find the other libraries in the same directory, so it doesn't matter that the other files in that directory are not on my path?
+"""]]