summaryrefslogtreecommitdiff
path: root/doc/git-annex-enableremote
diff options
context:
space:
mode:
authorhttps://me.yahoo.com/a/80VlVB0Bx9TaNOXIj3OCQ8eimAtIOhqjUQ--#1e80e <Sundar_Raman@web>2017-02-14 00:04:50 +0000
committeradmin <admin@branchable.com>2017-02-14 00:04:50 +0000
commit6f31c717c2d7d71f25a6f86e443447355eba9d58 (patch)
treef20be5069dcaf68c0922f0071e432b3e642e2a35 /doc/git-annex-enableremote
parent3d786ebb4e82d64e18d2acdfcba44c8e734796f9 (diff)
Added a comment: Retrieving initremote parameters for new user
Diffstat (limited to 'doc/git-annex-enableremote')
-rw-r--r--doc/git-annex-enableremote/comment_2_78223f5c6ad120d5e0b98583543425db._comment37
1 files changed, 37 insertions, 0 deletions
diff --git a/doc/git-annex-enableremote/comment_2_78223f5c6ad120d5e0b98583543425db._comment b/doc/git-annex-enableremote/comment_2_78223f5c6ad120d5e0b98583543425db._comment
new file mode 100644
index 0000000000..a42e2c6796
--- /dev/null
+++ b/doc/git-annex-enableremote/comment_2_78223f5c6ad120d5e0b98583543425db._comment
@@ -0,0 +1,37 @@
+[[!comment format=mdwn
+ username="https://me.yahoo.com/a/80VlVB0Bx9TaNOXIj3OCQ8eimAtIOhqjUQ--#1e80e"
+ nickname="Sundar Raman"
+ avatar="http://cdn.libravatar.org/avatar/a5db56ac8777aee80bbe2b1e1d697c3961973049a22def38b4d15b7507e59c01"
+ subject="Retrieving initremote parameters for new user"
+ date="2017-02-14T00:04:50Z"
+ content="""
+Is there a way to determine the parameters that an enableremote command must use, if one does not know it? The use case is as follows:
+* Dev 1 performs an `initremote annexed-media directory=/path/to/media ...`
+* Dev 1 syncs content
+* Dev 2 comes along (or Dev 1 comes along months later with a different machine) and clones the repo, but needs to know the directory=/path... in order to 'enableremote'. Is there any way to glean this information from the source repo itself?
+
+The steps would be:
+
+```
+dev1$ git clone git@gitserver:myproject.git && cd myproject
+dev1$ mkdir images && touch images/foo1.png
+dev1$ git annex initremote annexation.dir directory=/mnt/media/myproject.annex/ encrypted=false
+dev1$ git commit && git push && git annex sync --content
+```
+
+<time passes >
+
+```
+dev2$ git clone git@gitserver:myproject.git && cd myproject
+dev2$ git annex whereis
+# shows something like ...
+# whereis images/foo1.png (7 copies) ...
+# 38e67e39-7dfb-45e8-90fc-8c5d01aae0b4 -- annexation.dir
+dev2$ git annex enableremote annexation.dir directory=???
+```
+
+So how does the new developer know how to define the annexation.dir? Is there any way to extract from the repo itself? Or must this information be saved into the repo's documentation to avoid losing the reference?
+
+Thanks!
+
+"""]]