diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-09-21 16:14:11 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-09-21 16:14:11 -0400 |
commit | be2fb2a08012ae1f95cb26b9b3a7ba240652e919 (patch) | |
tree | a9042602545f6e834363cb864ae91f17cd27b56d | |
parent | 6fd677f716c77a47de979d4c0c261cff116dea11 (diff) |
response
-rw-r--r-- | doc/forum/manage_repository_connection_between_external_HDD_and_server/comment_1_ba8ed548bf228a7d1c82b68283f99a5b._comment | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/forum/manage_repository_connection_between_external_HDD_and_server/comment_1_ba8ed548bf228a7d1c82b68283f99a5b._comment b/doc/forum/manage_repository_connection_between_external_HDD_and_server/comment_1_ba8ed548bf228a7d1c82b68283f99a5b._comment new file mode 100644 index 000000000..bbb509f64 --- /dev/null +++ b/doc/forum/manage_repository_connection_between_external_HDD_and_server/comment_1_ba8ed548bf228a7d1c82b68283f99a5b._comment @@ -0,0 +1,25 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2016-09-21T20:06:28Z" + content=""" +I'm not entirely sure I understand the question, but think you're +probably trying to make nhost be able to access data0 independant +of whether the external HDD is plugged into nhost or zhost +(or perhaps qhost, whatever that is?) + +The way to do that is simply to set up one remote for each place +the HDD can be plugged into. If the HDD can be plugged in locally, +make a remote pointing at the local mount point. If the HDD can be +plugged into zhost, make a remote pointing at +zhost:/run/media/mee/data0/NIdata/ and so on. + +git-annex will figure out that these different remotes are pointing +at the same repository. When running `git annex get` or `git annex sync +--content`, it will check if the HDD is mounted locally, +and will use it there if so; if not it will fall back to trying +to access it via the remotes that use zhost etc. + +So in summary, git-annex is designed to just work in this kind of scenario. +Set up lots of remotes and let it figure out which ones to use. +"""]] |