From a981846581fe150ac0a1e191d1b0ea1c418cc5fe Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 12 Feb 2015 16:36:13 -0400 Subject: comment --- ...ent_7_276cb5d94cbd10e9fc7d1cf4ac607273._comment | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 doc/forum/multiple_urls_for_the_same_UUID/comment_7_276cb5d94cbd10e9fc7d1cf4ac607273._comment (limited to 'doc') diff --git a/doc/forum/multiple_urls_for_the_same_UUID/comment_7_276cb5d94cbd10e9fc7d1cf4ac607273._comment b/doc/forum/multiple_urls_for_the_same_UUID/comment_7_276cb5d94cbd10e9fc7d1cf4ac607273._comment new file mode 100644 index 000000000..a80bffe10 --- /dev/null +++ b/doc/forum/multiple_urls_for_the_same_UUID/comment_7_276cb5d94cbd10e9fc7d1cf4ac607273._comment @@ -0,0 +1,27 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 7""" + date="2015-02-12T20:25:12Z" + content=""" +You have two configured git remotes, host1 and host2, with the same +"url = /m/stuff". Only one of these remotes can be accessed at a time, +depending on where the drive is docked. + +So, why not just combine those two remote configs +into a single remote. Call it "host". + +git-annex will automatically notice when the uuid of the repository +pointed to by "host" changes, and it will update the .git/config +appropriately. + +That BTW, happens to be just how I use git-annex with my own USB drive, +and it works great. + +--- + +git annex sync will still try to sync with "host1-net" and "host2-net", as well +as which ever one of the two "host" points to. There's a small redundancy +there, but since it will sync with "host" first, as it knows local file +access is less expensive, the redundant sync will not involve much work. + +"""]] -- cgit v1.2.3